Agile Outgoing Octopus Help Needed

Looking for some help on reading the Agile Outgoing Octopus Tariff rates, has anyone done this?

thanks

Dave

You might get more answers from the Agile forum, a lot of users there are on Outgoing.

Find the docs on the API. It will probably give curl commands for accessing the server. Once you know that then implementing it in node-red should not be difficult.

I have a flow which goes and grabs the next 24 hours of agile rates and displays them on a graph. (you can get all sorts of stuff by modifying the agile API endpoint. If this helps.

Capture

[{"id":"6280d183081c4f9d","type":"http request","z":"d438e6cd.bd7a78","name":"Octopus Agile Rates","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://api.octopus.energy/v1/products/AGILE-18-02-21/electricity-tariffs/E-1R-AGILE-18-02-21-C/standard-unit-rates/?page_size=48","tls":"","persist":false,"proxy":"","authType":"basic","credentials":{},"x":360,"y":660,"wires":[["bb2c97e31b27fbd3"]]},{"id":"bb2c97e31b27fbd3","type":"function","z":"d438e6cd.bd7a78","name":"Exract Half hour Rates","func":"var graph = [{\n    \"series\": [\"Price\"],\n    \"data\": [ [] ],\n    \"labels\": []\n}];\n\nvar i;\nfor (i = 0; i < msg.payload.results.length; i++) {\n    \n    graph[0][\"data\"][0].push({ \"x\": Date.parse(msg.payload.results[i].valid_from), \"y\": msg.payload.results[i].value_inc_vat });\n\n}\n\nreturn [{payload: new Array(graph[0])}];\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":720,"y":660,"wires":[["3b1fae78e34abba3"]]},{"id":"3b1fae78e34abba3","type":"ui_chart","z":"d438e6cd.bd7a78","name":"Octopus Agile Rates","group":"651282d1.fda7fc","order":5,"width":0,"height":0,"label":"Octopus Agile Rates","chartType":"line","legend":"false","xformat":"dd HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"40","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":true,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":1140,"y":660,"wires":[[]]},{"id":"567e28729b055a5f","type":"inject","z":"d438e6cd.bd7a78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"5","topic":"","payloadType":"date","x":120,"y":660,"wires":[["6280d183081c4f9d"]]},{"id":"6f79fdf78324e10b","type":"inject","z":"d438e6cd.bd7a78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"","payloadType":"date","x":120,"y":760,"wires":[["6280d183081c4f9d"]]},{"id":"651282d1.fda7fc","type":"ui_group","name":"Power","tab":"dcc1884b.34cd38","order":3,"disp":true,"width":"6","collapse":false},{"id":"dcc1884b.34cd38","type":"ui_tab","name":"Scottworld","icon":"dashboard","disabled":false,"hidden":false}]
1 Like

Hi, i have this working for inciming electric costs but not for export prices.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.