Hi guys! I tried to go through all threads but did not find anything similar, I appologize if this subject already exists.
Well, I have a Tibber subscription. Tibber is a scandinavian electricity provider with a smart edge. I can see the electricity prices (spot price) hourly for this day, and after 12:00 also tomorrow's prices per hour.
When using Tibber's node, it returns these values successfully (thanks @ristomatti). But I am not sure how to use this values in a graph. I would be very grateful if someone can help to understand this, and I can probably find myself around from there?!
The graph should be based on time (hour) and the "Total" value that is returned below (not "Energy" or "Tax"). The values are arranged in different tags, like [0-9], [10-19] and so on.
Returned msg payload:
[{"id":"9af8501c.86c62","type":"tab","label":"Tibber","disabled":false,"info":""},{"id":"28e8800c.7a4d2","type":"tibber-query","z":"9af8501c.86c62","name":"","active":true,"apiEndpointRef":"d0fc33a0.73afe","x":910,"y":700,"wires":[["209e193c.d1cff6"]]},{"id":"958ff0ae.8eae3","type":"inject","z":"9af8501c.86c62","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"*/30 0-23 * * *","once":false,"onceDelay":0.1,"x":190,"y":420,"wires":[["86b39cb5.d2075"]]},{"id":"209e193c.d1cff6","type":"debug","z":"9af8501c.86c62","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1070,"y":700,"wires":[]},{"id":"7629d65.defa428","type":"template","z":"9af8501c.86c62","name":"current prices query","field":"payload","fieldType":"msg","format":"text","syntax":"plain","template":"{\n viewer {\n homes {\n currentSubscription{\n priceInfo{\n current{\n total\n energy\n tax\n startsAt\n }\n }\n }\n }\n }\n}","output":"str","x":680,"y":700,"wires":[["28e8800c.7a4d2"]]},{"id":"6c95d13b.c5029","type":"template","z":"9af8501c.86c62","name":"Today's prices","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n viewer {\n homes {\n currentSubscription{\n priceInfo{\n today{\n total\n energy\n tax\n startsAt\n }\n }\n }\n }\n }\n}","output":"str","x":700,"y":860,"wires":[["59f615e5.40eddc"]]},{"id":"15fe3175.61bd4f","type":"template","z":"9af8501c.86c62","name":"Tomorrow's prices","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n viewer {\n homes {\n currentSubscription{\n priceInfo{\n tomorrow{\n total\n energy\n tax\n startsAt\n }\n }\n }\n }\n }\n}","output":"str","x":710,"y":980,"wires":[["13c294ac.270b7b"]]},{"id":"59f615e5.40eddc","type":"tibber-query","z":"9af8501c.86c62","name":"","active":true,"apiEndpointRef":"d0fc33a0.73afe","x":910,"y":860,"wires":[["7134f476.8f6b4c","a7e31730.563948"]]},{"id":"13c294ac.270b7b","type":"tibber-query","z":"9af8501c.86c62","name":"","active":true,"apiEndpointRef":"d0fc33a0.73afe","x":910,"y":980,"wires":[["f8ea6359.f86ce"]]},{"id":"7134f476.8f6b4c","type":"debug","z":"9af8501c.86c62","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1110,"y":860,"wires":[]},{"id":"f8ea6359.f86ce","type":"debug","z":"9af8501c.86c62","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1110,"y":980,"wires":[]},{"id":"a7e31730.563948","type":"ui_chart","z":"9af8501c.86c62","name":"elpriser idag","group":"76145810.90bbb8","order":4,"width":"4","height":"4","label":"Elpriser idag","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":1110,"y":820,"wires":[[]]},{"id":"8c2a5484.f66bb8","type":"ui_chart","z":"9af8501c.86c62","name":"elpriser imorgon","group":"76145810.90bbb8","order":5,"width":"4","height":"4","label":"Elpriser imorgon","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":1130,"y":940,"wires":[[]]},{"id":"92e7516e.59bb7","type":"ui_gauge","z":"9af8501c.86c62","name":"elpris nu","group":"76145810.90bbb8","order":0,"width":0,"height":0,"gtype":"gage","title":"Elpris nu","label":"","format":"{{value}}","min":0,"max":"1","colors":["#00b500","#e6e600","#ca3838"],"seg1":"0,19","seg2":"0,39","x":940,"y":280,"wires":[]},{"id":"739cd6c4.9202b8","type":"template","z":"9af8501c.86c62","name":"current prices query","field":"payload","fieldType":"msg","format":"text","syntax":"plain","template":"{\n viewer {\n homes {\n currentSubscription{\n priceInfo{\n current{\n total\n }\n }\n }\n }\n }\n}","output":"str","x":760,"y":220,"wires":[["6bed56b3.d887d8"]]},{"id":"6bed56b3.d887d8","type":"tibber-query","z":"9af8501c.86c62","name":"","active":true,"apiEndpointRef":"d0fc33a0.73afe","x":770,"y":280,"wires":[["92e7516e.59bb7","a0e649c3.5ac7c8"]]},{"id":"a0e649c3.5ac7c8","type":"debug","z":"9af8501c.86c62","name":"pris till graf","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":950,"y":320,"wires":[],"inputLabels":["Elpris"]},{"id":"86b39cb5.d2075","type":"delay","z":"9af8501c.86c62","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":340,"y":420,"wires":[["739cd6c4.9202b8","7629d65.defa428","6c95d13b.c5029","15fe3175.61bd4f","6031a89c.3f2e98"]]},{"id":"6031a89c.3f2e98","type":"ui_toast","z":"9af8501c.86c62","position":"bottom right","displayTime":"5","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"Priser uppdaterade","name":"Priser uppdaterade","x":230,"y":600,"wires":[]},{"id":"d0fc33a0.73afe","type":"tibber-api-endpoint","z":"","feedUrl":"wss://api.tibber.com/v1-beta/gql/subscriptions","queryUrl":"https://api.tibber.com/v1-beta/gql","name":"My Tibber account","info":"{\r\n viewer {\r\n homes {\r\n currentSubscription{\r\n priceInfo{\r\n current{\r\n total\r\n energy\r\n tax\r\n startsAt\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}"},{"id":"76145810.90bbb8","type":"ui_group","z":"","name":"Elpriser","tab":"dc0faa70.1cf2c8","order":1,"disp":true,"width":"4","collapse":false},{"id":"dc0faa70.1cf2c8","type":"ui_tab","z":"","name":"Tibber","icon":"dashboard","order":3,"disabled":false,"hidden":false}]