Posted by member 256241 on 2007-07-14 22:04:48
Hi, I'm trying to convert some wazup code, a weather reader:
WeatherURL "http://xoap.weather.com/weather/local/$Location$?cc=*&dayf=3&unit=$Format$"
I want to be able to change the $location$ at run time, so I tried having it as an mzscript variable: ocal/%{Location}?cc=
but that stops the wazup from functioning. If I define Location outside of my mzscript varsfile it works, but I don't know how to make it dynamic...
If anyone could shed some light on this for me I'd be appreciative, thanks.
I started having a look at changing it with textreplace, but I haven't sucessfully got it to replace anything yet:
!execute [!TextReplace @$ThemeDir$theme.rc@ @^Location .@ @Location %[textinput]%@]
Is this a good way to go about it? What's wrong with that code?
Thanks for your time.
Xander.
WeatherURL "http://xoap.weather.com/weather/local/$Location$?cc=*&dayf=3&unit=$Format$"
I want to be able to change the $location$ at run time, so I tried having it as an mzscript variable: ocal/%{Location}?cc=
but that stops the wazup from functioning. If I define Location outside of my mzscript varsfile it works, but I don't know how to make it dynamic...
If anyone could shed some light on this for me I'd be appreciative, thanks.
I started having a look at changing it with textreplace, but I haven't sucessfully got it to replace anything yet:
!execute [!TextReplace @$ThemeDir$theme.rc@ @^Location .@ @Location %[textinput]%@]
Is this a good way to go about it? What's wrong with that code?
Thanks for your time.
Xander.