Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any information on how to get this setup in HA and/or in general. #14

Open
tmorris0221 opened this issue Aug 30, 2024 · 2 comments
Open

Comments

@tmorris0221
Copy link

I was able to follow the instructions on how to setup the config.yaml file but not sure where to go after that. I have setup an Influxdb on my HA. Any assistance with next steps? I see all the contents under internal/app but unsure what to do with those.

@tedpearson
Copy link
Owner

Hi @tmorris0221, the easiest way to run this would be to download one of the binaries that matches your system from the releases page, make it executable (chmod +x filename) and run it via ./filename.

Hope this helps, let me know if you have more questions.

@tmorris0221
Copy link
Author

tmorris0221 commented Sep 23, 2024

Thanks for the help.. I downloaded the linux arm release. When I attempt to execute, I get the following error back...

➜ electric-usage-downloader ./electric-usage-downloader-linux-arm --config config.yaml --debug
Start date: 2024-09-14 00:00:00 -0400 EDT
End date: 2024-09-23 23:59:00 -0400 EDT
Authenticating with SmartHub API...

DEBUG: Response from auth endpoint:
{"status":"SUCCESS","authorizationToken":"..."

Fetching data from SmartHub API...

DEBUG: Response from poll endpoint:

<title>Startup...</title> <script type="text/javascript"> function addParamAndReload(key, value) { key = encodeURIComponent(key); value = encodeURIComponent(value); var kvp = document.location.search.substr(1).split('&'); if (kvp == "") { document.location.search = key + "=" + value; } else { var i = kvp.length; panic: All attempts fail: #1: invalid character '<' looking for beginning of value

goroutine 1 [running]:
main.main()
/home/runner/work/electric-usage-downloader/electric-usage-downloader/main.go:9 +0x34

any ideas of what I could check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants