Hi Guys,
I'm trying to come up with a way to show a weather icon with a daytime or a night time background depending on the current time. The solution I thought had the best chance of success was to set an alarm in a onload tag in startup.xml to set a skin boolean to true if time was between sun rise and sunset. I can see a number of way that this could fail, so would not be certain I was on the right track unless I managed to get it to work the first time.
So, a couple of questions.
Is the AlarmClock function just restricted to time elapsed or can you get it to trigger at a particular time,?
If you can set a particular time, what is the correct format for the command as the wiki appears a little vague on the details?
Is there some hidden info string or some such that I can use to obtain the current local sunrise and sunset times or would I just have to assume 6am sunrise and 6pm sunset?
And most importantly, has anyone managed to achieve something similar, and if so how?
Wyrm (AppTV)
I'm trying to come up with a way to show a weather icon with a daytime or a night time background depending on the current time. The solution I thought had the best chance of success was to set an alarm in a onload tag in startup.xml to set a skin boolean to true if time was between sun rise and sunset. I can see a number of way that this could fail, so would not be certain I was on the right track unless I managed to get it to work the first time.
So, a couple of questions.
Is the AlarmClock function just restricted to time elapsed or can you get it to trigger at a particular time,?
If you can set a particular time, what is the correct format for the command as the wiki appears a little vague on the details?
Is there some hidden info string or some such that I can use to obtain the current local sunrise and sunset times or would I just have to assume 6am sunrise and 6pm sunset?
And most importantly, has anyone managed to achieve something similar, and if so how?
Wyrm (AppTV)