tedpearson / electric-usage-downloader

Import smart meter metrics from smarthub into VictoriaMetrics or InfluxDB
MIT License
28 stars 2 forks source link

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

Closed tmorris0221 closed 1 month ago

tmorris0221 commented 3 months ago

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 commented 3 months ago

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 commented 2 months ago

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: <!DOCTYPE HTML>

Startup...

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 +0x38

tedpearson commented 1 month ago

I don't see anything very interesting in that output. Seems like as you said, they just don't support downloading or if they do it's not at that url.

tmorris0221 commented 1 month ago

I've been chatting with my provider and it doesn't appear they support exporting the data to any thing other than a print chart, which is lame. Thanks for your responses and the help thus far. If they ever update their site, maybe I'll revisit this.

tedpearson commented 1 month ago

Booooo. Sorry to hear that. I'll close this issue for now then, best of luck.