How do I make time dependent presets/triggers?

Hi All,

Is it possible to display a trigger on the touchbar only if it is before 6pm on a given day?

I have a weather widget which shows me the max and min temp for a given day.
I would like to display the trigger which shows the forecast for the current day if the time is before 6pm.
I would like to display a different trigger which shows the forecast for the next day if the time is after 6pm.