https://github.com/cmulk/smartmetertx_chartmaker
Python script in Docker to create a plotly chart from daily electricity meter reads
https://github.com/cmulk/smartmetertx_chartmaker
Last synced: 6 months ago
JSON representation
Python script in Docker to create a plotly chart from daily electricity meter reads
- Host: GitHub
- URL: https://github.com/cmulk/smartmetertx_chartmaker
- Owner: cmulk
- Created: 2020-05-12T00:53:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T17:34:51.000Z (about 6 years ago)
- Last Synced: 2025-01-19T11:33:18.360Z (over 1 year ago)
- Language: Dockerfile
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Meter Texas Chartmaker
Uses the python_smartmetertx (github.com/cmulk/python_smartmetertx) api and plotly to build a simple electricity usage chart suitable to be embedded in a HomeAssistant iframe.
## Environment Variables
Required:
- Username -> __USER__
- Password -> __PASS__
- ESIID -> __ESIID__
Optional:
- Output file path (relative to container) - > __OUTFILE__
- Number of days of usage -> __NUMDAYS__
## Build
```
docker build -t smartmetertx_chartmaker:local .
```
or
```
docker build -t smartmetertx_chartmaker:local https://github.com/cmulk/smartmetertx_chartmaker.git
```
## Example run
```
docker run -it --rm -e 'USER=' -e 'PASS=' -e 'ESIID=' -v :/out smartmetertx_chartmaker:local
```
HTML file will be saved as `/daily_reads.html` by default.