yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] j101399j:
Hey did you see this in the iPT forum, from what I am starting to understand from M.S. this will make the weather app flow a lot smoother:
[Windows Mobile Software Development] superflysocal:
Nice job. never got a chance to thank you for mentioning me in your credits, so THANKS!
[Windows Mobile Software Development] DarkPrinceByWWW:
Hello gyus. Just done all the things needed to install the app, but it doesn't change any icons.

I habe a TP2 (WVGA) as MDA Vario V (german t-mobile branding). Is it because of the resolution?

I'm using iPT v1.2.5. Just maked an icon to the getweather.mscr and after touching this icon, the inet connetion is established, but nothing happens after. :( Here is my ini file View attachment weather.zip There is also no changes on s2u2. Any idea what to do?

The no data icon was already included by iPT.
[Windows Mobile Software Development] moesfeld:
The ini looks fine fine to me. could you look into the registry under HKCU\Software\moesfeld\

Are there any folders values?

I just got my Phone back and on Tuesday I will have Internet again (I just moved) Then I will rewrite the script to use the new Icon refreshing feature of IPT.

That version will be compatible with 1.2.5. I didn´t check the current version against 1.2.5. Also I haven´t checked v2.04 of s2u2 yet.
[Windows Mobile Software Development] DarkPrinceByWWW:
There are no values. There is a key "Weather".
[Windows Mobile Software Development] moesfeld:
That looks good also: the data is downloaded and translated properly.

So taking the data to Ipt and s2u2 is somehow corrupt.

Please try to change actualdisplayrow=0 in your weather ini to actualdisplayrow=1 as there is now row 0 that might cause the script to hang completetly.

Anyway I reccomend to use the first Page (Page 0) for weather icons because in this version it switches back to the first page when displaying the forecast.

My reccomended settings for ipt in german are:

; 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)

Would you try replacing that part of your weather.ini?

The next version Page and Icon numbering will be easier and correspond to the numbering of IpT
[Windows Mobile Software Development] DarkPrinceByWWW:
I did, but there is still no changes of icons. Does it matter there the icons should be (getweather)?

Edit: S2U2 was changed :D (i used the old silde png)

How can i change it to WVGA?
[Windows Mobile Software Development] moesfeld:
There seem to be changes in the xml structure in 1.2.5 i will look into it soon.

In this Version it´s better to have the icons on the first page in the next it doesn´t matter.

Sorry I don´t have WVGA backgrounds. You could just resize all images but they will get disorted.
[Windows Mobile Software Development] DarkPrinceByWWW:
I'm looking forward t it :)

There is an another issue by the option to terminate the connection after getting the data. It's actually a great idea th terminate the connection, but the script crashes (although the connection gets terminated :D ) :( Any way to fix it?
[Windows Mobile Software Development] DarkPrinceByWWW:
I did some upscaling of the wallpapers but as you can see there is still something missing, i mean the images from the weather folder. Why are they not loaded?
[Windows Mobile Software Development] moesfeld:
Looks like the script is going into an endless loop or interfering with PowerOffWarnig.exe. (I don´t know what this is)

Does it also crash if you set doe=0 in weather.ini

Have you set S2U2 to display user weather (In S2U2 Settings)?
[Windows Mobile Software Development] j101399j:
Just an FYI;

I am running iPT 1.2.5; this script and 5 other custom scripts and so far everything still works perfectly. I am looking forward to the new version that will use the ReloadIcon command :) :)
[Windows Mobile Software Development] DarkPrinceByWWW:
No, it doesn't. I think it crashes because of the settings i made. I set the GSMconnetion to E-Plus like my ISP.

If i just set it to Internet, it terminates the connection without crashing :)

That wasn't mentioned in the installation guide at the first post :-P

Now it works with s2u2.

Edit: For some reason i cannot attach the upscaled wvga files. Maybe someone skilled in photoshop could make all this pics new in wvga resolution :)
[Windows Mobile Software Development] sponge_worthy:
I want to thank you all for providing this script. I have it set up and works except for it doesn't refresh the icons. I'm using the new iPhoneToday.exe instead of the today plugin. Is this causing the problem? I've even tried to create a button linked to the refreshtoday.exe in the iPhoneToday directory but that doesn't even work. The icons only refresh when I shut iPhoneToday down and restart it. Then the forecast shows up properly. I have to shut it down and restart it again to get rid of the forecast. Any solutions?
[Windows Mobile Software Development] DarkPrinceByWWW:
Hey, i'm about to make new Wallpaper for WVGA resolution. Could you please describe the wallpapers in the wallpaper folder, i mean which wallpaper belongs to which time/weather (like twilight and evening and so on) :)
[Windows Mobile Software Development] hsmcd:
hmmm...actually im having the same problem :confused:

help~~~~:D

thanx for everything btw
[Windows Mobile Software Development] iain2510:
I have a similar problem - no matter what I set my internet connection to the icons wont refresh unless I actually have Opera opened and running. As I have an unlimited data plan I don't mind having it 'on' all the time. I have tried altering various settings but the only thing that definately works is to have Opera (or IE) open when pressing the weather icon on IPT.
[Windows Mobile Software Development] chancer63:
Maybe this can help:

--> http://www.deskmodder.de/wiki/index.php/Wettericons_Nummern_und_ihre_Bedeutung#Englisch

CU
[Windows Mobile Software Development] DarkPrinceByWWW:
That looks good, but why are the several images assigned to the same weather?

Edit: For some places like my city or generally for lands like germany it is not possible to forecase the weather for more than one day. So how about to edit this weather tool to show the weather hour by hour for today (like about for the next 4 hours) and forecast only for tomorrow? Its because the forecast for today was sunny weather and i got into hard rain :(
[Windows Mobile Software Development] moesfeld:
Hi there,

Im back onto the weather script. Regarding the weather codes i don´t know why there are several codes for the same weather ? But I do know they are used correctly by yahoo.

I get 4 day forecast for most of the citys here. For Dortmund I get 4 day forecast every time. (guess thats where u live)

But the forecasts were pretty off the last few weeks here also (münster)

For the Hour by hour forecast I would need an rss source that contains this information and also the corresponding weather code.

MSN Weather does 3 hourly forecasts but they don´t have an rss for this and extracting the information from html is a pain in the a**** (But not impossible since msn uses standard weather codes too)

I will take a try as soon as the new script is done.
[Windows Mobile Software Development] DarkPrinceByWWW:
What about the source for the TF3D Weather Tool? Its accuweather, look here:

http://accuweather.com/m/en-us/EUR/DE/GM011/Dortmund/details.aspx

and the hour by hour forecast:

http://accuweather.com/m/en-us/EUR/DE/GM011/Dortmund/Hourly.aspx
[Windows Mobile Software Development] DarkPrinceByWWW:
@moesfeld: May i use ur script for my Project for rlToday please? I will extend the script for more cities and more today data :)

My Project: http://www.pocketpc.ch/htc-touch-pr...ilfe-bei-today-plugin-gestaltung-rltoday.html
[Windows Mobile Software Development] moesfeld:
Shure have a go! Here is what I got so far Multiple cities should already download and display should also work. Unfortunately I didn´t have time to comment the code and settings but I will do later.

locationnumber= Sets the number of locations and there are some registry writes for debuging you may want to remove in ur final version.

For the other uses this is Work in Progress so it may or may not work.
[Windows Mobile Software Development] DarkPrinceByWWW:
:D, this is the same way i wanted to extend the script ^^ I'm mean makin the setup script. Since, some people want to edit locations name and maybe remove some cities and have to use the setup script a few more time, you should add the option to delete existing locations ;)

I'm thinking about on where to store the input, in the ini file of in the registry.

Maybe you also should create an weather.ini file with some default values in it, so you could run the script without the setup, f.e. for New York.

For the auto update using hours and minutes you should make something like if hour <> 0 and minutes <> 0 ....code for runat....else nothing so you have the option to deactivate the auto update.

I will edit the script (remove S2u2 and iPhone Today entries), so one can use both scripts (urs and my mod) for rlToday and iPT. Therefore i have to change the reg key name from moesfeld to dunno :D Any suggestions? Something like moesfeldmod ^^

I also wanna try to implement the hour by hour forecast and some other sources like accuweather http://www.accuweather.com/rss-center.asp

Since VJVolubilis works on my device, i'm using it to toggle the internet connection:

Run("\Programme\rlToday\toggle\VJVolubilis.exe", "-gprstoggle")
[Windows Mobile Software Development] moesfeld:
You can change everything you like. I would even reccomend to change the regpath to DarkPrince so it is clear to what app/script it belongs to.

I was thinking about storing the settings in the registry in the future (I think the read process is faster than iniRead)

The Setup script doesn´t save the values for now. I wanted to create a .cab that installs everything into the right place (Icons walpapers Mortscript.exe etc.) so the user won´t have to set the correct path to everything since Morscript can handle language specific path [SystemPath( ProgramFiles )].

After the cab install the setupweather.mscr should run automaticly. (haven´t found a convinient way to do this yet).

Also I was planing a mayor rewrite and create functions for downloading the weather rather than using big for x to y loops. Makes documentation and overview easier.

I´m still dreaming of a compiler for mortscript but I guess that won´t happen.

P.s.: Your rlToday/Ipt Homescreen looks really impressive!!!
[Windows Mobile Software Development] DarkPrinceByWWW:
Thanks. :) I hope the guys will support me with some nice layouts :D

I'm looking forward to your script developing. As far as i get more time, i will to assist you as good as i can :)

The cad is a good idea since the installation could be troublesome for some user.

You actually also could use Sys-To-Reg or write a script that refresh the data without connecting to the internet. I mean the forecast. Let say, i have download the weather data yesterday, so the data is obsolete. There could be some script (module in Sys-To-Reg) that reads and compares the data and shift the reg data one day forward.

Since i have to use Sys-To-Reg to switch rlToday to landscape mode, i will create the needed module. You could actually just use one little script and run it every two hours ;) (in the case someone deactivate the weather data autoupdate)
[Windows Mobile Software Development] moesfeld:
This is actually done by the script already

If it can´t dowload the data it will use the data downloaded before (even up to 4 days wich is not very accurate)

But anyway I´m pretty drunk right now (trying to drink the the pain away the election caused in my brain. But it doesn´t work very well I guess I will have to live with the new government at least for the next 4 years)
[Windows Mobile Software Development] chancer63:
Thank you, moesfeld. Works for me. I didn't use the install- file, I wrote everything into the weather.ini- file.

CU
[Windows Mobile Software Development] DarkPrinceByWWW:
There are some new text in the forecast (+ translation):

Drizzle - Nieselregen

Showers In The Vicinity - RegenS in der Umgebung / RegenS in Umgebung

Light Rain Shower - Leicher Regenschauer / Leicher RegenS / Leiche Regenschauer

Any idea how to get the hour by hour forecast?
[Windows Mobile Software Development] moesfeld:
I haven´t looked into it yet. I´m writing my "Diplomarbeit" and were pretty distracted by that lately (Stupid real life:D)

I´ll add the new phrases and see what I can do about hourly forecast.

I have to admit that I havent been using IPT lately because of exessive rom testing (6.5 with Titanium which has very great potential I think)
[Windows Mobile Software Development] michoob:
Hi moesfeld, thank you for your work, it's great.

I'm using your script for several days now, and all is alright.

When do you expect making a version using the reloadicon feature of iPhoneToday 1.2.5?

Good luck with your diplomarbeit.
[Windows Mobile Software Development] tamago_quin:
is there a way to trap errors? no matter what city i choose after connecting to the net it constantly says "no data"

and has yahoo changed? the city codes seem to be in a different format now according to yahoo dev.weather
[Windows Mobile Software Development] chancer63:
TUXX0004

for example works for me without any problem.

GSMConnection=

This is my line for internet connection because I only use it when I have WLAN.

Good luck.

CU
[Windows Mobile Software Development] tamago_quin:
yahoo has changed their rss feed and in the near future will discontinue the use of "p".

here is the new format:

weather.yahoo.com/japan/yamaguchi-prefecture/ube-shi-1118446/

in getweather.mscr the yahoo address needs to point to

http://weather.yahooapis.com/forcastrss?w=""

changing this got rid of the "data error" label but now it is back to "no data". this tells me i am connectibg to yahoo but its not displaying the data. i would like to know what happens after it tries to retrieve the data
[Windows Mobile Software Development] michoob:
Yahoo has not yet changed its RSS feed, and the use of "p" still works.

If you want to use the WOEID code 1118446 instead of the "p" code, yes, you have to change getweather.mscr in order to request with "w".

Then, make sure the location of your weather.ini file is set to 1118446.

I have just tried the "w" way for paris, using location=615702 instead of location=FRXX2071 of the "p" way, and it worked like a charm!
[Windows Mobile Software Development] tamago_quin:
they will change from p to w in the future... besides... i had to use w because the yahoo address uses it now. i cannot find the p code, so my guess is that any new user will run into this same problem.

this is from yahoos site:
[Windows Mobile Software Development] DarkPrinceByWWW:
Go the the yahoo weather site http://weather.yahoo.com/ and type your city name. For example:

New York - You'll see this link in ur browser http://weather.yahoo.com/united-states/new-york/new-york-2459115/ The marked code is the one you need ;)

@tamago_quin: Does the script work correctly with wlan or activsync? If it only doenst work with your internet connection (EDGE, UMTS...whatever), you will have to edit the code and set a sleep time after establishing the internet connection. Something about 10-15 seconds should be enough. You can increase the sleep time untils it works (it works on my phone&WM6.5 after 25-30 seconds wait time).
[Windows Mobile Software Development] tamago_quin:
so the code needs to be updated :) as is, new users will get a data error because weather.yahoo no longer uses the "p" code. for existing users there are no problems yet...

i only have hsdpa connection so i can't confirm, but i will try what you suggested. thank you!!!!

errr... where do i change the sleep time? ^_ｰ
[Windows Mobile Software Development] DarkPrinceByWWW:
HSDPA is just the fast version of UMTS ;) It doesnt really matter whether your're using GPRS or HSDPA. For the script it is just a logical internet connection. So the script will try to connect but doesnt wait until the connection really established and starts to load the data althrough the connection part is not finished. So the downloaded weather feed is empty and you get the load error.
[Windows Mobile Software Development] tamago_quin:
thank you!

what should i update in the script to make it sleep?
[Windows Mobile Software Development] DarkPrinceByWWW:
if (not InternetConnected("http://www.google.com"))
if(GSMConnection ne "")
connect(GSMConnection)
didconnect=1
endif
Sleep(29000)
ToggleDisplay(1)
Endif

There is already a sleep function. Just increase the sleep time from 29000 (ms) to 32000 or a little bit higher.

And here

For i=1 to locationnumber
ToggleDisplay(1)
raw[i] = ReadFile('http://weather.yahooapis.com/forecastrss?p='&location[i]&'&d&u='&units)
next

You could add a command to display the downloaded data, like this:

For i=1 to locationnumber
ToggleDisplay(1)
raw[i] = ReadFile('http://weather.yahooapis.com/forecastrss?p='&location[i]&'&d&u='&units)
Message(raw)
next

If the pop up window, a message from mort script, is empty, your device wasn't able to download the data. It should be something like this:

I've attached the modified getweather file, but i'm not sure it will work on your device or not, because there are some devices that do not want to work this way. What device do you exactly using?
[Windows Mobile Software Development] tamago_quin:
thank you for the script. unfortunatly it only returns [Array]. im using a toshiba t-01a

i think its easier to just move on.

thank you so much for your help ^_^
[Windows Mobile Software Development] DarkPrinceByWWW:
Sry, my fault. Message(raw) not just Message(raw) :D Plz edit the script ;)
[Windows Mobile Software Development] tamago_quin:
that worked ;)

it also told me whats wrong. it isnt parsing "&" correctly. its displaying its ascii code? what i did was hardcode the url and it works!! a little ^_^

the 4 day forcast works, but the current weather still says "no data"

i fixed it. i dont know if the encoding is wrong but the "&" character caused lots of problems!

thank you sooooo much for all your help!! one last question. it shows the temp as:11-(14ｰ-12ｰ) where can this info be edited? im using a japanese os so i wonder if thats not what im supposed to be seein
[Windows Mobile Software Development] michoob:
You should be seeing 11°-(14°-12°).

You can change this modifying the several affectations of the variable iPhonetodayTemp in getweather.mscr.

I've attached a version of getweather.mscr and iPhoneTodayWeather.mscr that uses:

- the reloadIcon and reloadIcons feature of iPhoneToday

- the WOEID code of cities

With my scripts, you don't need noweather.mscr nor ReloadToday.exe anymore, and in the weather.ini, the city code has to be a WOEID code from Yahoo Weather (for instance, for Paris in France, it is 615702 instead of FRXX0076).
[Windows Mobile Software Development] tamago_quin:
that is an awesome script! except from my experience it never updates the forcast nor the current weather. did i do something wrong?
[Windows Mobile Software Development] michoob:
Can you connect to yahoo weather with Opera? Perhaps you have some problem with your provider...

Hum, another question: do you run the script?

May sound a stupid question, but...

Have you tried through a Wifi connection?
[Windows Mobile Software Development] tamago_quin:
i replaced the previous scripts(which were working)with yours. ran the script but nothing would update.

i noticed my phone doesnt dispay certain characters properly so ill run through the code and see if its a problem like that.

i feel bad asking so many questions about this over something so simple...

i dont have internet access through my pc or wifi. only my carriers network unfortunatly
[Windows Mobile Software Development] michoob:
I think that if you replace the script, you have to restart, because instead of that, you have still in the mortscript exe the RunAt command for the old one... I don't really know if it matters, but you should try to restart.

In you weather.ini file, make sure to have the WOIED code for the location, if using my version...
[Windows Mobile Software Development] tamago_quin:
it all works now. i dont know what happend the first time (user error? ^_ｰ) anyways! thanks for this! your update is great!
[Windows Mobile Software Development] michoob:
It seems that the weather with the p code is not up-to-date since the 11/20/2009.

So you have now to use my script version with the WOEID code.

Moreover, I've seen that sometimes, the forecast is only for 2 days and not 5, and this results in the Err message for the weather.

So I'm going to change soon my script so it'll still work fine, even with just 2 days of forecasts... stay tuned. ;)
[Windows Mobile Software Development] michoob:
Ok, here is a new version of getweather.mscr and iPhoneTodayWeather.mscr that only displays the forecast for the number of days available in the yahoo API, in order to correct the Err message when there are less tha, 5 days of forecast.

If I have more time, I'll try to remake the script a little more...
[Windows Mobile Software Development] michoob:
Just to let you know I'm working on a version of weather for iPhoneToday using the AccuWeather API instead of Yahoo!, since Yahoo! Weather provides only two days of forecast now...

I think I'll use the xml parser for MortScript that I've found here:

http://xdaforums.com/showthread.php?p=1794231

The good news is you can provide AccuWeather with longitude and latitude, so I'll perhaps manage to make a kind of 'My Location' feature.

But since I don't use s2u2, I don't think I'll make my script for that, because I want to do it for myself first. :)
[Windows Mobile Software Development] michoob:
Here we go!

If you want to get AccuWeather forecasts in iPhoneToday, just go here: http://xdaforums.com/showthread.php?t=603817

Thank you moesfeld for your work on the Yahoo! Weather API that has inspired me for a similar work using the AccuWeather.com API.
[Windows Mobile Software Development] so 77:
Can you please tell me what is (( copy iPhonetoday folder to your root folder)) ?
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] WatermelonSlim:
So when the device hard resets and the user customizations are running, how do you set up your own user customizations? I just read the ROM cooking Wiki and didn't see anything about it. I can see how to convert a cab to an OEM package, but I am not sure that is what I am looking for.

Specifically, I have an exe file (self executing restore file that is to be run from the mobile device, with an exe extension) that I want run during the customization process. And I don't want anything else run at all during this process.

Can someone point me in the right direction to make this happen?

The file I am trying to run is an SPB clone Image file. I made it with the trial version, you can download the trial version here if you want:

http://www.spbsoftwarehouse.com/products/clone/download.html

It costs $300 to buy, so I am not going to buy it unless I can make it work the way I want.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] DaveShaw:
Search your kitchen's OEM for Config*.txt and add it to one of those files.

EXEC:MyApp.exe

Thanks

Dave
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] WatermelonSlim:
Excellent. Thank you!!!