Hello,
How can I do a function to check the day of the week?
An example, I want to send information to a gauge only when is the correct day of the week.
I want to have 7 gauges, for every day of the week. So if today is sunday it only sends my data to the sunday gauge and keeps the information for the rest of the weak on each gauge.
@jbudd showed you how to get the day of the week using getDate() (value 0-6, sun to sat). here
You can use that outptut in a msg property, then use a switch node to direct, where rules would be -
Property would be value you save the 0-6 in
Rule 1 == (number) 0
Rule 2 == (number) 1
etc.