Here ya go.
First it builds the query replace MacId with the id of your EAGLE
<LocalCommand> <Name>get_usage_data</Name> <MacId>0xd8d5b90000005aeb</MacId> </LocalCommand>
Then it will POST to the EAGLE http://192.168.0.109/cgi-bin/cgi_manager replace the ip with yours.
The JSON data is parsed and seperated.
The first branch takes the power usage and converts kW to W and sends it to graphs and out to MQTT
also converting current usage to cost.
The delivered sum doesn’t update as often as the usage so it gets checked and only passed if it is different than the last message with the rbe and then sent out to MQTT
The last branch takes out the data and converts it back to JSON to make the raw data available on mqtt.
[{"id":"ead95b90.b7dc28","type":"inject","z":"1f5ff597.a9c6da","name":"10sec Loop","topic":"","payload":"","payloadType":"str","repeat":"10","crontab":"","once":false,"x":238.88888549804688,"y":197.77777004241943,"wires":[["8d43225d.18a7d"]]},{"id":"8d43225d.18a7d","type":"change","z":"1f5ff597.a9c6da","name":"EAGLE Request","rules":[{"t":"set","p":"payload","pt":"msg","to":"<LocalCommand> <Name>get_usage_data</Name> <MacId>0xd8d5b90000005aeb</MacId> </LocalCommand>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":248.88888549804688,"y":237.77777004241943,"wires":[["4408e4f7.42df2c"]]},{"id":"4408e4f7.42df2c","type":"http request","z":"1f5ff597.a9c6da","name":"EAGLE POST","method":"POST","ret":"obj","url":"http://192.168.0.109/cgi-bin/cgi_manager","tls":"","x":248.88888549804688,"y":277.77777004241943,"wires":[["ab65ea2f.aed7b8","f455e57f.ec02a8","2b82e58d.0cc42a","2ecba0de.c2a92"]]},{"id":"6a7bc971.502e88","type":"rbe","z":"1f5ff597.a9c6da","name":"","func":"rbe","gap":"","start":"","inout":"out","x":658.8888854980469,"y":297.77777004241943,"wires":[["e04d4b53.15dc98"]]},{"id":"ab65ea2f.aed7b8","type":"change","z":"1f5ff597.a9c6da","name":"Delivered","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload.summation_delivered","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":488.8888854980469,"y":297.77777004241943,"wires":[["6a7bc971.502e88"]]},{"id":"e3d21794.5c7298","type":"mqtt out","z":"1f5ff597.a9c6da","name":"Lexor_MQTT","topic":"","qos":"2","retain":"true","broker":"fee1fac2.261a88","x":1172.2222900390625,"y":296.66665267944336,"wires":[]},{"id":"3cb8b99.2976846","type":"ui_chart","z":"1f5ff597.a9c6da","name":"","group":"dfc4c73a.069fe8","order":0,"width":"0","height":"0","label":"1hr","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":827.77783203125,"y":122.22222137451172,"wires":[[],[]]},{"id":"74d9ddcb.082af4","type":"ui_chart","z":"1f5ff597.a9c6da","name":"","group":"dfc4c73a.069fe8","order":0,"width":0,"height":0,"label":"5min","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":"5","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":826.6666831970215,"y":165.55555152893066,"wires":[[],[]]},{"id":"f455e57f.ec02a8","type":"function","z":"1f5ff597.a9c6da","name":"Multiply1000","func":"var demandkw = Number(msg.payload.demand);\nvar price = 949.4;\nvar demandw = { payload: Math.round(1000 * demandkw)};\nvar L = Math.round(price * demandkw);\nvar priceh = { payload: (L/10000) };\nreturn [demandw, priceh];","outputs":"2","noerr":0,"x":498.8888854980469,"y":237.77777004241943,"wires":[["74d9ddcb.082af4","3cb8b99.2976846","62741850.d8fb08","7466596b.be66c8"],["109d42e2.f12a9d"]]},{"id":"109d42e2.f12a9d","type":"ui_text","z":"1f5ff597.a9c6da","group":"dfc4c73a.069fe8","order":0,"width":0,"height":0,"name":"","label":"Power Cost","format":"{{msg.payload| number:3}}$/h","layout":"col-center","x":832.2222213745117,"y":258.88889503479004,"wires":[]},{"id":"2b82e58d.0cc42a","type":"json","z":"1f5ff597.a9c6da","name":"","x":479.99999237060547,"y":348.88887214660645,"wires":[["eed1b386.2814f"]]},{"id":"62741850.d8fb08","type":"ui_gauge","z":"1f5ff597.a9c6da","name":"","group":"dfc4c73a.069fe8","order":0,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"W","format":"{{value}}","min":"1000","max":"14000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":827.7777938842773,"y":80.00000762939453,"wires":[]},{"id":"eed1b386.2814f","type":"change","z":"1f5ff597.a9c6da","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"lexor/eagle/json","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":831.1111145019531,"y":364.44443130493164,"wires":[["e3d21794.5c7298"]]},{"id":"e04d4b53.15dc98","type":"change","z":"1f5ff597.a9c6da","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"openHAB/out/HouseMeterRead/state","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":832.2222213745117,"y":320.0000190734863,"wires":[["e3d21794.5c7298"]]},{"id":"7466596b.be66c8","type":"change","z":"1f5ff597.a9c6da","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"openHAB/out/HousePowerInstant/state","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":845.5555648803711,"y":214.44443893432617,"wires":[["e3d21794.5c7298"]]},{"id":"fee1fac2.261a88","type":"mqtt-broker","z":"","broker":"mqtt.YOUR.BROKER","port":"1883","clientid":"nodered","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"dfc4c73a.069fe8","type":"ui_group","z":"","name":"Main","tab":"36c72615.fbcdea","order":1,"disp":true,"width":"6"},{"id":"36c72615.fbcdea","type":"ui_tab","z":"","name":"Home","icon":"fa-home","order":"1"}]