Sign inSign up

cmulk/smartmetertx_chartmaker

By cmulk

Updated almost 6 years ago

Python script in Docker to create a plotly chart from daily electricity meter reads

Image
0

658

cmulk/smartmetertx_chartmaker repository overview

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=<your_username>' -e 'PASS=<your_password>' -e 'ESIID=<your_esiid>' -v <output_dir>:/out smartmetertx_chartmaker:local

HTML file will be saved as <output_dir>/daily_reads.html by default.

Tag summary

Content type

Image

Digest

Size

82.2 MB

Last updated

almost 6 years ago

docker pull cmulk/smartmetertx_chartmaker