yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] stevieray:
getting crazy

Hello, it's me again - and I spent a lot of time with debugging the getweather-script, no idea at all why I cannot establish an internet connection right out of the script :confused:

Here is the setting within weather.ini (please take o look to the screenshot of my settings\connections\connections):

GSMConnection="VF DE Web" - this should be correct, shouldn't it?

I also tried to leave the string empty, establish a manual connection via opera so that the script can use an existing connection. But no effect!

Please look to the following section:

# do we have internet?

if (InternetConnected( "http://www.google.com"))

Message ("Nr.1: google-Zuriff erfolgreich")

raw = ReadFile("http://weather.yahooapis.com/forecastrss?p="&location&"&d&u="&units)

Message ("Nr.2: Wetterdaten von yahoo geholt...")

...

Trace-Message Nr.1 is been showed, then nothing happens about more than 30 secs and then I get this error:

'http://weather.yahooapis.com/forecastsrss?p=GMXX0007&d&u=c' couldn't be opened

If I connect my device to my desktop (ActiveSync) everything is fine!

Can you give me a hint please?
[Windows Mobile Software Development] moesfeld:
I think I´m at end with my latin. (Autsch der war flach:D)

It is strange on my phone I can´t get the weather when I´m connected Via active sync.

Did you try with wifi?(If your Phone has it)

What programs do you have installed?

What is your Phone model + Rom?

If you set doe=0 in the weather.ini can other programs use the connection that was established by the script?

Did you try opening the URL in opera? is it displayed correctly?
[Windows Mobile Software Development] j101399j:
I don't think you have the correct connection name. At least that does not look like the correct connections screen, (sorry I don't know the German translation; I really want to learn German)

When you follow these steps, where does it take you?

Start Menu --> Settings --> Connections --> Connections --> Advanced --> Select networks

What is displayed on the top box? Or was your screen shot that exact spot? If it is, then you have the correct setting and I am stumped:(. Here is a setp screen shot of the English version (simular for WM 6.1 as well)
[Windows Mobile Software Development] chancer63:
@stevieray:

Did you try WITHOUT the quotes ("")? It worked for me...

CU
[Windows Mobile Software Development] stevieray:
Yes - it was that spot :(

@chancer63:

maybe you gave me the 1st step to success :D

I defined another connection without spaces in name (ISP - what a name...) and now my debug traces go further.

Before testing I cancelled the existing G3-Connection, started the getweater script and saw traffic - the connection was set up.

But... after a while (guess how many seconds?) I got the same error!

Now I beleave that something is strange with my provider access to internet (german vodafone). I have to setup "wap.vodavone.de" for access point otherwise I will be charged even for the providers portal.

Normally I can access any URLs via different progs (googleMaps, opera...), maybe there is a difference getting data via mortsript?

I would like to setup a mini script to simulate any internet access with getting data back - can your help me how to configure this?

For the moment I'm getting as warm as my device - without looking at the yahoo's data: 27°C at 8PM ;)

Thank you anyway!
[Windows Mobile Software Development] jekyll60:
I have a little question...

if i only use s2u2.. and have no iphone today weather installed... Can I use it ? or comes the

funktion of this programm only with combination of s2u2 and iphone today weather ?

hope you understand my englisch :-)

And maybe you can tell me what happens when i installed it on a touchpro ( device ist vga i think.. ) ist that a problem ?

thanks
[Windows Mobile Software Development] moesfeld:
Maybe I will make a version for s2u2 only. But now Ithink it only works with s2u2 and iPhonetoday both installed.
[Windows Mobile Software Development] moesfeld:
There gets the dog in the pan crazy. I think I know where the rabbit lies buried. (Da wird ja der hund in der Pfanne verrückt. Ichglaub ich weiss wo der Hase begraben liegt.)

I guess you are using the vodafone WAP flatrate. With this you can use http(Port 80) and email(other ports don´t know right now).

But mortscript uses ReadFile for getting the weather-data which practically results in downloading the xml of the rss. Downloading IMHO uses a different port.

This is what vodafone writes about the wap-apn.

You could try downloading a file with the Internet Explorer (don´t use opera couse it might tunnel the download). If this doesn´t work we have spotted your problem.
[Windows Mobile Software Development] j101399j:
Hahaha. Don't speek German yet, but I love that statement:
[Windows Mobile Software Development] stevieray:
@j101399j: oh yeah! The germans are so crazy, we can get similar (funny) results in translating word-by-word - just doing it manually, even without using google-translator ;););)

@moesfeld: Thank you for that hint! I indeed did have a lot of fun with the vodafone internet access :(

I have an original HTC ROM and had to spent days (!) to re-establish vodafone access!

At the moment - and don't take it personal (again translated word-by-word...) - I think about the hours and hours to setup iPhoneToday with weather...

Why not going back to TF3D (with S2U2)?

I have sliding menu-bars.

I have weather information.

I just have to replace the program launcher (via 2nd Today?) to get the "iPhone-feeling"

And when I think about the (worldwide) efforts and loss of productivity in real business of all that people like you and me - just only to frickle on these gadgets :confused:

Oh what a wonderful world :rolleyes:
[Windows Mobile Software Development] moesfeld:
I think my swine pipes(Ich glaub mein Schwein pfeift)[could be verry dangerous thinking of the swine flu]{I call this the beauty of brain translator}

If you can tell me were tf3d stores the weather data (anyway why use tf3d or iphonetoday if you could use iphonetoday INtf3d [i think it was mentioned in the iphonetoday thread how to do it]

I can write a script that takes tf3d weather to Iphonetoday but I think there is no piont of having the weather in tf3d and in iphonetoday IN tf3d.

More interesing would be the option to have tf3d weather forecasts in s2u2 the way the script does now(if tf3d has forecasts for the next day).

Unfortunately I can´t run tf3d (properly) on my device so I would have to depend on your reports.

Anyway this scripting thing is just an excuse not to learn C++ or C# to create "real" applications. (That tunnel weather data over port 80 like spb weather does)[Well it´s a guess. Does this work on your device?]

If you want to frickle around a bit more to get "real" internet you could setup a vpn-server listening on port 80 and get a vpn-client for WM that connects to port 80. But that would violate vodafones "usage agreement".

But I guess you are saitsfied pretty much with what you have (where else could you get a "flatrate" for 5€)

I will try to contact mort and convince him to include http(port80) tunneled file downloads in his next release of mortscript.

That should solve the Problems you are having.

I guess I should not type when I´m drunk (To say it in the finest brain translator: picket sturdy (please figure that one out in german and report back. It took me some time to collect the words from dict.cc)
[Windows Mobile Software Development] stevieray:
I remember. Should try this.

...sorry, your wrong! I (have to) use a company contract of vodafone, and we have different rates:

30MB per months: 9,95€

300MB: 19,95€

flat: 29,95€

all rates on top of basic GSM cost, plus GSM traffic plus SMS...

That rate dosn't satisfy myself at all :(

...and this brings me thinking about the real reason "my problem"... I have an idea and will test something, then com back here.

Thanks so far!
[Windows Mobile Software Development] j101399j:
Bug?

So far I have top press the getweather to update the results. I let it set for 3 days, and it never changed until I pressed my getweather.mscr icon
[Windows Mobile Software Development] GreenSaints:
Hi,

I've spent ages trying to sort this out for my Touch Pro but I still have these issues: -

1. On S2U2, the wallpaper doesn't show even though I've checked the location

2. The slider bar has disappeared and the writing has moved with it to the left.

Any ideas? :confused:
[Windows Mobile Software Development] j101399j:
I hope this helps. But I travel a lot and have different locations. So I added an icon in iPhone Today that takes me to weather.yahoo.com so I can look up any city. Then I added an icon to pocket text editor with the parameters of the weather.ini location. Now I just look up the location code, press the weather edit icon, and now in a few simple steps, have a new weather location and updates.

Bug? I have tried for longer and the getweather.mscr will still not update automatically, do I need to change the hours and minutes?
[Windows Mobile Software Development] 12gage:
I made some Tenius weather icons from a tenius template and the standard s2u2 icons if anyone wants I figured I'd share, there VGA
[Windows Mobile Software Development] j101399j:
Nice icons, thank you

BTY I am still working on an english version that displays the S2U2 weather correctly. Spacing issues. Will post when available
[Windows Mobile Software Development] chancer63:
@12gage:

Nice looking icons, thank you.

CU
[Windows Mobile Software Development] j101399j:
As you may have noticed in the iPhoneToday forum, I killed my phone. So I updated the 3rd post with my walkthrough. Good luck everyone. Also I will not be going away on XDA, so if my walkthrough needs a fix, let me know, and I will be happy to change it.
[Windows Mobile Software Development] moesfeld:
Anyone else having problems downloading the weather lately?

Maybe the rss structure has changed
[Windows Mobile Software Development] chancer63:
No, just checked: It worked.

CU
[Windows Mobile Software Development] nuuuuts:
while browsing the iphonetoday thread, found your this thread. first off, excellent work!!!, the one that that is missing from iphonetoday is a weather type app.

I tried following the walkthrough but ran into some issues. I was first able to get it to work, it displayed the weather for the next 4 days. I was unable to get it the days to go back to the one icon. freaked out...and deleted the icons. Now I can't get the getweather.mscr file to work correctly.

I was able to get S2U2 to work where it displays the temp and the description in the slide area. Unable to get the background to update according to the weather.

j101399j sorry to hear about your phone, but by chance would you still have the pics of what the folder structure should look like? It shows that the link is broken for the pic.

I've also tried adding the different mscr files that are floating around in this thread but I'm still unable to get the icons to display the weather in iphonetoday.

thanks for your help.

---

I did now notice that its only qvga, but I did download and copy over the vga icons
[Windows Mobile Software Development] moesfeld:
I will relase a .cab Version with GUI setup for vga and qvga(Should be done by next week. I´m a bit busy right now and also have to finish the next version of s2pc[s2p control for iphonetoday] and NC [Nitrogen control for iphonetoday])
[Windows Mobile Software Development] j101399j:
I am getting another tilt, so I'll be up and running again soon. I recommend deleting the dummy icons (either by UI or editing the icons.xml); press and hold in the blank just past your last icon; the dummy icons are there just balnk; if there is one there, you will get the option to delete it. Keep pressing at that spot, deleting the icon and doing it again till the "delete icon" is no longer an option. There should be 4 dummy icons. Once you have done that, re-run the getweather.mscr. Remeber 1st it displays the active weather; when you press the active wetaher icon, it replaces that icon with the next 4 days. Press one of the 4 days icons and they will clear and rerun the getweather,mscr. You will not have both together.

As for the S2U2; double check the flies location, I did not notice at 1st that the slider icon location is in english and the background location is in german;

Mine said this:

s2u2path=\program files\s2u2\

wallpaperfolder=\programme\s2u2\gfx\wallpaper\

should say this:

s2u2path=\program files\s2u2\

wallpaperfolder=\ program files \s2u2\gfx\wallpaper\

you will need to edit the location in the weather.ini file before you 1st run getweather.mscr; it will edit s2u2 to show the background location correctly. If you look at the s2u2 settings, the background location should give you a clue, where it is looking.
[Windows Mobile Software Development] nuuuuts:
I did see the funky settings with S2U2 and made those changes, I was guessing that's what you meant when you said to double check the paths. I removed all the icons and they are all blank. I tried it again last night and it didn't work. Tried it today and it's working :). I'll probably not try to play with the 4 day forecast, thats where i ran into issues with it not going back to the one icon, it stayed at 4 icons (all different)

I'll try playing with the S2U2 settings, but I look forward to the new cab that moesfeld is creating. I probably screwed something up cause I tried all the different files thats available in this thread.....my fault....maybe I'll just start over too.

thanks again for your help
[Windows Mobile Software Development] MiToNiOeS:
I have development a option for reload icons (NOT reload the xml (its very slow), reload the icons with same path).

I have seen that your script rewrite all the xml... i thinks that this option is very... animal? ;).

I think that it is easier to change the icon, by example:

1º You have this icons:

In xml icons:

\iphonetoday\icons\icon.png -> You initial icon (by example sunny day)

In backup:

\iphonetoday\icons\iconSunny.png -> You imagine thats it is a sunny day

\iphonetoday\icons\iconNight.png -> You imagine thats it is a night day

2º Exec your script:

delete icon.png

copy iconNight.png to icon.png

update in registry HKLM\Software\iPhoneToday\reloadIcons -> 1

3º iPhoneToday will reload all icons (i repeat, the icons with same paths, not the xml)

Its possible??
[Windows Mobile Software Development] moesfeld:
Great Idea But:

That way I can´t change the icon text to the corresponding temperatures. Also the script replaces 4 regular icons with 4 forecast icons and on pressing those icons it reverts them back to normal.

I have one question about the "not" reloading the whole xml.

I don´t know much C++ but I guess you already have a function for refreshing the xml. I.e. when I add/remove an Icon iPhonetoday refreshes but stays on the same page and it looks pretty quick also.

Afaik it is possible to call dll functions from an outside exe if you make it public or friend(to enhance encapsulation).

But as I said I don´t know If the refreshing fuction is a single function or build into the add/delete functions.

For now I´m satisfied with the speed of the refreshing (With Refreshtoday[I wonder why the inbuild refresh of Mortscript doesn´t work])

The only thing that I don´t like is that after refreshing I´m on the first Page again.

So If Iphonetoday would preserve the current page on refresh all would be fine.

But I think I can use the reloadicon thing you made for a light Version of the script (Without temperatures).

Also I think this can be used for dynamic Icons for HDSPA on/off, Moonphase etc..(I will look into those once this one is finished)

About the animalic:D rewriting of the xml. Unfortunately mortscript doesen´t provide it´s own xml parser/writer so I had to write my own (Not a very elegant one but it seems to work without bashing the xml to much)

THX for the reply
[Windows Mobile Software Development] MiToNiOeS:
UPS, I did not know that even changing the text. I will have to reload the xml but it can to be a bit more slow
[Windows Mobile Software Development] chancer63:
Weatherwallpapers

I like this background for iPhoneToday (see 1st picture), so I wanted to have a wallpaper for S2U2 to show the weater and has the same style. ...and I created a package. Maybe there's some1 out there who likes it. It's VGA size.

CU

(If necessary, change *.zip to *.rar)
[Windows Mobile Software Development] BlockbusterF:
Hi together,

the script doesn't work for me. Figured out that it always stops at:

CallFunction("getValue", ccode, line, "code")

There seems to be something wrong when trying to parse the "code" var.

Everything else seems to be set up right. couse the "ccond" before gives me the correct value. In my case "Mostly Cloudy".

Anybody an idea? Tried a lot of thing, but nothing works.

fRED
[Windows Mobile Software Development] moesfeld:
Hi all,

unfortunately my phone got stolen:mad: (I just flashed a new rom and forgot to install remotetracker:mad::mad::mad:)

So I can´t continue:( until I get a new one.)

I will post the more advanced version in the first post soon. But it is not finished.

I will add some more comments to the code so someone can develop it.

The new Version features up to 4 citys forecast and the new iconreloading from Iphonetoday 1.0c (Those features are done) also a setup script (Not done)
[Windows Mobile Software Development] BlockbusterF:
OK, I found what was causing the problem. I've used the latest Version 4.3b2 of MortScript. With the Stable release 4.2 everything is fine.

4.3b2 seems to have a problem when calling the "getvalue" Function the second time.

Anyway, I'm happy now! :D

Because I use the iReflect Icons I created my own matching iReflect weather VGA icons (96x96).

You can use it if you want to.

Greetings, fRED
[Windows Mobile Software Development] Sir.John:
moesfeld: bad luck. Sorry to hear that :-(

I have an old Qtek 2o2o I could lend you until you can get (afford) a new phone, if that is any help. It is running wm2003 though. I so look forward to the light version, or - more respectively - "a lean iconswapping" script version to toggle BT, wifi etc. of yours ;-)

John
[Windows Mobile Software Development] moesfeld:
That´s nice of you but I still have my old n96 and will save for 2 month to buy an hd.

I will look into the wifi bluetooth and most important UMTS/DATA Icon (kind of like a nodata Icon)

The only thing I need are the reg keys (Wich most of I already found by searching the forums)

Right now I can only write from my laptop since I moving.
[Windows Mobile Software Development] chancer63:
Weather Icons

With the help of bluemetalaxe's ireflect- template I made some darkblue weather icons.

@moesfeld: I'm very interested in your updated weather- script. Maybe I can do beta- testing...

CU

(Change the *.zip to *.rar if necessary.)
[Windows Mobile Software Development] iain2510:
nowweather.mrsc

Thanks for a great weather add on to iPhonetoday! When I looked at the nowweather.mrsc script it references a folder named iPhonetoday/SP2U/refresh.mrsc which was not downloaded or installed - where can I get it from? Thanks in advance

Iain
[Windows Mobile Software Development] moesfeld:
This file is only used if you have s2pc installed. It is a mortscript for controlling s2p from iphonetoday (but the refresh.mscr is even not in the last version of s2pc because I couldn´t test the latest version because my phone got stolen)
[Windows Mobile Software Development] iain2510:
Many thanks for your reply (from your laptop). I just wanted to make sure I had nothing missing - hope you get your HD soon! :)
[Windows Mobile Software Development] Tc662:
Thanks alot for this! very nice :)

I just got 1 problem though, cant really get it to work in s2u2, its not showing any icons there, but in like the text is right,

Here is my weather.ini

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=\Programmabestanden\s2u2\

;this sets the path to s2u2

useweatherwallpaper=1

;set this to 0 to disable weather wallpaper

wallpaperfolder=\programmabestanden\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=2

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

Hope you can tell me what i did wrong, since i cant seem to figure out what gone wrong.
[Windows Mobile Software Development] chancer63:
1st Where is the first part of weather.ini:

2nd There is a space in

I don't think your folder 'wallp aper' has that space.

3rd Did you do the following:

s2u2settings --> information --> today's weather forecast from --> option5, user weather?

Hope, this helps.

CU
[Windows Mobile Software Development] Tc662:
Yeah, it helped thanks alot. works great :)
[Windows Mobile Software Development] chancer63:
Error: 'bad xml...'

The following is NOT IMPORTANT if you're not German.

Every now and then I get an error message from iPhoneToday telling me that I have a bad icon.xml. Maybe it's caused by German Umlauts. So I changed the translations in getweather.mscr: I changed 'bewölkt' to 'wolkig' or 'heiter'.

Now I hope there won't be another error...

CU
[Windows Mobile Software Development] Sir.John:
chancer: indeed I have that error msg quite regulary (without moesfelds weather being installed right now). Please let no whether the umlaut-thingy helped. If so, I can start narrowing the cause of my problems ;-)

Thanx heaps! John
[Windows Mobile Software Development] chancer63:
Today there was this bad- xml- error- message again! I had a look into icons.xml and icons.xml.bak. As you can see in the picture (left: working, right: error- message), the only difference was the absence of

execAlt="" parametersAlt="" type="0" animation="0"

in the weather icon tag. I wrote it in manually and, guess what, the error message was gone!

So I think it's not necessarely the Umlauts (I never had problems with "Startmenü"). It seems that sometimes iPT or the weather- script 'forgets' to write ev'rything complete. *wonder*

Maybe this can help you.

CU
[Windows Mobile Software Development] moesfeld:
I didn´t know the lines are required. I will look into this as soon as my house moving is done
[Windows Mobile Software Development] moesfeld:
It seems that the police found my phone while a regular control:)

There is some paperwork to do to get it back but since I´m still moving that period will soon be over.

So I will be updating this thread on a regular basis.

I hope the next version will be a blow but please be patient since there is a lot of work to do.
[Windows Mobile Software Development] chancer63:
Great news!

CU