b139b
1
Hello!
This url returns the powerprice for the date specified in the string. (yyyy/mm-dd), _NO1 is the area.
https://www.hvakosterstrommen.no/api/v1/prices/2022/12-14_NO1.json
It works with the "http request" -node: (trigger---http request---debug)
How can I make this dynamic so it inserts todays date automaticly?
Thanks for helping a newbie in Nodered
E1cid
2
Maybe this example will help you
b139b
3
Thank you!
After some editing it worked
What I did:
Insert node: deleted hardcoded dates
Change node: set .msg now to $moment().format("YYYY/MM-DD")
http request: https://www.hvakosterstrommen.no/api/v1/prices/{{{now}}}_NO1.json
system
Closed
4
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.