OK, I rearranged the code to look like this:
Code:
"WEATHER||wait;5||RUN;$skinpath$weatherTemp.exe||SETVAR;TEMPSLIDER;$MYTEMP$||EVAL;TEMP;$TEMPSLIDER$*546"
.
And it works, but I have to load the weather skin, then go back to main, and load it again for it to calculate.
I basically have to run the code above, wait a few seconds, then load it again. I set a timer event so that every 5 seconds it evals the variables and set's the slider, because the first time it loads, it shows 0, then the second time it shows the correct amount.
I think this is because it takes a couple seconds to download the info from the .xml feed and it has to start from the WEATHER.skin (rather than having the skin pre-loaded) so the first time it tries, the label isn't set yet. (I've tried the wait; at 10 seconds though, and that didn't seem to affect it.)
We're getting closer to getting this working nicely though.
In skincommands.txt:
Quote: Originally Posted by skincommands.txt
This event is re-occurring, so every few XXX seconds it will re-execute the TIMER event.
You can use a simple variable switch to prevent it from executing your command more than once (if desired).
What variable switch would I use? Is there a way to execute the command only until the evaluated result is above 0?