A Python script to help analyse energy usage with the Octopus Energy API
- Visit https://octopus.energy/dashboard/developer/ (you may need to enter your log-in details)
- Take note of your:
- API Key
- Meter Point Administration Number (MPAN)
- Electric meter serial number
- Meter Point Reference Number (MPRN)
- Gas meter serial number
- Copy the file
secret_base.py
and rename itsecret.py
. - Open the newly created
secret.py
and enter the information above into the appropriate places.
Do not share secret.py
or any of the numbers above. If using Git, make sure secret.py
is added to
.gitignore
so that it is not accidentally made public.
Units of measurement for the electric readings is in kWh, while the readings for gas will either be in kWh (for SMETS1 meters) or m^3 (for SMETS2 meters).