Hello, first of all... i have 0.1% knowledge of node red.
for school I have to make an automated system that sends every morning on the time when the sun comes up an email trough IFTTT of the temperature from our nearest city. (openweathermap)
Right now I have a system that can send the temperature of the nearest city to my email trough IFTTT.
Now i am trying for 3 days straight to get the time from the sunrise to activate the system... but nothing works.
i found something to convert the sunrise to a string named msg.payload.sun
and i have the string of my local time msg.payload
Is it now possible the use a if functions when the 2 msg's are the same it triggers the system?
NOTE: I dont use IFTTT (so cant help) - mostly due to the fact I can do pretty much everything i need to without it & the recent changes to their product.
Openweathermap returns the sunrise as a timestamp in seconds, while JS and moment use milliseconds. You will need to multiple the returned sunrise timestamp by 1000.