Im trying to make a, goodmorning, goodnight kinda switch.
I want it to change “name or whatever” depending on the time of day.
So for example when the switch is pushed between 05:00 and 10:00 it will call my “goodmorning script”
And pushed between 21:00 and 02:00 it will call a “goodnight script”
So in my front end i want the switch to be named either goodmorning or goodnight, depending on the time of day.