yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] fizawan:
Here is what I got using the registry data from Weather Watcher, but I guess you can use the data that reads from registry from this thread's script too

(note:for use with rlToday)

If ( NOT FileExists( "\Program Files\Weather Watcher\WeatherWatcher.exe" ) )
Message ( "You must install Weather Watcher before running this script. Exiting...", "Weather update" )
Exit
EndIf

###rerun every 2 hours###
#Rerun = Timestamp()+(2*60*60)
#RemoveNotifications("\Program Files\rltoday\IPHONE\iPhoneWeather.mscr")
#RunAt( ReRun, \Program Files\rltoday\IPHONE\iPhoneWeather.mscr" )

###Update Weather Watcher info####
Run("\Program Files\Weather Watcher\WeatherWatcher.exe")
WaitForActive("Weather Watcher",2400)
SendLeftSoft("Weather Watcher")

#If (WndActive("Weather Watcher"))
#	Minimize("Weather Watcher")
#EndIf

### Wait for weather to finish updating###
Sleep(30000)

#If (WndActive("Weather Watcher"))
#	Minimize("Weather Watcher")
#EndIf

rlIconDay = RegRead( "HKCU", "Software\Weather Watcher\Current", "Icon" )
rlCelTemp = RegRead( "HKCU", "Software\Weather Watcher\Current", "TempC" )
rlFarTemp = RegRead( "HKCU", "Software\Weather Watcher\Current", "Temp" )
rlIconStringDay = "\Program Files\S2u2\gfx\weather\" & rlIconDay & ".png"
copy(rlIconStringDay,"\Program Files\rlToday\IPHONE\rl_weatherNow.png",TRUE)

weather="W|"&rlIconDay&"|"&rlCelTemp&"|"&rlFarTemp
RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)

ReDrawToday

This code is to get the data from weather watcher's registry data, and the icon numbers from that registry is using the same icon number from png from s2u2 weather folder. To display onto rltoday skin use this code on the current skin.xml that you are using:

<Image x="11" y="136" source="rl_weatherNow.png" >
<OnClick File="\Program Files\rltoday\IPHONE\Weather.mscr" />
</Image>

where the Weather.mscr is the mortscript that contains the code above. If you want to read the data for weather from other registry value, just change the above code for mortscript to the desired registry data.

Hope that helps
[Windows Mobile Apps and Games] tcestes:
C'mon guys....can someone help me out here? I did find out that I was using an outdated version of S2UL. I downloaded and installed Version .99 and I have Mortscript 4.11. But I'm still getting no weather info at all on my screen.
[Windows Mobile Apps and Games] rifraf1:
Try going back to mortscript 4.1. I had it working fine with 4.1 when I updated to 4.11b5 it stoppped. After some debugging I was able to pinpoint that the code would stop in the for each loop and never run to completeion. I reinstalled 4.1 and it started working again with no problems.
[Windows Mobile Apps and Games] tcestes:
Ok, installing MS 4.1 and removing 4.11b5 fixed the problem for the most part, and I now have icons and temps. However, the current condition icon does not update at all. Should I still need to have hard coded locations in my script? I made sure I changed the code to "ccode".
[Windows Mobile Apps and Games] schettj:
I'll check out the beta MS and see if I can support both in the same script
[Windows Mobile Apps and Games] alipendier:
There's a newer S2U2 version...

A_C has added one more syntax for UserWeather if you are interested in updating your script...:cool: http://xdaforums.com/showthread.php?t=381588
[Windows Mobile Apps and Games] miljbee:
I can't reach www.desktopsidebar.com there might be a pb with the site. Can someone post the icon set here ?
[Windows Mobile Apps and Games] Sneeuwtijger:
Nice

Using S2U2 together with this UserWeather MortScript - works as a charm :D

Thx very much :cool:
[Windows Mobile Apps and Games] joshzide:
Problem?

Hi,

I'm having a small problem with this script which I've been unable to debug, and I was wondering whether anyone else had seen it or had any suggestions.

The script functions correctly most of the time, but sometimes, it fails to add the RunAt to the NotificationQueue, and so I don't get an update until I run it manually again. I am using MortScript 4.1 on a Samsung SCH-i760 (WM6), and I have used MemMaid to diagnose the problem, but this seems pretty strange.

Any ideas?

Many thanks!
[Windows Mobile Apps and Games] superflysocal:
I really would like this idea too. I would even settle for now just having the script change the wallpaper to a different image based on the weather forecast. We can then just make the images correspond to the weather forecast, like a picture of thunder for thunderstorms, etc.

I tried this by changing the weather icons into full images by adding blank space in front of the picture to center it, but it is limited because the weather icon gets drawn after the clock, lower right icons, and appointments so it covers those up. I have made them smaller but, the appointments is what is killing the look. I figure changing the actual wallpaper is the only way to go, except I don't know mortscript.
[Windows Mobile Apps and Games] XTREEM|RAGE:
Nice script for S2U2 :D love it...but...it doesn't change the weather during the day right? I mean it doesn't show the right icon during night/day? @least, not on my HTC Touch cruise WM6 NL. Is it possible to see the current weather with the right icon?

edit:

If i see the quote above my post, i think it's not possible?!
[Windows Mobile Apps and Games] casbah70:
Current Weather Icon

Ok, I've commented out the lines:

# get tomorrow's weather if hour past 4pm (>15)

# if (hour > 23)

#	notDone = -1

# endif

and changed code to ccode, but my S2U2 still doesn't show the current weather icon.
[Windows Mobile Apps and Games] casbah70:
Icons

I did some image editting on the PhatPhinger QVGA Icons set from ppcgeeks and copied them to my \Program Files\S2U2\gfx\weather folder, to give me large weather icons on my S2U2 screen. Works well except for the above mentioned problem.
[Windows Mobile Apps and Games] curious george:
I really do like the larger icons. But agreed, the banner with appointments and time is to transparent and the pics override it. What do you think is a possible solution?
[Windows Mobile Apps and Games] maccaberry:
Yes you can make the temperature display the current value and the icon change to the current weather. The OP describes how to do this and more detail by the author is

here

at post 11.

I am doing as per his instructions and it works.
[Windows Mobile Apps and Games] XTREEM|RAGE:
2bad i got the same prob. below me. But gonna test some more! Thanks for your help!
[Windows Mobile Apps and Games] casbah70:
Since the screen shot, I've removed the S2U2 wallpaper. Now with a solid black background, the large weather icon looks pretty good.

Can you post your script? I'll compare it to mine to see where the differences lie.

VZW VX6800 - dcd 3.0.1 - radio 3.35.04.
[Windows Mobile Apps and Games] maccaberry:
Agree.. disabling the background wallpaper to blank (black) makes the big weather icons look pretty sweet
[Windows Mobile Apps and Games] superflysocal:
just downloaded notiweather from the first post and noticed this code:

# avoid registry writes if no change

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

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

Isn't that backwards?
[Windows Mobile Apps and Games] XTREEM|RAGE:
That would be nice, because my icon's don't update to the current weather!!
[Windows Mobile Apps and Games] casbah70:
I just checked my registry entry for UserWeather and it is:

UserWeather \ W|33|76|50

From what I can tell, 33 should be the icon for the current weather and that is correct, but it is not the icon being displayed by S2U2.

Using MortScript 4.1 and S2U2 V1.00

--------------------------

FIXED!

Using MortScript 4.1

Updated to S2U2 V1.01 because the release notes mentioned:

"The format is "icon|index|high temp|low temp" where icon is S, P or W (Spb Weather, Pocket Weather or Weather Panel). Or "icon|index|string" where "icon" is C (custom), "index" is the weather icon & "string" will be the message displayed underneath the weather icon. e.g. "C|50|Rainning" means the \gfx\weather\50.png icon & "Rainning" will be displayed on screen."

In my script, I used:

weather="C|"&code&"|"&hitemp&"|"&lotemp

Soft reset and BINGO
[Windows Mobile Apps and Games] XTREEM|RAGE:
tnx casbah70

gonna try it!
[Windows Mobile Apps and Games] superflysocal:
This works, but I still don't understand why we can't use "W" instead of "C". When i use "W", the icon don't correlate with the forecast, even though it is getting it from the same icon folder source (program files\s2u2\gfx\weather). Using the C format will work correctly but I don't like how the temp is displayed: 80|60 instead of 80(degree sign)\60(degree sign)

btw how does one get the degree sign or superscript of "o" in windows mobile?
[Windows Mobile Apps and Games] casbah70:
My only guess at this point would be that the forecast from Weather Panel (W) is pulling a different icon than what the script pulls from the Yahoo page or the script isn't updating quick enough. I was set to update every two hours, so this morning I still had the moon icon until around 8am, when it updated.

You can fix the degree sign like this:

The ASCII character for the degree sign is 167, so I used that to change script line to:

weather="C|"&ccode&"|"&hitemp&"º|"&lotemp&"º"

or even:

weather="C|"&ccode&"|"&hitemp&"º\"&lotemp&"º"
[Windows Mobile Apps and Games] superflysocal:
sorry for my ignorance but how do you go from ascii character to actually getting it onto your PPC? Or do you script it on a pc first and then put it on a ppc?
[Windows Mobile Apps and Games] superflysocal:
Also, if someone could help me with a little mortscript. I am trying to modify this script so that it changes the wallpaper based on the forecast. There is one line i'm stuck at. how do your combine text in mortscript?

I was thinking like this but don't know if this would work:

wallpaper="storage card\my documents\wallpaper\"+code+".jpg"

where code is the forecast code and under storage card\my documents\wallpaper\ i will have a bunch of wallpaer jpgs labelled 0.jpg, 1.jpg, 2.jpg.....47.jpg

is that line valid?
[Windows Mobile Apps and Games] Red Cooper S:
Very nice. Just what I was looking for. Solved my last issue.

Thank you very much.
[Windows Mobile Apps and Games] Red Cooper S:
Edit the file on your PC with notepad. Go to the location that you want to insert the degree symbol. Hold down the Alt key, type 167, and then release the Alt key. You will now have the degree symbol. Save your file and then transfer it back to your phone.
[Windows Mobile Apps and Games] XTREEM|RAGE:
Tnx your solution worked! And for the code, i have this :P weather="C|"&ccode&"|"&hitemp&"º/"&lotemp&"º"

I dont know if it gonna give me any problems, but for now the code works ;) :P
[Windows Mobile Apps and Games] casbah70:
I edited the script in notepad on the pc, then copied it to the \windows\startup folder on my ppc.

Fun stuff! I have to say that A_C has done a fantastic job with S2U2 and schettj did a great job with the script! MUCH appreciation to both of them!
[Windows Mobile Apps and Games] htckaiseruser:
where can i find the mortscript 4.1 CAB

can anybody post the mortscript 4.1

cant find it
[Windows Mobile Apps and Games] htckaiseruser:
Where can i download mortscript 4.1????????????
[Windows Mobile Apps and Games] Alkhal:
Search and ye shall find..:cool: Click Me
[Windows Mobile Apps and Games] zard:
I'm using Mortscript 4.1, S2U2 1.01 and notiweather v2.1.

At the front of this page, I read that the history mentioned about a version 2.2 of this script but I only saw version 2.1 for download. Further down the thread, I saw the version 2.21 for download. So is version 2.21 the latest version to use?

Anyway, I running Leo's Diamond port of WM6.1 V4. Strangely, I found out that if I switch off 3G from my TyTN II and if Activesync is not connected, I won't see weather icon and temperature on S2U2 screen. Isn't this strange?

I tried changing connect from "Internet" to "The Internet" when 3G is switched off but that didn't make any difference. Since it is working now with 3G switched on and Activesync connected to my ISP, I didn't bother to test further.

Anyone can comment on this?
[Windows Mobile Apps and Games] Turmoe:
Hey there!

I´m struggeling on getting this to work.

I have mortscript 4.1 an s2u2 1.2 installed on my elfin.

For I´m german i renamed "The Internet" to "Internet".

But none of the tips in this thread really could help me out.

When I run the script, nothing happens. I mean absolutley nothing.

I allready tried this with my WLan, ActiveSync and EDGE connection established, but still no reaction at all.

The only thing I can imagine is, that it might have to do with the file and registry links.

I´m a beginner in editing scripts but I work as an IT-Admin so I´m not a complete noob. ;-)

Any ideas fellas?

Thanks a lot...

Turmoe
[Windows Mobile Apps and Games] holmanm:
The first thing to do is find the following lines:

# Quietly ignore all errors
ErrorLevel("off")

and comment out the errorlevel line, like so:

# Quietly ignore all errors
#ErrorLevel("off")

This will show you any errors. I suspect there is some problems with language (english vs german).

Good luck, post back if you need more help.
[Windows Mobile Apps and Games] elosogrande7076:
I have 2 questions that i was hoping someone could help me with: First, i have made what i believe are the appropriate corrections to the mortscript to allow for the current temperature to be displayed.....i used weather="C|"&ccode&"|"&hitemp&"º|"&lotemp&"º" Is this incorrect, if not, why is it that i still only have the hight and the low temp. Also, what version or skin of rltoday do i need to run and how to do i tweak it so that i can get the weather on it. Im currently using the latest version of RLtoday and S2u2 (versions v0122b and 1.02 respectfully).....any help is greatly appreciated.
[Windows Mobile Apps and Games] holmanm:
You have not added the current temp variable. "ccode" is the icon variable. "temp" is the celsius current temp variable. You need something like:

weather="C|"&ccode&"| "&temp&"º "&hitemp&"º/"&lotemp&"º"
[Windows Mobile Apps and Games] Vextreme:
Hi,

First of all, Thanks for this greath tool. I love it!

I had some troubles though with this on my Orange SPV M700 (htc 3600 / WM5).

The problem occured because the refresh option (I'm using this version weather_WallpaperYah0.2.mscr) calls for this file:

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

On my system this file is located in another folder:

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

Some other thing I noticed is that when I reboot my device and he doesn't have a i'net connection the s2u2 background (and the icon/temp line) go black.

I think this comes because you update the status (regwrite / s2u2 refresh) outside of the IF. So if the IF is false he won't get new date but he will trie to update it to s2u2.

This is how it was:

rlweather=ccond&" "&temp&" Today: " & cond & " "&hitemp
endif
endif
else
# we must be in a black hole
weather="W|0|No|Network"
rlweather="No Network"
endif

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
if (currlweather ne rlweather)

This is after the replacing:

rlweather=ccond&" "&temp&" Today: " & cond & " "&hitemp
endif
endif

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("\Programmabestanden\S2U2\iLock2.exe","-refresh")
#Run("\Programmabestanden\S2U2\iLock2.exe")
endif
endif
else
# we must be in a black hole
weather="W|0|No|Network"
rlweather="No Network"
endif

if (currlweather ne rlweather)

Regards

ps. this was my 1st encounter with mort' so please don't burn me if I did something stupid ;)
[Windows Mobile Apps and Games] queer~dude:
hello..

just wonder if you could help me out with...

Would like telling me how can you be possibly having the weather icon appeared fully? What i mean is ...i like big weather icon as well as yours, the thing i have no idea how to edit the MortScript that makes look like yours, cuz mine is like when i have whole pack of weather icons installed under the path /programe files/s2u2/gfx/weather....then it only appears Half of the Icon...i have no idea why....personally i don't feel like having small weather icons appeared on s2u2 slide-bar....i hope you understand what i am talking about...

thanks
[Windows Mobile Apps and Games] Atze001:
Is there any chance to get this working via activesync?

I would like to update the weather even if I connect my phone to my pc and than update over activesync.
[Windows Mobile Apps and Games] Emmie0702:
Newbie Help!!

Hello

I need some help! I am new to MortScript & I have downloaded all the .mscr files that were suggested in this thread but I can not figure out where to chance the codes. The problem I originally had was that the weather icons on the S2U2 screen were not changing. I got that fixed but can not figure out where to edit the script to the following...to show current weather...

weather="W|"&ccode&"|"&hitemp&"|"&temp

Can anyone help me? Am I suppose to do this edit with my PPC or my PC? I can usually figure this sort of thing out but for some reason I am stumped on this one. I feel stupid for asking but I have hit a wall & need some advice. Any help anyone can give would be wonderful!! Thanks in advance for all your help!!

:confused:
[Windows Mobile Apps and Games] aguas:
well if your using the RSS feed from Yahoo! then your code should look something like this (its the one i use; it shows current weather, than a little space and the high and low and the icon above it):

weather="C|"&ccode&"|"&temp&"º "&hitemp&"º/"&lotemp&"º"

the "W" in your tells the script to look for weather from WeatherPanel. the "C" in mine tells it that its custom, and will download from Yahoo!auto/manually, depending on what you tell it to do.
[Windows Mobile Apps and Games] Emmie0702:
I'm using WeatherPanel. But your replay still doesn't tell me where & how I edit the codes. I can't figure out where to type them to get the change I'm looking for. Can you tell me where I may do that? I understand what I have to type to get the results I'm looking for...just not where to find it. Thanks again!!
[Windows Mobile Apps and Games] aguas:
apologies, didnt read the whole post :p its towards the bottom of the script. open it in notepad and scroll to the bottom: just scan up from there and you should find it.
[Windows Mobile Apps and Games] Emmie0702:
Where is the script? That's what I can't figure out? Is there a program that's suppose to open to access it or is it a .txt file somewhere? If its a .txt file, where is it? I'm not sure why this is so hard for me to figure out. Maybe I didn't install MortScript right but everything else is working like it's supposed to. Hmm....I'm at a loss with this one!!
[Windows Mobile Apps and Games] TheChampJT:
You know there is an option to choose weather from WeatherPanel, right?
[Windows Mobile Apps and Games] Emmie0702:
Yes. I have all that set. I wanted to she the current weather on the S2U2 Lock Screen as offered in the earlier posts. I can't figure out how to do that....there's where my trouble is coming from. I can not figure out where to edit the script to the following...

weather="W|"&ccode&"|"&hitemp&"|"&temp
[Windows Mobile Apps and Games] TheChampJT:
I haven't used this in a while, but your script is correct. "ccode" is what will display the current forecast icon. If you want a better view of the current weather, this script was altered to change the background based on the current condition.
[Windows Mobile Apps and Games] Emmie0702:
Thanks but how do I edit the script? That's what I am having trouble with. Ii under stand the codes & the changes but can't figure out where to put them.
[Windows Mobile Apps and Games] TheChampJT:
Oh, just open it with a simple text editor on your PC, like notepad.
[Windows Mobile Apps and Games] Emmie0702:
Like a blank notepad doc? What do I do then? What do I save it as & where do I save it?
[Windows Mobile Apps and Games] TheChampJT:
Right click>Open with Notepad

Modify it with correct info and save, don't change name

Put on your PPC
[Windows Mobile Apps and Games] Emmie0702:
Right Click on what?
[Windows Mobile Apps and Games] holmanm:
From post#1

So /Windows/Startup/notiweather.mscr would be the script.
[Windows Mobile Apps and Games] Emmie0702:
Yeah...I got that. Read the prev posts to see what I am looking for. I am trying to edit the CODES & can't figure out how to do that. I have all the .mscr files in the right places. I can not figure out where to edit the script to the following...

weather="W|"&ccode&"|"&hitemp&"|"&temp :(

What do I Right Click on, What do I open with Notepad, etc. That's what I have been trying to find out.
[Windows Mobile Apps and Games] Emmie0702:
Icon/Code Help

OK...I figured out how to edit the MortScript but I am having trouble w/ my icons. It is about 4:20AM & the weather just updated on S2U2 but instead of showing a night icon it's showing a day one. To think of it I don't remember ever seeing night icons.

When I look at the reg. it shows: W|31|82|62...if W means WeatherPanel then why is it showing? I have the settings on UserWeather & fixed the script to: weather="C|"&code&"|"&hitemp&"º/"&lotemp&"º"

Also, is there a way to show the High/Low temp as well as the current temp? I tried using the following code but it's not working...

weather="C|"&code&"|"&hitemp&"º/"&lotemp&"º|"&temp&"º"

Can someone help me figure out how to get the correct day/night icons to show at the corrent times as well as also show the current temp? This should be the last time I both you all! I was having a "DUH" :p moment before. Thanks again for everyone's help!!!:rolleyes:
[Windows Mobile Apps and Games] brock1909:
currently i have High/Low/Feels am/pm % chance of rain. i would like to put the last updated time ( as seen in weatherpanel) on there as well.

How can i code into mortscript to show the last updated time on the screen?
[Windows Mobile Apps and Games] jellibean75:
help for the love of code!!!

I've got notiweather.mscr loaded into the start menu with my zip code, I'm running mortscript 4.1, I have S2U2 1.05 I have a WM6 device (AT&T Tilt by HTC) and I have restarted the device.

Would you mind sharing with us the process for how we edit our registry and add ShowWeather, DWORD 5. I found it and just can't figuire it out.
[Windows Mobile Apps and Games] holmanm:
notiweather.mscr is supposed to be loaded into the /Windows/Startup folder not the /Windows/Start Menu folder
[Windows Mobile Apps and Games] jellibean75:
i meant startup..but now i need to go check to make sure...lol
[Windows Mobile Apps and Games] holmanm:
Just pick Start - Programs - S2U2 - S2U2 Settings then last item under "Information:" "Today's Weather Forecast from" Choose "option 5".
[Windows Mobile Apps and Games] thiti1999:
Please help, for need show SPB Weather on S2U2

I had try many many :mad: method for make S2U2 show SPB Weather.confused: Any one, Plese help me for show SPB Weather.

Note:

S2U2 v1.05

SPB Weather v1.6

Many Many thanks in advance. :D
[Windows Mobile Apps and Games] jellibean75:
registry

i know that. i meant in registry. I realize after someone tells me i be like DUH.. :eek:. But I have stared at it for two days now.

also my weather bug won't work...is it connected?
[Windows Mobile Apps and Games] holmanm:
I don't know what you mean then by "add it", you can't add it because it is already there. You can edit the value "5" by double tapping it.