An open API service indexing awesome lists of open source software.

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

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.