Octopus energy : Smart Meter Feed

Here is a modified version of agile.py which requests the last 10 days and put it into a cumulative feed instead. On first run it will request the last year. Any missing holes in the data should hopefully be filled in before they fall out of the 10 day window. If you’re still having trouble, make this number bigger.

This should work off of the same config file*, and (probably) won’t collide any existing setup you might have. (*I’ve not attempted to fix the bugs in the original, so set the tag and feed names in the script before you run it, on two lines).

If this script warrants any further refinement, I’d suggest:

  • make last N days be user configurable
  • fixing tag and feed config (without breaking it for users of agile.py)
  • add support for multiple meters (2 is not uncommon)