yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] superflysocal:
I have now added scripts for Weather Panel and HTC Weather support that doesn't require data connection. (except for the WP and HTC weather application update itself) Please note that since HTC weather does not autoupdate, there will be times of discrepancy between what htc weather shows and s2u2 wallpaper show. In other words, after you manually update HTC weather, s2u2 wallpaper won't reflect this until the next time the script is scheduled to run (which depends on delayhour variable). This is why I was never crazy about writing a version for HTC weather. For weatherpanel version it is best that you set weatherpanel application to update more often or same as the WeatherWallpaperWP.mscr script.
[Windows Mobile Apps and Games] mb:
Great idea... can it support Fizz Traveller (i'm using v2.43 but v3 is out now) please??!!!
[Windows Mobile Apps and Games] louiedoesit:
works on touch pretty cool ! ! !
[Windows Mobile Apps and Games] Synned:
Works awesomely with weatherpanel now.

Question

Whats the easiest way to see which picture is for which forecast?

I'd like to edit some if possible.

Thanks

Joe
[Windows Mobile Apps and Games] tlpalmer01:
question

do i need the notiweather program for this to run..sorry to ask, cant figure it out..
[Windows Mobile Apps and Games] superflysocal:
no it is not required. the original script is based on notiweather..it would be redundant.
[Windows Mobile Apps and Games] superflysocal:
most graphics program like paint shop pro have a "browse" mode, that let's you see thumbnails of all jpg's in a folder. even windows explorer will let you look at thumbnails of jpgs in a folder.
[Windows Mobile Apps and Games] sgreenwood99:
Stupid question: "delayHours = 1" means wallpaper will update every hour or once per day? Thanks.
[Windows Mobile Apps and Games] superflysocal:
1 = once every hour. you may even put .5 for every half hour which may come in handy for the HTC weather version.
[Windows Mobile Apps and Games] sgreenwood99:
I had replaced 1 with 12 thinking it meant "times per day" and wondered why my screen showed partly cloudy since last night and its raining like hell.
[Windows Mobile Apps and Games] tlpalmer01:
question

sorry for being a total noob, i have done all the things in post 1 and finally got everything on, i soft resetted then when it came back on it said there was no application associated with the weather wallpaper, i put the script in the windows start up like it said, i just cant figure out what i did..can anyone help please?...
[Windows Mobile Apps and Games] holmanm:
Sounds like Mortscript didn't install properly. Try reinstalling Mortscript. Also make sure the scripts in the startup folder still have the .mscr extension.
[Windows Mobile Apps and Games] tlpalmer01:
thanks will try that...
[Windows Mobile Apps and Games] tlpalmer01:
reinstalled mortscript4.1 and everything looks ok, went under s2us settings and folders where wallpapers are there but now they are not displaying..im getting there but cant figure it out, since i got this phone in feb i have taught myself alot, but still need help..sorry
[Windows Mobile Apps and Games] maccaberry:
Also check that you didnt rename the .mscr file to edit it. Sometimes I have renamed it by adding a .txt to the end of the filename so I can edit it and then forgotten to remove the .txt. When i have done that I always get the same message you have described. If mortscript is not installed I wouldn't expect to to get any message at all.
[Windows Mobile Apps and Games] Synned:
I'm asking for the numbers and what forecast they are for. I see what they are.

e.g.

48 = Lightning

38 = Cloudy with rain
[Windows Mobile Apps and Games] superflysocal:
If you want the actual description of each number, then I can't help you. The compilation was derived from works of others, namely Doreen from WAD Bliss alive theme, linked on the first or second page.
[Windows Mobile Apps and Games] superflysocal:
I do believe with the WP script you can change the display to have it say the "forecast".
[Windows Mobile Apps and Games] JSZESZE:
I was wondering if SPB weather was supported by this ....? I browsed through this thread and im pretty sure i didnt read about it
[Windows Mobile Apps and Games] superflysocal:
i don't have this program so I would need to know where the data is stored.
[Windows Mobile Apps and Games] tlpalmer01:
i have tried all our suggestions, sorry for being a pain..do i need to put anything in gfs folder for s2u2

here is my script:

# fetch weather from htc weather registry

# Run every XX Hours

# Version 2.2 using Notification Queue, System Paths

# USER SETTINGS, CHANGE AS DESIRED

# how often to try and get the weather

delayHours = .5

# folder containing your weather wallpaper

wallpaperfolder = "\my device\my documents\weather\"

# wallpaper type jpg or gif

wallpapertype= ".jpg"

GetTime(hour,min,sec,day,month,year)

# set up for next notification

utime = TimeStamp() + (delayHours*60)*60

mort = SystemPath("ScriptExe") & "\MortScript.exe"

script = SystemPath("ScriptPath") & "\" & SystemPath("ScriptName") & SystemPath("ScriptExt")

# kill any lingering notification

RemoveNotifications(mort, script)

# set notify for myself at next time

RunAt( utime, mort, script)

# Quietly ignore all errors

ErrorLevel("off")

# avoid registry writes if no change

curweather = RegRead("HKCU", "\Software\A_C\S2U2\", "UserWeather")

currlweather = RegRead("HKCU", "\Software\emerym\", "Weather")

curpic= RegRead("HKCU", "\Software\A_C\S2U2\", "wallpaper")

curforecast = SubStr(curpic,-6,2)

weather = ""

rlweather = ""

# Array for the HTC Home Weather to BackGround JPG

HHW["01"]=32

HHW["02"]=30

HHW["03"]=44

HHW["04"]=30

HHW["05"]=30

HHW["06"]=28

HHW["07"]=19

HHW["08"]=20

HHW["11"]=26

HHW["12"]=40

HHW["13"]=39

HHW["14"]=39

HHW["15"]=38

HHW["16"]=37

HHW["17"]=37

HHW["18"]=35

HHW["19"]=13

HHW["20"]=14

HHW["21"]=16

HHW["22"]=15

HHW["23"]=14

HHW["24"]=15

HHW["25"]=15

HHW["26"]=46

HHW["29"]=46

HHW["30"]=36

HHW["31"]=25

HHW["32"]=20

HHW["33"]=31

HHW["34"]=29

HHW["35"]=27

HHW["36"]=27

HHW["37"]=31

HHW["38"]=33

HHW["39"]=45

HHW["40"]=45

HHW["41"]=47

HHW["42"]=47

HHW["43"]=5

HHW["44"]=46

# get data from registry

# HKLM\Software\HTC\HTCHome\Weather\

temp = RegRead("HKLM","\Software\HTC\HTCHome\Weather\", "CurrentTemp")

ccodeHTC = RegRead("HKLM","\Software\HTC\HTCHome\Weather\", "Icon")

hitemp = RegRead("HKLM","\Software\HTC\HTCHome\Weather\Forecast0\", "HighTemp")

lotemp = RegRead("HKLM","\Software\HTC\HTCHome\Weather\Forecast0\", "LowTemp")

codeHTC = RegRead("HKLM","\Software\HTC\HTCHome\Weather\Forecast0\", "Icon")

#convert HTC code to weatherpanel/Yahoo code

ccode = HHW[%ccodeHTC%]

code = HHW[%codeHTC%]

is anything wrong, i am using htc weather...thanks
[Windows Mobile Apps and Games] jlavoie:
anamated htc diamond weather

this is a gif using diamond weather files from manila post.
[Windows Mobile Apps and Games] superflysocal:
you don't have to put anything in the gfx folder, just the wallapers in \my device\my documents\weather\ according to your settings. But, did you remove the remaining part of the script or forgot to post it?

There should be this which is the heart of the script. It should be at the end of the script:

weather="C|"&code&"|"&temp&"º H"&hitemp&"º\L"&lotemp&"º"

if (curweather ne weather)

#for s2u2 UserWeather

RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)

if (ccode ne curforecast)

wallpaper=wallpaperfolder&ccode&wallpapertype

RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", wallpaper)

Run("\Program Files\S2U2\iLock2.exe","-refresh")

endif

endif
[Windows Mobile Apps and Games] tlpalmer01:
oops here is the rest..thank u so much..

weather="C|"&code&"|"&temp&"º H"&hitemp&"º\L"&lotemp&"º"

if (curweather ne weather)

#for s2u2 UserWeather

RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)

if (ccode ne curforecast)

wallpaper=wallpaperfolder&ccode&wallpapertype

RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", wallpaper)

Run("\Program Files\S2U2\iLock2.exe","-refresh")

endif

endif

# subroutine to pull value out of XML

Sub getValue

offset = Find(argv[1],argv[2]) + Length(argv[2])+2

endoff = find(argv[1], """", offset)

return(SubStr(argv[1], offset, endoff-offset)

EndSub
[Windows Mobile Apps and Games] superflysocal:
so what results are you getting? when you run s2u2 what do you see? black wallpaper? In s2u2 settings, which weathe roption do you have check? HTC? If so try selecting userweather and tell me what shows up in the left lower corner weather data.
[Windows Mobile Apps and Games] creeater:
Is there a way to make the font bigger so I can read the High and Low temp. Very small for my eyes. Thanks.
[Windows Mobile Apps and Games] superflysocal:
S2U2 handles that..you will have to ask A_C in the S2U2 thread.
[Windows Mobile Apps and Games] tlpalmer01:
black wallpaper, i ve htc selected in s2u2 and i tried userweather and it is still black wallpaper with the temp in the lower left corner..i am at a lost and i appreceiate u helping me..
[Windows Mobile Apps and Games] superflysocal:
tell me exactly what you have done and tell me what you see.

Did you download a wallpaper set? which one?

did you unzip and put in a folder on your ppc? where?

Where did you put the .mscr file?

Did you soft reset?

Did you refresh weather in HTC weather? Try that and soft reset again. You can also try to decrease delayhours to like .1 for testing purpose (use pocket word on your ppc and thenclose the file...do not save as pocket word format). It will refresh the script like every 6 minutes.

When you set to userweather, what temps do you see, current?high?low?

Please be very descriptive when describing what you have done and what you see.

Also, when you edited this mscr how did you save it? Did you use notepad on PC?

Finally, a very useful debugging tool to use with this script is DotFred's task manager (google it). Run it and then on the drop down, select notifications. You should see the script, if not you didn't save the script correctly or run it correctly or install mortscript 4.1 correctly.

You can also use it to stop the script before rerunning it.
[Windows Mobile Apps and Games] tlpalmer01:
i redownloaded the my comba set and placed in a new folder :storage card/my documents/downloads/", updated htc weather, soft reseted and viola it now works.....thank you for all your help, i guess it didnt like the previous folder where I had them...u r very patient for helping a noob, by the way very nice program...
[Windows Mobile Apps and Games] superflysocal:
glad you got it working.
[Windows Mobile Apps and Games] superflysocal:
Updated Wallaper Bliss Alive v0.3. Small update with cleaned up graphics. Get it on the first post.
[Windows Mobile Apps and Games] ddavtian:
Help

Hi guys.

I cannot get this working on my touch. I have made changes in the script (folder with images, location, delay time) and when I manually run it, it works fine, wallpaper is changed, registry values for S2U2 are changed. But next time it needs to run (after corresponding delay), I always get an error message: "Script Files\Mortscript\W.mscr not found, waiting for existence. (storage card not initialized?)"

I've changed the script name to "W.mscr" for testing and it's under \Program Files\Mortscript. I did reinstall Mortscript, I have other scripts working. But here I have no idea. I moved the script to different folders, hardcoded its path in the script, no luck, it always complains about "Script Files\...\W.mscr not found".

I'd love to get this working, it's very nice idea.

Please advise.

Thanks, David
[Windows Mobile Apps and Games] superflysocal:
Have you tried soft resetting?

Also try searching for and installing DotFred's task manager. Click on the pull down menu and select notifications and see if you see the script listed. You may also have too many instances of the script running. If you see that try closing them down with that task manager and starting over.
[Windows Mobile Apps and Games] ddavtian:
Thanks for quick reply.

I have MemMaid installed and can see the processes. I don't have this script in startup folder, so after reset I don't have it in the processes list. I start it manually, it runs fine, updates the wallpaper. In MemMaid I can now see a time based notification (time is matching with the delay period), showing an argument "Program Files\Mortscript\W.mscr". But when time comes, it gives an error message, always saying "Script Files\W.mscr not found". I have no idea why the argument is being changed and where the "Script Files" is coming into the play.

Is it any kind of mortscript variable? Do I need to set it up somewhere?

Thanks, David
[Windows Mobile Apps and Games] alanlsmith:
Hi David, If you could post your script, I'll have a look at it for you.
[Windows Mobile Apps and Games] alanlsmith:
David, try changing this line from RunAt( utime, mort, script)

to RunAt( utime, script)

Once registered (at installation) Mortscripts will run independantly, without having to call Mortscript.exe with the script as a parameter.

I think it was this that may have been causing your problem.
[Windows Mobile Apps and Games] JSZESZE:
wow.... how would i get the script in its own window with the scroll bars like the above post.....sorry for the clutter
[Windows Mobile Apps and Games] alanlsmith:
I'm suprised that Weatherpanel has installed in a subfolder in windows, have you checked that the forecast file is actually in that location, it could be that the script is picking up an incorrect path for Weatherpanel from the registry. (maybe from a previous installation)
[Windows Mobile Apps and Games] holmanm:
You have to surround it with the code delimiters, [ c o d e ] and [ / c o d e ]. Without the spaces, I had to put the spaces in so it wouldn't treat them as delimiters. You can use the edit button to fix it if you want.

I agree with the previous poster, my WP path is "\Program Files\MarsWare\WeatherPanel".
[Windows Mobile Apps and Games] ddavtian:
Alanlsmith, thanks a lot, now it's working!

Does this affect all WeatherPanel users?

And my WP path is "\Program Files\MarsWare\WeatherPanel" too.
[Windows Mobile Apps and Games] alanlsmith:
I'm not sure, in theory "RunAt( time , application , parameter )" should work, but it throws up the same "not found" error as you had, when I tried it.

To be honest I have always used "RunAt( time , script )" for scheduling Mortscripts, so I hadn't tried it with the application & parameter specified before.

Edit: Just found the correct syntax for RunAt with application & parameter, it needs quote marks around the parameter.

So in Mortscript it would be: script = """" & SystemPath("ScriptPath") & "\" & SystemPath("ScriptName") & SystemPath("ScriptExt") & """"

to add the quote marks around the script path & name, then RunAt ( utime , mort , script ) would function as expected.

But you only need to do this if your device won't handle RunAt (utime , script ) & needs the application to be specified.

Alan
[Windows Mobile Apps and Games] htckaiseruser:
CAB

is there a way to get all this working in a cab file??

and working with spb mobile shell 2.1
[Windows Mobile Apps and Games] JSZESZE:
my rom had weather panel already installed on it......it's Nex's hybrid...UL version
[Windows Mobile Apps and Games] XTREEM|RAGE:
Very nice, it works. But i have a small problem, when i use this little script it also shows the weather icons from the s2u2 in the gfx folder. Does it suppose to work like that D:?
[Windows Mobile Apps and Games] alanlsmith:
Yes, the forecast is shown as an icon & the current conditions are reflected in the wallpaper.
[Windows Mobile Apps and Games] J Fortes:
the wallpaper temp is show in Degrees F in the lower left corner. I have the THC home set up and showing it in Degrees Celsius. What can I do so that it shows Degree Celsius in the wallpaper? Thank you in advance
[Windows Mobile Apps and Games] dwertz:
Very nice. With some modifications I got it to change my today background screen to the weather.
[Windows Mobile Apps and Games] mbritten:
if you rename the weather folder to something line weather_old (or just delete it) in the gfx directory it will stop s2u2 from showing the little weather icon
[Windows Mobile Apps and Games] brock1909:
the cab would be great. i have weatherpanel and cant get it too work. a few hours at this and nothing. grrr
[Windows Mobile Apps and Games] Red49er:
Care to share? Or is it something so simple I should just investigate myself?
[Windows Mobile Apps and Games] JSZESZE:
Please help.......i had this working once the other day then my phone locked up and had to Hard reset....now i cant get it to work for the life of me....im not really a rookie either..if u could just lemme know exactly wich lines need custom modification i'd be real pleased
[Windows Mobile Apps and Games] dwertz:
What this will do: It will change your Today background to the files located from post #1 mycombo0.3 package and every hour it will update the today background to the weather corresponding image.

Program needed:

Weather Panel: It must be running on the today screen so it gets the weather updates.

Mortscript: It is need to run the update and change the background

WeatherPanel

Once you install the cab file you need to go to "\Windows\Startup\weather_WallpaperWP0.2.mscr" and edit the script to your location that superflysocal explains how to do from Yahoo.

I also put in a fix that will allow to use the "use picture as background" option without it having a high opacity.

I removed all the stuff for S2U2 so if you have it installed it will not change the S2U2 screen.
[Windows Mobile Apps and Games] XTREEM|RAGE:
What kind of weather do you use? And if you edit your weather file, what happens etc?

Edit--

I have a weird prob. If the weather change, it will not change the background. It will only change if i go to settings -> go to the option where the background folder is, select an other folder then select the right folder again. save it and then it works.......

Do i need to change a setting in S2u2 or something needs to be on?!
[Windows Mobile Apps and Games] holmanm:
I thought somebody else might find these useful. I couldn't read my appointments with the default wallpapers and I didn't like how my clock looked over them, so I GIMPed the Samurize wallpapers to have a white section on top for the clock, a black section for the white appointment text and allow my FJ Cruiser to slide across the grass or snow.

Thank you superflysocal for starting this thread.
[Windows Mobile Apps and Games] XTREEM|RAGE:
does anybody have this?
[Windows Mobile Apps and Games] holmanm:
Sounds like something happened to the "ilock2.exe -refresh" command in the code.
[Windows Mobile Apps and Games] XTREEM|RAGE:
hmm i have a dutch rom, and my S2us is not in the folder called Program Files. But in the folder Programmabestanden and YES!!! that whas the prob. Tnx for the head up!!

I just changed:

Run("\Program Files\S2U2\iLock2.exe","-refresh")

Into my S2U2 folder! And it works now!! I'm happy :P

Run("\Programmabestanden\S2U2\iLock2.exe","-refresh")

@ the topic starter, this could be in the front page for the FAQ?! I hope it helps!
[Windows Mobile Apps and Games] wparisi:
If I change the city in WeatherPanel how do I get S2U2 to recognize this change and set the wallpaper and temperatures to the new city?
[Windows Mobile Apps and Games] holmanm:
From Post #1.

RTFM
[Windows Mobile Apps and Games] brock1909:
ok i am an idiot and cant get this to work ( editing the script with textpad editor)

i ahve S2u2 and mortscipt installed.

i have in my startup folder Notiweather and Weather_wallpaper ( i hvae tried removing one or the other and still have no luck)

i am trying to use this with Weather panel which i have on the main screen in a tab in SPB Pocket plus.

i changed the script to have my location. and degrees to F

i have my icons in my folder. storage card/downloads/wallpaper/weather. as shown in the script. S2u2 changed to Userweather in the settings.

i tried the cab too and still have gotten nothing.

on my S2U2 screen i just have the lil weather icon in the left corner showing high temp and current temp.

i dont know what i am doing wrong and its driving me nuts.
[Windows Mobile Apps and Games] wparisi:
I understand that. I was hoping I did not have to have a script for each city that I would have to run.
[Windows Mobile Apps and Games] XTREEM|RAGE:
Well you dont need notiweather tho! I have weather_WallpaperYah0.2.mscr in my startup folder(opstarten i have a dutch rom).

first change this line:

to this

It will show you the error, if there are any.

Then edit these 3 things:

Look at all the slashes etc! btw opslagkaart = storage card in english.

I have all the background forecast in there.

If you have trouble connecting to internet with this script. This will help for non english rom mostly.:

Try to change this line

To this

If you have S2U2 installed on a difrent place then the default 1. change this code.

To your S2U2 location, my location is:

That's all i needed to do!! Reboot and i could finally enjoy it.

1 more thing tho! Go with your browser or something else first on internet then try weather script!!!!. It helps me to connect instantly, instead of trying 2039483393 times :P. Hope it helps, GL!
[Windows Mobile Apps and Games] wparisi:
You only need to use the Weather_Wallpaper script in Post #1. Make sure that you change the location code. I have my weather icons in a folder called "weather" on my storage card. The code for this should be:

/storage card/weather/

Copy the script to the "Windows/Start UP" folder. Run the script then do a soft reset.

My script is for WeatherPanel. It works great on my AT&T Tilt.
[Windows Mobile Apps and Games] wparisi:
I made scripts for various cities. One of them would not show the correct city weather data. The location code is: USFL0412 (Pompano Beach, FL). All the scripts started with one, which was edited and then saved under a different name. Out of 7 scripts I modified for the location, only the one code above would not work. Any ideas?
[Windows Mobile Apps and Games] holmanm:
I notice you did the ErrorLevel thing?

What errors were there or what happened when you ran the script or after you reset the phone?

I have to ask. Have you installed MortScript?
[Windows Mobile Apps and Games] brock1909:
I do have mort installed. the error did pop up.it said

storagecard/programfiles/marsware/weatherpanel/data/p=48135- couldn't be opened

line:

forcastdata=

readfile(forcastfile)

I have weatherpanel installed on my storage card does that matter?
[Windows Mobile Apps and Games] holmanm:
There we go. You need to remove the p= from the following code.

location="p=48135"

s/b

location="48135"

And the storage card is fine for the files. You should be OK now.

Edit, I hope it works but I did notice that your path, from the error, doesn't have a space between "storage card" and "program files" which is odd. These values come from the registry so they should be right but if it still doesn't work after removing the =p this would be the next place to look.
[Windows Mobile Apps and Games] brock1909:
changed the script and have the same error....:(
[Windows Mobile Apps and Games] dwertz:
First if you live in Michigan and are trying to use the zip code this code is not supposed to be the zip code, try using this code USMI0322. If you dont live in Michigan then use the search by your city in weather panel and it will show you the location code to use. BTW weatherpanel and the mortscript must match for the weather codes.

You are getting the error: forecastdata = ReadFile(forecastfile) because Weatherpanel has not downloaded the files. There should be 4 files USMI0322-current, USMI0322-forcast, USMI0322-hourly, USMI0322-radar in the weatherpanel data folder once you get connected