yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] moesfeld:
This is a combination of Sid-Shrunk´s IFonz Weather Mortscript and superflysocal´s s2u2 weather Mortscript + modifications made by me to display in IPhonetoday

What it does?

- It displays actual temp + todays forecast in IPhonetoday as an icon

- In Icon click it displays 4 days forecast as icons in IPhonetoday

- It displays todays forecast in the s2u2 slider (Version 1.30 and above) and s2u2 Wallpaper

- It displays tomorrows forecast in s2u2 weather option

- It translates the forecasts (right now only to german feel free to edit and repost)

- It "crops"/changes the forecasts to ~ 14 chars to fit s2u2´s slider and forecast

Install:

- Install Mortscript

- download and extract the zip

- copy s2u2 folder to your Program Files folder (Overwrite files if prompted) [This is optional if you don´t use s2u2 just leave this out and set s2u2forecast=0 in the weather ini]

- copy iPhonetoday folder to your root folder (Overwrite files if prompted, won´t mess with your settings)

- change the settings to your desires in weather.ini in /Iphonetoday/

- start getweather.mscr in /Iphonetoday/weather/ (If you want you can put it into the autostart folder)

For background Development i added the source .psd´s and a script for photoshop for batch processing (In the devtools zip)

Thanks go out to:

- MiToNiOeS for the fantastic IPhonetoday

- A_C for the fantastic S2U2

- Mort for his Mortscript

- superflysocal for his weather wallpaper script which had a big influence on this (Pointing me to mortscript!) and for his wallpapers

- schettj for providing the and base for this script

- Sid-Shrunk who also provided the base for this script

- bluemetalaxe for his Realize weather icons

- someone I can´t remember who proivided the diamond weather png´s (Sorry! Please speak up if you are the one)

- someone I can´t remember for making Refreshtoday.exe (Sorry! Please speak up if you are the one)

Feel free to make Icons and translations for your language and post them here(just look for the translation section in getweather.mscr

Only QVGA for now but also feel free to create Icons backgounds for different resolutions and upload them.
[Windows Mobile Software Development] moesfeld:
This is the weather.ini

; General settings

;--------------------------------------------

;

location=

;this is your location code(see http://weather.yahoo.com/ on finding your location)

units=c

;this sets the units for temperatures f for farenheit c for celsius

GSMConnection=

;your internetconnection("The Internet","Internet","My ISP"..see settings/connections ...) If you only want to use available connections set GSMConnection=

doe=0

;set this to 1 to Disconnect on exit if Connection was established(doest work on all devices/settings)

bdc=0

;Bypass disabled connection (nodata i.e)

delayHours=1

delayMinutes=0

;how often to try and get the weather

nodata=No Data

;weather text to display when no data availible

dataerror=Data Error

;weather text to display when data corrupted

translate=1

;translate forecasts if set to 1 (note: can also be used to correct forecast to the right legth for the wallpaper theme)

; S2U2 settings

;-------------------------------------------

;

s2u2forecast=1

;set this to 0 to disable the s2u2 forecast completely

s2u2path=\program files\s2u2\

;this sets the path to s2u2

useweatherwallpaper=1

;set this to 0 to disable weather wallpaper

wallpaperfolder=\programme\s2u2\gfx\wallpaper\

;this sets the path to the s2u2 weather wallpapers

wallpapertype=.jpg

;this determines the file type of the wallpapers for s2u2

defwallpaper=def

;this wallpaper is displayed when there is no weather data available (use this without the file extention)

defs2u2text=slide to unlock

;this text is displayed in the slider when there is no weather data available

;

; IPhonetoday settings

;-------------------------------------------

;

iPhonetodayPixPath=\iPhoneToday\icons\weather\

;this sets the path to the weathericons for iPhonetoday

forecastdisplayrow=3

;this sets the row where the 4 day forecast is shown

forecastpageselect=0

;this sets the page where the 4 day forecast is shown

actualdisplayrow=3

;this sets the row in which the actual weather icon is shown

actualcolumn=1

;this sets the column in which the actual weather icon is shown

actualpageselect=0

;this sets the page in which the actual weather icon is shown

iPhonetodayTorF=0

;set this to 0 to display the Temperature values and to 1 to display the forecast text

noweather=0

;Weather Picture if no data available (without file extention)
[Windows Mobile Software Development] efjbdejong:
Wonderfull !!!!!!!!!

I wonder where can I get the same taskbar.

I would love to have the same as you (battery signalstrength ect.)

Eric
[Windows Mobile Software Development] j101399j:
Ok, I copied the files and then ran the getweather.mscr, and the iPhonetodayWeather.mscr, Icons popped up, but I don't think my data connection is working. In setings --> Connections --> Connections It says i connect through "MEdia Net" YEA at&t. Is that what I use in the weather.ini file?
[Windows Mobile Software Development] j101399j:
Also what exactly does the mscr files do? And can I move the weather icons to another page on iPhone today?
[Windows Mobile Software Development] moesfeld:
Well the mscr files parse the icons.xml seperate it into pages and icons (only in code not in the xml itself) than it replaces the icons you specified in the weather.ini and writes it into the icons.xml. Then it refreshes using refreshtoday.exe. When you click on the icons again it copies a backup of the old icons.xml over the new icons.xml and refreshes again and voila you have the old icons back.

You can move the Weather-Icon to other pages by the weather ini

Just edit "actualpageselect=" and forecastpageselect=

But on refreshing it will always start on the first page. (No way around for now)
[Windows Mobile Software Development] stevieray:
hello!

I would like to use your weather scripts & Co. but all I got is what you can see on my screenshot :(

If I lock my device with S2U2 I cannot see any difference - and no weather information appears :(

I'm quit sure to copy and edit everthing to your advice but I perhaps I didn't understand it or I miss to do other stuff before.

Can you please explain once more every single step to get a similar result to yours? If something would look ugly (because I use vga diamond) I will change it later on, first I want to see any result.

What I did:

- installed MortScript

- copied S2U2 gfx files

- copied iPhoneToday files from zip

- edited weather.ini

==> location="GMXX0007" for "Berlin"?

==> GSMConnection="VF DE Web" for my vodafone provider

- edited pathname of S2U2

- edited icon position for weather icon & forcast

I would be very happy for any idea :)

PS: or should I send pm in german ;)

oops - where is the picture?
[Windows Mobile Software Development] j101399j:
Make a lot more sence. Thank you :)

So I will specify the icons that get changed, a 1st page with one icon. I would like the weather by itself on one page. Still having a hard time setting my location and data connection. When I get that fixed, I'll repost.

By the way, when I use the weather.yahoo.com link and put in my location (well the location where I work) it comes back as Riverside/March AFB Weather is that what I would put for my location? Or put Riverside, CA?MAybe an example of a location. I still get "No Data"; and I left the connection method blank.
[Windows Mobile Software Development] moesfeld:
You have to put the city code USCA0949 in your case
[Windows Mobile Software Development] moesfeld:
Evereything you described looks right. I´ll post a different getweather.mscr that will show errors later.

I have some questions to pinpoint the error:

- Did you try running getweather.mscr when on wifi connection?

- Does the script connect correctly to the Internet?

- Do you have IPhonetoday installed? (If not I will try to make a standalone version for s2u2)

P.s. I think you forgott the screenshot
[Windows Mobile Software Development] j101399j:
Now I see it, when I went to the http://weather.yahoo.com the code is in the URL. For Riverside, CA this was the URL:

...weather.yahoo.com/Riverside-California-United-States/USCA0949/forec...

So the USCA0949 is the location I needed. :)

Thanks

Changed it and I got the "No Data" message. My connection is MEdia Net; I 1st left the GSMConnection= ,blank and it did not connect. Then I added MEdia Net and it worked both on iPhone today and S2U2.

Thank you :)
[Windows Mobile Software Development] stevieray:
First thank you for your answer!

No. And what about the "iPhoneTodayWeather.mscr"?

how do I know? First I tried while connected via ActiveSync - this wouldn't give access to internet I think. Then tried again standalone.

I tried to insert a "message" command in getweather.mcr to trace the script but I didn't see anything on the screen

yes I have. First v0.9.1 then back to v0.9.1.

oops - you are so right and I am so :eek:

PS: one more hint: RefreshToday.mscr doesn't do anything :(
[Windows Mobile Software Development] stevieray:
don't believe it!

I'm so sorry!

Now I at home, I at once added the missing screenshot and then...

I tried again the getweather script.

And what happened?

1st: I got an error: no internet... - because I was connected via ActiveSync. Then took off the cable and tried again.

2nd: I saw my traceback message command :)

and then - tataaaaaaa!!!

I had all the weather stuff as you gave it to us :D:D

Now I have to change the qvga wallpaper to vga (for S2U2)

Thank you anyway!!!
[Windows Mobile Software Development] j101399j:
Translation?

Quick question, how do I translate? Is this part of the section in the getweather.mscr?

#Replace forecasts with language specific (also convert to ~ 14 chars legth [depends on width of the word trial&error])
if (translate = 1)

#Remove prefixes in forcasts

cond[FCCounter] = Replace(cond[FCCounter], "AM ", "")
cond[FCCounter] = Replace(cond[FCCounter], "PM ", "")
cond[FCCounter] = Replace(cond[FCCounter], " Early", "")
cond[FCCounter] = Replace(cond[FCCounter], " Late", "")
cond[FCCounter] = Replace(cond[FCCounter], "Few ", "")
cond[FCCounter] = Replace(cond[FCCounter], "Scattered ", "")

#Replace Partial forecasts (e.g. Light Rain/Fog	(First line[the ones ending with /] sould be ~8 chars (including /) Second line [starting with /] sould be ~ 7 chars (including /))

#	Partly section(Partial)

cond[FCCounter] = Replace(cond[FCCounter], "/Partly Cloudy", "/T.Bewö")
cond[FCCounter] = Replace(cond[FCCounter], "Partly Cloudy/", "T.Bewöl/")

#	Mostly section(Partial)

cond[FCCounter] = Replace(cond[FCCounter], "/Mostly Sunny", "/M.Sonn")
cond[FCCounter] = Replace(cond[FCCounter], "Mostly Sunny/", "M.Sonn./")

So would I change

cond[FCCounter] = Replace(cond[FCCounter], "/Partly Cloudy", "/T.Bewö")

cond[FCCounter] = Replace(cond[FCCounter], "Partly Cloudy/", "T.Bewöl/")

with

cond[FCCounter] = Replace(cond[FCCounter], "/Partly Cloudy", "/PartCldy")

cond[FCCounter] = Replace(cond[FCCounter], "Partly Cloudy/", "PartCldy/")
[Windows Mobile Software Development] moesfeld:
Yes that looks right.

Would you mind sharing your translation when you are done?
[Windows Mobile Software Development] j101399j:
YES. I will be happy to :) this is a really fun program

One thing, I am having a very hard time getting the icons to place and show up. I moved the files to the correct location. Changed the location to the USCA#### for my area; set the GSM to MEdia Net. Pressed the getweather.mscr (I added an icon). After a short while I get 1 icon (active temp) on the 0 page in the 3rd row in the 1st position. The 4 forcast icons never shows up. When I press the active icon or rune iPhoneTodayWeather.mscr the forcast icons show up and the active icons goes away.

So I restarted, presses the getweather.mscr, moved the active icon to the bottom bar, so it showed and the forcast did not cover it. YEA!!! But now it does not update. It has stayed at 82 degrees F all night and so far through today. Is it becasue I used the UI to move the icons?

And if I try to change the positions of the icons in the weather.ini file, they get all messed up.

Also how do I translate S2U2? [edit] Just found that I need to change the icons and pictures in S2U2 to change the Morgen. Also I can't get the weather background to work :( I'll report when I do.

I am trying to understand as much as possible, that way I can (with your premission) also make a walkthrough for this and add it to the iPhone Today Walkthrough
[Windows Mobile Software Development] j101399j:
Forgot to ask on this part:

cond[FCCounter] = Replace(cond[FCCounter], "/Partly Cloudy", "/PartCldy")
cond[FCCounter] = Replace(cond[FCCounter], "Partly Cloudy/", "PartCldy/")

What does the / in the "/Partly Cloudy", mean? I have noticed some entries have the / before the word, some have it after and some even have a period. Just want to make sure I translate correctly.
[Windows Mobile Software Development] moesfeld:
I will make an english version of the s2u2 backgrounds (Morgen is german for tomorrow).

I made that part look as it is part of the slider bu in fact it is part of the background.

- The slider text and the background image show the forecast for today.

- The icon and the text under the morgen show the forecast for tomorrow.

If you moved the current weather icon with the gui it won´t update but the script will replace whatever you set in weather.ini.

Moving it to the bottom bar is not possible for now. (I will try to make an option in the next version.)

I made that icon replacing on purpose that way you only see the forecasts when needed.

So if you press on the actual weather icon it will show the forecast. When you press on one of the forecast icons it will go back to normal.

The getweather.mscr downloads the weather and stores it in the registry then it updates the current weather weather Icon (The current weather icon actually doesn´t show the current condition but the forecast for today. The caption shows the current Temp and the min and max temp for the day in the ()

If you press on the current weather Icon it runs iPhoneTodayWeather.mscr (that displays the 4 day forecast)

If you press one of the forecast icons it runs noweather.mscr (that reverts everything back to normal.

Could you describe a little more detailed how everything gets messed up?

This might be a problem in the script.

Basicly the script needs icons that can be replaced. If there are no icons to replace it will create dummy icons by itself maybe i made a little mistake and it will add to many .

Cool as you can see I´m not the best in describing how to set it up

This is because when the weather is downloaded it is sometimes like sunny/Partly Cloudy

or Partly Cloudy/Sunny or just Partly Cloudy

So if the forecast is like the first 2 The partly cloudy needs to be shortend but if it is like the last there even needs a space to be added.

On the first lines there are AM and PM and some other prefixes striped away bacause the text would be to long.
[Windows Mobile Software Development] j101399j:
install

Still working on the translation, and S2U2...

But in the mean time here is a walkthrough/install

http://james27007.tripod.com/Weather_iPhoneToday_Install.htm

Hope this helps :):):)I will add more later
[Windows Mobile Software Development] j101399j:
I am working on creating new weather icons for S2U2 sliders. Which weather condition goes to which png number? Here is an example of the on provided and my version
[Windows Mobile Software Development] j101399j:
English Version

Here is an english version of the getweather.mscr and a set of icons for S2U2 without the "Morgen" :o. Just copy them to your \program files\S2U2\gfx\weather folder.

Also make sure you change the location of the S2U2 wall paper in the weather.ini; it needs to say \program files\s2u2\gfx\Wallpaper otherwise you will not get the background on S2U2. Also set the "Today's Weather Forcast from" to "UserWeather" in the S2U2 setings. Don't worry about the wall paper part in the S2U2 settings, getweather.mscr will take care of that.

Here are some screenshots of it working and with my icons

Thank you for such a wonderful add on
[Windows Mobile Software Development] chancer63:
VGA Wallpapers & Icons for S2U2

Here are the S2U2 Weather Wallpapers in 480x640 Portrait VGA resolution and the S2U2 Weather Icons. Nothing special, I just resized the QVGA ones.

Thx 4 this great addon :) !

CU

(If necessary, make the .zip to .rar.)
[Windows Mobile Software Development] moesfeld:
Cool you are putting work into this! THX

I will create english icons soon. Are there any other languages that are needed. If so please provide the translation for "tomorow" in that language.

@j101399j

I see you have another weather icon probably for starting your weather app. What do you think of the idea that one of the 4 forecast icons will link to this app. This would save some precious icon space. Maybe even only the first icon reverts back to normal view and the other 3 start your weather app. I will try to include this into my next version if you (or anyone else) like/s the idea.

On yout last screenshot i see that the tempratures are not underneath the thermometers maybe some tweaking with adding spaces is required. (As I wrote in the code comments this is really a pain but the results look nicer that way. If your translation is complete so far I will try tweaking it if thats ok with you.)

P.S. seems to be really great weather in CA I´m a bit jealous
[Windows Mobile Software Development] chancer63:
I like this idea and I've created a new refreshweather.mscr and a slightly changed iphonetodayweather.mscr.

If you click on the today weather icon, you will see the 4 day forcast, that's not changed. But when you have the 4 day forcast the first icon will link to refreshweather.mscr which will run getweather.mscr and then the noweather.mscr. The other 3 icons have still the noweather.mscr as a link.

That means that when you click on the first forcast icon you can refresh your weather information without waiting the time written in weather.ini and then it returns back to the single today weather icon.

Hope it works, don't be too hard with me: I'm not English and these are my first steps in 'Mortscripting'... :)

CU
[Windows Mobile Software Development] j101399j:
I love CA; makes it a little hard to check the other weather icons, oh well. What country are you located in?

As for tweeking my files, go for it. I can also send you the psd files of the icons I am using if you want. Also I just realized the text spacing is wrong. I put Hong Kong (which has "Thunderstorms" and everything lined up. I just need to go back and ad spaces for the full weather
[Windows Mobile Software Development] j101399j:
Helpful tips for quick editing

I found when using pocket text editor, I can edit the weather.ini and getweather.mscr for quick testing. The problem was I had to copy it to my documents and then search all files. It took a long time. Then I discovered I can create an ico0n to the file.

exec=\windows\start menu\programs\pcoket text editor.lnk
Parameters=\iPhoneToday\Weather\getweather.mscr

and

exec=\windows\start menu\programs\pcoket text editor.lnk
Parameters=\iPhoneToday\weather.ini

This gave me 2 iPhoneToday icons that when pressed, opens the file and is ready to edit in about 2 seconds

This is also a really easy way to have multiple cities. All I do is add a line in the weather.ini

;Riverside US0949
;Hong Kong CHXX0170

And just copy the city code and rerun my icon for getweather.mscr.
[Windows Mobile Software Development] moesfeld:
Hi,

I made english Weather icons for s2u2. I´m in a bit of a hurry right now but I will update the first post with complete (a bit enhanced) Versions soon.

Note that the VGA icons are not really VGA but upscaled QVGA

P.s.: Is anyone else having the problem that getweather.mscr stops updateing itself sometimes? I really don´t know why because it should write itself into the notification que everytime it runs.
[Windows Mobile Software Development] j101399j:
Walkthrough

Major update to Walkthrough. I think it is pretty much complete now. I will update as needed

http://james27007.tripod.com/Weather_iPhoneToday_Install.htm

I also added a note in the IphoneToday install to this forum and add on
[Windows Mobile Software Development] daipob:
Great! i'll try. thk
[Windows Mobile Software Development] stevieray:
At the moment I continue to setup your nice script and I'm no longer sure that I know what it exactly does or what it is supposed to to ;)

what do I see (just right now):

- S2U2-Today screen: Teilw.Bewölkt 27°/16°

- the single icon in first page shows 22°(24°-17°)

- clicking to it I get:

Di: 26°/18° (raining)

Mi: 26°/18° (raining)

Do: N/A (big "?")

Fr: N/A (big "?")

Yesterday I received icons & data for 3 days and only 1 "?".

Please take a look at yahoo's data and my screen. I don't understand how data and icons belong together or not :confused:

Thanks a lot!
[Windows Mobile Software Development] moesfeld:
HMMM... this is wierd

Would you mind running getweather.mscr again when connected to the internet?

Also the theme you are using is kind of messing up my theme layout somehow.

I reccomend you follow this but using the VGA icons (If your device is VGA copy them to s2u2\gfx\weather\)

and then repost your screenshots.
[Windows Mobile Software Development] stevieray:
Thank you for your quick answer!

Yes indeed! Do you remember my earlier posting with similar problems to get any data? I tried during the day - nothing!

Then I tried the same at home - I succeeded!

Now I know the problem is in the missing internet connection!

At office I'm connected to my desktop to - but can't go to the internet because of proxy settings, firewalls etc. This was O.K. for me but even without ActiveSync I did see my traceback message-command within the getweatherscript.

I saw the reason in your coding and thought multiple clicking the get script won't go to the net each time because you only refresh data once an hour (as defined in .ini).

Now, at home, I do have internet access via ActiveSync - and everything is fine :)

seems to be the same reason last time.

Have to check provider string... but this should be correct :confused:

I used the ones posted by chancer63 (upscaled QVGA) and copied them into gfx/weather as documented.

I will try to use yours and come back again.

Thanks!
[Windows Mobile Software Development] j101399j:
Wierd I just updated my data and this is what I have:

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

On Phone

Current weather icon (Today) 84 (93 - 62)

Forecast Icons: Tues 94/63; Wed 92/64; Thu 92/64; Fri 90/62

S2U2

Tomorrow's icon: Partley Cloudy 94/63

Slider Todays forecast Partley Cloudy 93/62

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

weather.yahoo.com

Toady Current 84, Hi/93 Low/62 Partly Cloudy

Forecast

Tues Partly Cloudy 94/63; Wed 92/64; Thu 92/64; Fri 90/62

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

So it matches exactly. Must be corrupted data since you have issues connecting to the internet
[Windows Mobile Software Development] 12gage:
I have the program working okay exept for with s2u2, is there a certain setting that you have to have s2u2 set to for weather? before this is always use tf3d for the s2u2 weather so its still set that way.
[Windows Mobile Software Development] moesfeld:
You have to set s2u2 to user weather
[Windows Mobile Software Development] 12gage:
thank you very much