Hi,
So, I'm struggling with the node-red-contrib-tibber-api module. I can get the "Tibber feed" node to work, but no else.
I found this thread that was very interesting and helpful, but also a quite frustrating since i can't get it to work. Business as usual i suppose.
I "stole" this from the thread above:
[{"id":"be4d9e2e.b5f52","type":"tibber-query","z":"2795b53e.b26e3a","name":"","active":true,"apiEndpointRef":"7fb06f58.101d9","x":190,"y":180,"wires":[["6b5798cf.c411c8"]]},{"id":"d8090c2c.45052","type":"inject","z":"2795b53e.b26e3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":60,"wires":[["baf7c521.66c7c8"]]},{"id":"6b5798cf.c411c8","type":"debug","z":"2795b53e.b26e3a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":350,"y":180,"wires":[]},{"id":"baf7c521.66c7c8","type":"template","z":"2795b53e.b26e3a","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":160,"y":120,"wires":[["be4d9e2e.b5f52"]]},{"id":"7fb06f58.101d9","type":"tibber-api-endpoint","z":"","feedUrl":"wss://api.tibber.com/v1-beta/gql/subscriptions","queryUrl":"https://api.tibber.com/v1-beta/gql","name":""}]
...and no matter what i do, i get the error "TypeError: The first argument must be one of type string or Buffer. Received type object"
on the tibber query module. I have tried with a .toString() function etc on the msg.payload but still no cigar.
(Edit: you must provide an apiToken, not included)
(Edit2: Ok, i can get it to give me other errors by setting the template output to other stuff than plain text. I have also tried to send this string from the injector - but still same result).
Anyone here that can guide me in the correct direction?