FORUMS

[Mort]s2u2weather + IPhonetoday weather + translation(German inc.)(Only QVGA for now)

267 posts
Thanks Meter: 5
 
By moesfeld, Senior Member on 8th February 2009, 10:20 PM
Post Reply Email Thread
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.
Attached Thumbnails
Click image for larger version

Name:	sshot003.jpg
Views:	3370
Size:	67.1 KB
ID:	198828   Click image for larger version

Name:	sshot001.jpg
Views:	3200
Size:	66.5 KB
ID:	198829   Click image for larger version

Name:	sshot002.jpg
Views:	4955
Size:	61.7 KB
ID:	198830  
Attached Files
File Type: zip devtools.zip - [Click for QR Code] (7.83 MB, 1138 views)
File Type: zip Weather.zip - [Click for QR Code] (2.01 MB, 1438 views)
24th June 2009, 07:15 PM |#2  
OP Senior Member
Thanks Meter: 5
 
More
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)
24th June 2009, 07:35 PM |#3  
Senior Member
Flag So Cal
Thanks Meter: 57
 
More
Preparation

FIRST and MOST IMPORTANT: Back up your phone


1. Download and install iPhoneToday (http://forum.xda-developers.com/showthread.php?t=508429)
1. For my install walkthrough of IphoneToday visit: http://james27007.tripod.com/iPhone-Install.htm
2. Download the weather.zip file from the first post(http://forum.xda-developers.com/showthread.php?t=480686)
3. Unzip the weather.zip file
4. Open the weather.ini file and edit to your settings. Each line is explained in the file. I recommend leaving the settings alone and only changing the location and data connection type.
5. Download and install Mortscript (http://www.sto-helit.de/forum/)
6. Download and install S2U2 (http://s2u2.eqvipage.dk/)
1. Optional Here is the English version http://forum.xda-developers.com/show...5&postcount=29

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


Editing the weather.ini file

On the PC Edit the weather.ini file with notepad. There are here is the entire file. Below is the settings I edit/changed :


; General settings
;--------------------------------------------
;
location=
;this is your location code(see http://weather.yahoo.com/ on finding your location)
units=
;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
;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)

----------------------
Most settings have a perfect explanation; here are the ones I edited or changed for English settings
General Settings


1. You need to go to http://weather.yahoo.com/ and look up your location. In the URL you will see after the location a country code. Here are some examples
a. For Sacramento, CA, USA this was the URL:
b. weather.yahoo.com/forecast/USCA0967.html
c. So use USCA0967 as the location

d. For Berman, Germany this was the URL:
e. weather.yahoo.com/forecast/GMXX0014.html
f. So use GMXX0014 as the location

g. For Hong Kong, China this was the URL
h. weather.yahoo.com/forecast/CHXX0170.html
i. So use CHXX0170

2. units=
a. use C for Celsius and F for Fahrenheit
3. GSMConnection=
a. This is how your phone connects to the internet. Leave blank if you want it to use any available connection. Or to set your standard you need to look up your connection:
b. Press Start --> Settings --> Connections --> Connections --> select the Advanced tab --> Select Networks
c. The name in the top drop down box is your connection. I have AT&T so I use Media Net; other possibilities are "The Internet", "Internet", and "My ISP”
4. nodata=No Data
a. This the text that will display when you have no data, I like using “searching”
5. dataerror=Data Error
a. This the text that will display when you have a data error, I leave this alone

S2U2 Settings

6. s2u2forecast=1
a. change to 0 to disable S2U2 completly
7. s2u2path=\program files\s2u2\
a. this sets the path to s2u2 program CHECK LOCATION AND SPELLING!
8. useweatherwallpaper=1
a. set this to 0 to disable weather wallpaper
9. wallpaperfolder=\ program files \s2u2\gfx\wallpaper\
a. this sets the path to s2u2 wallpaper CHECK LOCATION AND SPELLING!

iPhone Today Settings
I left these alone, but the explanations under each line explains it perfectly.


You can Mess with other settings, however I do not recommend it unless you really know what you are doing
----------------------

How to install:


1. On your PC, open “My Computer”, then open your device. You can also use Active Sync, but this is a lot easier. Once you open your device you will be looking at the phone’s root directory; you will navigate from here to copy the files over.

2. On your PC, open the weather folder, open the S2U2 folder, then open the gfx folder. Copy the contests of the gfx folder to your phone under your phone’s \program files\S2U2\gfx folder

3. On your PC, open the weather folder and open the iPhoneToday folder. Copy the Weather folder in there, the weather.ini and Refresh Today.exe files to your phone’s iPhoneToday folder in the root directory, not the one in program files!

4. On your PC, open the weather folder, open the iPhoneToday folder then open the icons folder and copy the weather folder in there to your phone’s iPhoneToday\icons folder.



Here is what the folder tree looks like after you have copied the filter to you phone


5. On your phone, create an icon and point it to the getweather.mscr in your \iPhoneToday\Weather folder. This will start the program.

6. For an auto start option, copy the getweather.mscr to your \windows\startup folder. That way it will run every time you start your phone.
----------------------

S2U2 Settings

When enabled the S2U2 will display tomorrow’s forecast

The only thing you need to do is go into S2U2 settings and set the "Today's Weather Forecast from" to "UserWeather"

If your background is not showing, verify what location it is looking in for the background; there may be a typo in the weather.ini file

----------------------
How it works



When you run getweather.mscr, your phone will connect to the internet and a new icon will appear on your 1st page of iPhoneToday. Note it may overwrite some of the icons. To avoid this place only 4 icons on the top row, that way the icons will be placed under that.

The new icon will be the actual weather for your area. When you press that icon it will be replaced with the forecast for the next 4 days.

To return back to the current weather, press any of the 4 forecast icons, this will remove them and restore the original current weather icon.
24th June 2009, 09:46 PM |#4  
efjbdejong's Avatar
Senior Member
Flag Woubrugge
Thanks Meter: 22
 
More
Wonderfull !!!!!!!!!

I wonder where can I get the same taskbar.
I would love to have the same as you (battery signalstrength ect.)

Eric
25th June 2009, 03:52 AM |#5  
Senior Member
Flag So Cal
Thanks Meter: 57
 
More
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?
25th June 2009, 03:59 AM |#6  
Senior Member
Flag So Cal
Thanks Meter: 57
 
More
Also what exactly does the mscr files do? And can I move the weather icons to another page on iPhone today?
25th June 2009, 04:40 AM |#7  
OP Senior Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by j101399j

Also what exactly does the mscr files do? And can I move the weather icons to another page on iPhone today?

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)
25th June 2009, 03:38 PM |#8  
Member
Thanks Meter: 0
 
More
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?
25th June 2009, 04:07 PM |#9  
Senior Member
Flag So Cal
Thanks Meter: 57
 
More
Quote:
Originally Posted by 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)

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.
25th June 2009, 06:23 PM |#10  
OP Senior Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by 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.

You have to put the city code USCA0949 in your case
25th June 2009, 06:31 PM |#11  
OP Senior Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by 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

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
Post Reply Subscribe to Thread

Tags
ifonz weather, s2u2 weather

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes