alexclaydon / pvmon

Designed to assist with simplifying and automating the monitoring of solar photovoltaic installations making use of NTT's ecomegane subscription service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pvmon

Docker Image CI

Python package

pre-commit

Designed to assist with simplifying and automating the monitoring of solar photovoltaic installations making use of NTT's ecomegane subscription service delivered over LTE. Written in an imperative shell, functional core style.

Originally developed to meet a specific business need. No affiliation with NTT generally or the ecomegane service in particular.

Configuration

  • Currently only designed to work with Firefox as the Selenium back-end. You'll need to have Firefox installed and the gecko webdriver in your path. If you deploy with Docker, the included Dockerfile takes care of this.
  • The execution environment requires that PUSHOVER_USER and PUSHOVER_TOKEN environment variables be available to enable Pushover notifications on iOS. If you deploy with Docker, these can be included in a .env file in the root directory, where Docker will look for them automatically and pass them to the container runtime.
  • You will also need to create a service-cfg.yml in the resources directory (based on the template available at resources/templates/service-cfg.yml, inserting your own user login information for ecomegane. If you deploy with Docker, you can either map that directory to a volume on the host, or ssh into the running container and create it. In future, service configuration will be handled with environment variables instead.

Notes

  • This version of the codebase was developed as an object-oriented wrapper over a set of discrete functions originally developed on an ad-hoc basis as the problem domain was explored.
  • Git history prior to making this repo public has been deleted to prevent the unintentional disclosure of any commercially sensitive information.
  • TODOs remain in the code.

About

Designed to assist with simplifying and automating the monitoring of solar photovoltaic installations making use of NTT's ecomegane subscription service.

License:MIT License


Languages

Language:Python 96.9%Language:Dockerfile 1.9%Language:Shell 1.2%