Diffrent image after Sunset
#1
Hello

i Try to show a different image after sunset/sunrise in the Weather section, but got some Problems to make it work.

Here is what i've tried:
PHP Code:
<visible>IntegerGreatherThan($INFO[System.Time],$INFO[Window.Property(Today.Sunset)]) + !IntegerGreatherThan($INFO[System.Time],$INFO[Window.Property(Today.Sunrise)])</visible

Sadli it does't work.
"System.Time" " Today.Sunset" and "Today.Sunrise" Work as a "label" and show me houers and Minutes.

i also try just:
PHP Code:
IntegerGreatherThan($INFO[System.Time],$INFO[Window.Property(Today.Sunset)]) 

With no luck.

Shouldnt this work?

Regards
Reply
#2
Time has a colon and depending on the language setting also am/pm in it. And because unlike with System.Time(format) you can't split up Window.Property(Today.Sunset) in hours and minutes, so you can't do what you're after without a ton of (sub)string comparisons.
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Diffrent image after Sunset0