Hi,
I am pretty new to node-red. I am trying to use the time range switc. The documentation says:
Ican send a message like
msg.__config = {
startTime: '12:35',
endTime: 'dusk',
startOffset: 0,
endOffset: 0,
lat: 51.33411,
lon: -0.83716
}
But what exactly do I send in the payload. is it just the json body
{
startTime: '12:35',
endTime: 'dusk',
startOffset: 0,
endOffset: 0,
lat: 51.33411,
lon: -0.83716
}
with JSON selected as the message type
or do I need to send the entire
msg.__config = {
startTime: '12:35',
endTime: 'dusk',
startOffset: 0,
endOffset: 0,
lat: 51.33411,
lon: -0.83716
}
as a string?
Also, if I do not send this message, will the node still automatically work once I have configured its properties or does it require some sort of regular trigger?