I’ve improved the script to also load the full rate history for the selected tariff. It will do this the first time that you run the script. E.g:
If you already have a feed in place with the script, the easiest way to use this is to delete the existing feed and then use this new version of the script from the usefulscripts repository. Here are the manual configuration steps via command line:
Update usefulscripts
cd /opt/emoncms/modules/usefulscripts
git pull
Create config file
cd /opt/emoncms/modules/usefulscripts/octopus/
cp default.agile.conf agile.conf
Enter configuration including emoncms server, write apikey, tariff_name and gsp_id (region):
nano agile.conf
Run script manually:
python3 load_agile_rates.py
Run script from crontab every evening at 5:03pm to pull in latest data:
03 17 * * * /usr/bin/python3 /opt/emoncms/modules/usefulscripts/octopus/load_agile_rates.py > /dev/null 2>&1
