Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Read energy consumption data from smart meters managed by the UK energy company Octopus Energy
ResourceFunction["OctopusEnergyConsumption"][credentials] reads energy consumption data from the gas or electricity meter described by the Association credentials. |
"MaxRecords" | 100 | the number of records to attempt to retreive |
"Interval" | Automatic | the time to aggregate usage over. Automatic is 30 minute periods. Available choices are: “Hour”,”Day”,”Week”,”Quarter” |
"StartTime" | Automatic | the date and time of the first record to return |
"EndTime" | Automatic | the date and time of the last record to return ("StartTime" must also be specified). |
Plot the most recent 100 half-hourly records of electricity consumption:
In[1]:= |
Out[17]= |
An MPRN value is required to retrieve gas usage (note that gas and electricity meters at the same property have different serial numbers):
In[18]:= |
Out[18]= |
The maximum number of records you can request is 25,000:
In[19]:= |
Out[19]= |
You can fetch records for a given period:
In[20]:= |
Out[20]= |
Fetch weekly consumption:
In[21]:= |
Out[21]= |
This work is licensed under a Creative Commons Attribution 4.0 International License