GetWeather Thread last updated on 2003-03-16 11:54:02

Posted by member 5406 on 2003-03-15 06:41:29

I've tried fooling a bit around with GetWeather, but I can't seem to get it working. I've pasted the step.rc settings and the script settings from the readme, and I've made a label containing "$WXInfoText$" in the text. My problem is that the weather info won't update.

Posted by member 1 on 2003-03-15 06:52:24 link

Here is my label line.

Weatherlabeltext "$loc1Local$ $Loc1Temperature$ $loc1FeelsLike$ $Loc1Conditions$ at $loc1Grabbed$ "

However, in order to get it to work I also needed the timer.dll module.

Hope that helps.

Posted by member 5406 on 2003-03-15 07:15:10 link

aaah! thanks. I thought the timer was some sort of core.

Posted by member 5406 on 2003-03-15 07:26:42 link

It still isn't working. Nothing changes in the weather settings even if I run !GetWeather from the command box.

Posted by member 5406 on 2003-03-15 07:29:14 link

found the bug! There were 2 broken lines in my script file

Posted by member 5406 on 2003-03-15 08:04:04 link

argh.. new problems. My label isn't updating. Even though the variables wich I use in the labeltext (WeatherLabelText "$loc1Temperature$ $loc1Conditions$") has changed the labeltext isn't changing. To get it to change I have to use !WeatherLabelSetText "$loc1Temperature$ $loc1Conditions$". Why is this?

Posted by member 1 on 2003-03-15 08:35:41 link

eVars are not dynamic. I am trying to get someone to update mzScript so this can be but until then you need to add !reloadmodule label.dll to your !GetWeather bang.

Posted by member 5406 on 2003-03-16 04:31:27 link

how do I run !getweather on startup?

Posted by member 1 on 2003-03-16 05:39:09 link

should be run automatically from your timer line

Posted by member 5406 on 2003-03-16 06:48:25 link

it doesn't.. it runs !getweather for the first time after the timer delay, so if the delay is high, it won't update for a while. I have to set the delay high if I use !reloadmodule, 'cause it causes lots of flickering when I reload. I've tried using !WeatherLabelSetText "$loc1Temperature$ $loc1Conditions$" instead but with this I can't change the weather-icon. Is there any other module that allows me to change an image using a !bang?

Posted by member 1 on 2003-03-16 06:54:15 link

!WeatherLabelSetText doesn't work from within mzscript like you want. Modules cache variable information and won't update them until the module is recycled. I am trying to pressure ilmcuts to add Dynamic eVar support to .24.7 but he says no way.

Posted by member 5406 on 2003-03-16 11:18:00 link

I use !WeatherLabelSetText in the timer. It works fine..

Posted by member 5406 on 2003-03-16 11:52:14 link

now that is a lie... my script has been reloading label.dll

Posted by member 5406 on 2003-03-16 11:54:02 link

but I would still like it to run !getweather at startup - the timer doesn't do that