Save Octopus Energy electricity and gas consumption data in InfluxDB.
Create a list of environment variables. The Octopus specific ones can be found in the Octopus Developer Dashboard.
token
bucket_name
org_name
influx_url
api_key
electricity_mpan
electricity_serial_number
gas_mpan
gas_serial_number
Run using Docker:
octopusconsumption:
container_name: octopus
image: ghcr.io/stuartb55/octopusconsumption
restart: unless-stopped
environment:
- "token="
- "bucket_name="
- "org_name="
- "influx_url="
- "api_key="
- "electricity_mpan="
- "electricity_serial_number="
- "gas_mpan="
- "gas_serial_number="
A running InfluxDB instance is required
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.