yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] jellibean75:
YIPPPEE

I got it fixed!! I GOT IT!!!!!

Finally after 3-5 days of searching, typing, and pulling hear i finnaly got it...funny thing is i don't know what i did to get it to work. I copied scripts and update, i also put the background mortscript to change with weather condition. Added it and refreshed and BAM it was up. Was soo happy, 1st time user of the mortiscript it was all greek but I made it through, my inner nerd helped..lol.
[Windows Mobile Apps and Games] queer~dude:
hi there

Would you mind sharing your script to us? i did have problem of update....just wonder if you could share

thank you
[Windows Mobile Apps and Games] queer~dude:
hi there...

much appreciate with your help, but i have a bad news that your final script cannot work on my device.....i've got my own script...try to upload it...see if i did it right...

thanks
[Windows Mobile Apps and Games] VictorC666:
What exactly should be writen next to weather= to show [current temp | hi/low temp | current condition], using spb weather icons (if its possible)
[Windows Mobile Apps and Games] chino331:
The links to the icon sets don't work... I tried the larger icons that were posted in this thread, but I really don't like them much and I tried another that's 128x128 pixels but still too big... Can some one upload the icons please?

How did you get it to show the H for high and L for low? I used your script and now I have the current temp, the high and low but I don't have the H and L for those... :(
[Windows Mobile Apps and Games] chino331:
Weather icon not updating

My weather and the icon hasn't updated since I set this up - it's still showing the moon and the current temp of earlier... how to fix? this is what I have in my script:

# how often to try and get the weather

delayHours = 1
[Windows Mobile Apps and Games] Sylvia:
Moon phases

I would like to see the moon phases instead of the weather. I have asked this here:

Does anybody have an idea how to do?
[Windows Mobile Apps and Games] tadevinney:
update over wifi

any one able to help with updating over wifi? I have almost zero cell signal at home and use wifi most of the time. The weather script doesnt update over wifi and leaves me with a black background and no temp until cell signal comes up. thanks
[Windows Mobile Apps and Games] ToddeSwe:
PLEASE can you upload those icons you're using on this screendump?!

ToddeSwe
[Windows Mobile Apps and Games] ToddeSwe:
Hi!

I wonder if you could make my day and make this mortscript to work on another weather site for us Swedish users?

I use Spb Weather and that one is the only Weather app that i have found that can with a template get the weather from the Swedish site http://vader.passagen.se/index.cgi?search=Alvesta&submit=S%F6k%27

The template file for Spb Weather looks like this:

// Template Spb Weather 1.7.x for vader.passagen.se

// 10/04/2007 v. 1.1

// Copyright © 2006-2007 Domenico Gambone - Italy

// This template is available on http://www.webalice.it/redcats .or. http://www.pdagold.com

main

{

//debug_log;

// URLS

string strUrl = "http://vader.passagen.se/index.cgi?place=" + CityCode;

//UNITS

string tmprUnits = "C";

string windSpeedUnits = "mps";

// MAPS

map skyMap

{

key_value( "1", "2");

key_value( "2", "3");

key_value( "3", "4");

key_value( "4", "14");

key_value( "6", "16");

key_value( "8", "16");

key_value( "10", "5");

key_value( "11", "5");

key_value( "12", "8");

key_value( "14", "9");

key_value("16", "10");

};

map windMap

{

key_value( "1", "SE");

key_value( "2", "W");

key_value( "3", "NW");

key_value( "4", "N");

key_value( "5", "NE");

key_value( "6", "E");

key_value( "7", "SW");

key_value( "8", "S");

};

open_url( strUrl, "GET");

skip_to_text("PROGNOS FÖR", true);

string sky;

string tmpr;

string windSpeed;

string dayOfMonth;

string windDirection;

string strCnt="";

while (strCnt $ ".......")

{

skip_to_text("<tr>", false);

skip_to_text("<tr>", false);

skip_to_text("<b>", false);

skip_to_chars( "0-9" );

begin_var;

skip_chars( "0-9");

dayOfMonth = end_var;

skip_to_text("<tr>", false);

skip_to_text("<tr>", false);

skip_to_text("<tr>", false);

skip_to_text("size=", false);

skip_to_text(">", false);

begin_var;

skip_chars( "\\-" );

skip_chars("0-9");

tmpr = end_var;

skip_to_text("winddir_", false);

begin_var;

skip_chars("0-9");

windDirection= end_var;

if ( windDirection )

{

windDirection = windMap[windDirection];

if ( !windDirection )

windDirection = "0";

}

skip_to_text( "Verdana,Arial", false );

skip_to_text( ">", false );

begin_var;

skip_chars("0-9");

windSpeed = end_var;

skip_to_text( "symbols/weather_", false );

begin_var;

skip_chars("0-9");

sky = end_var;

if (sky)

{

sky = skyMap[sky];

if (!sky)

sky = "0";

}

if (sky)

add_day;

strCnt = strCnt + "."

}

}

Tell me what you think please!

ToddeSwe
[Windows Mobile Apps and Games] JiltedCitizen:
return(SubStr(argv[1], offset, endoff-offset))

else it errors out and nothing happens.
[Windows Mobile Apps and Games] Silbär:
Updating when an internetconnection is established

Searching around the internet I found this: Automatically Starting your Application on Windows Mobile

The interesting part is at the middle of the article: "Running the Program because of a System Change"

Compiling the source and starting the "WakeUp Example" it is possible to start an application (or MortScript) when an network is connected (NOTIFICATION_EVENT_NET_CONNECT ). So every time a GRPS-, WiFi- or ActiveSync-connection is established, the scipt is executed and the weather data is updated.

The attached MortScript is working for me using MS 4.1 (4.11b7 is not working) and S2U2 1.22

You have to start the WakeUpStart.exe on your PPC, check the Network Connected-checkbox (uncheck all others) and put the name of the script (notiweather.mscr) with full path in the textbox (e.g. \programme\MortWeather\notiweather.mscr). Hit the Accept-button and it should work.

Silbär
[Windows Mobile Apps and Games] bhodgins:
The MortScript solution to get weather on my new HTC Diamond works perfectly in conjunction with S2U2 VGA 1.22 except for one thing ... my weather icons seem to be missing every other line. Any ideas? Are there better weather icons to use for a VGA display? See attached picture!

Thanks,

Bill
[Windows Mobile Apps and Games] cramsey:
wallpaperL Radar Script?! (Mike H)

Will this work on any network area or is there more to jus copy/paste into my script to get it to work. ie: Do i need to add any jpegs to my gfx folder, or does it download them selfs. My area is 28540 jacksonville area of NC, USA!

Very interested! PLZ REPLY with more info Thx In adavnce
[Windows Mobile Apps and Games] mb286:
nice one, you can also use a TaskMgr (http://xdaforums.com/showthread.php?t=280104) to add a notification that launches the script with the event "Connected to a network"

Works great !
[Windows Mobile Apps and Games] holmanm:
You will need to replace

http://files.kfvs.com/weather/images/regradar.jpg

with a radar image from your area (this is the St. Louis, MO area).
[Windows Mobile Apps and Games] headphone_33:
Hello,

I am new here, and my english is not so good.

I run su2u 1.32 and MortScript-4.1 and the skript from jellibean75.

I found no option to show more, than the weather for one day. is it possible to show the weather for the whole week or the next three days. please give me a hint.

perhaps there is another tool for free, but i can't find it.

please help
[Windows Mobile Apps and Games] Batistian:
It works on the Omnia.

With the longer screen, using the large icon is perfect.:)
[Windows Mobile Apps and Games] ~Anvi~:
Thanks for the script it work great, I like it because put the right icon for day and night :)

This really work? :confused:

I really want to update the script with wi-fi because in home i dont have signal to connect via 3G & the weather icon desappear cause of that.

And if this work can someone tell me how to do it work?
[Windows Mobile Apps and Games] ~Anvi~:
Nevermind I made the script work via wi-fi & 3G :)
[Windows Mobile Apps and Games] directorfer:
Mort Script 4.11b7

Does any one have the script notiweather21 running on Mort Script version 4.11b7?
[Windows Mobile Apps and Games] sancho1234:
This is my location choicer script. Sorry, this is a hungarian regional version.

[SIZE=1]# Choice your location

LocationID[1] = "Berettyóújfalu"
LocationID[2] = "Budapest"
LocationID[3] = "Cegléd"
LocationID[4] = "Debrecen"
LocationID[5] = "Dunaújváros"
LocationID[6] = "Érd"
LocationID[7] = "Győr"
LocationID[8] = "Kecskemét"
LocationID[9] = "Nyíregyháza"
LocationID[10] = "Püspökladány"
LocationID[11] = "Székesfehérvár"
LocationID[12] = "Tatabánya"
LocationID[13] = "Újfehértó"
LocationID[14] = "Vác"
LocationID[15] = "Miskolc"
LocationID[16] = "Budapest/Lőrinc"
LocationID[17] = "Nagykanizsa"
LocationID[18] = "Pécs/Pogány"
LocationID[19] = "Szeged"
LocationID[20] = "Szécsény"
LocationID[21] = "Poroszló"
LocationID[22] = "Tiszanána"
LocationID[23] = "Kunszentmárton"
LocationID[24] = "Sárbogárd"
LocationID[25] = "Makó"
LocationID[26] = "Orosháza"
LocationID[27] = "Abaújszántó"
LocationID[28] = "Polgár"
LocationID[29] = "Egyek"
LocationID[30] = "Tiszafüred"
LocationID[31] = "Nagyléta"
LocationID[32] = "Tiszavasvári"
LocationID[33] = "Ófehértó"
LocationID[34] = "Szolnok"
LocationID[35] = "Keszthely"
LocationID[36] = "Csorna"
LocationID[37] = "Balatonboglár"
LocationID[38] = "Siófok"
LocationID[39] = "Tapolca"
LocationID[40] = "Kecel"
LocationID[41] = "Mezőcsat"
LocationID[42] = "Eger"
LocationID[43] = "Tompa"

location = IniRead("[B]weather.mscr[/B]", "", "location")
ChoiceDefault("Location ID", "Choice your location! Current code: "&location, [COLOR=Red]2[/COLOR], 0, LocationID)
# The '[COLOR=Red]2nd[/COLOR]' is my default setting.

case(0)
case(1)
location = "HUXX0001"
case(2)
location = "HUXX0002"
case(3)
location = "HUXX0003"
case(4)
location = "HUXX0004"
case(5)
location = "HUXX0005"
case(6)
location = "HUXX0006"
case(7)
location = "HUXX0007"
case(8)
location = "HUXX0008"
case(9)
location = "HUXX0009"
case(10)
location = "HUXX0010"
case(11)
location = "HUXX0011"
case(12)
location = "HUXX0012"
case(13)
location = "HUXX0013"
case(14)
location = "HUXX0014"
case(15)
location = "HUXX0015"
case(16)
location = "HUXX0016"
case(17)
location = "HUXX0017"
case(18)
location = "HUXX0018"
case(19)
location = "HUXX0019"
case(20)
location = "HUXX0020"
case(21)
location = "HUXX0021"
case(22)
location = "HUXX0022"
case(23)
location = "HUXX0023"
case(24)
location = "HUXX0024"
case(25)
location = "HUXX0025"
case(26)
location = "HUXX0026"
case(27)
location = "HUXX0027"
case(28)
location = "HUXX0028"
case(29)
location = "HUXX0029"
case(30)
location = "HUXX0030"
case(31)
location = "HUXX0031"
case(32)
location = "HUXX0032"
case(33)
location = "HUXX0033"
case(34)
location = "HUXX0034"
case(35)
location = "HUXX0035"
case(36)
location = "HUXX0036"
case(37)
location = "HUXX0037"
case(38)
location = "HUXX0038"
case(39)
location = "HUXX0039"
case(40)
location = "HUXX0040"
case(41)
location = "HUXX0041"
case(42)
location = "HUXX0042"
case(43)
location = "HUXX0043"

EndChoice

IniWrite("[B]weather.mscr[/B]", "", "location", """" & location & """")[/SIZE]

Replace codes to your location IDs and save this script to your weather.mscr's folder.
[Windows Mobile Apps and Games] sancho1234:
Your script is refresh every 5 minutes, I amended the 'delayHours' to a bigger value vainly.

I think, this is a better method for the 'RunAt':

GetTime(hour,min,sec,day,month,year)
NextTime = hour + 1
RemoveNotifications( "\Program Files\S2U2\weather.mscr" )
if (NextTime > 23)
RunOnPowerOn( "\Program Files\S2U2\weather.mscr" )
else
RunAt( year, month, day, NextTime, 0, "\Program Files\S2U2\weather.mscr" )
endif
[Windows Mobile Apps and Games] baudac:
I am using the s2u2 userweather, would there be a way to get rid of the high/low temp in all and just have a current temp??? For example,

65º/partly sunny.. :)

Thanks
[Windows Mobile Apps and Games] Batistian:
weather="W|"&temp&"/"&ccode&"
[Windows Mobile Apps and Games] mpayne:
keep current condition...

Hi,

first of all thx for the great app.

I am using user weather and everything works.

I achieve an update of the current condition every 1 hour.

If the connection failed and there is no current condition available fo ie 3 hours the icon an temp will go away (logical):

Now, Is it possible to change the script to change to N/A-icon ?

or to switch to forecast value ?

Just an idea, hope it is not too confusing.

Chris
[Windows Mobile Apps and Games] pur_berger:
Mod for Touch HD

As I love to have weather on my S2U2 Screen ... (I could look out of the window of course ... but ...) - I played a little with the script (thx to the developer - it's great!) and the WeatherIcons.

Attached fell free as I took it out from several sources and combined what I needed (hopefully nobody is pissed because of this - if yes - my deepest apologies ...)

Script: Is going to show now and next forecast, time when refreshed and error if no connection possible plus when the next attempt is going to be (I think it's buggy around 00:00 - but ... I'm no scripter at all)

Edit (08.04.09)

I have done some small mods in the script:

"nexsync" is now calculated with delayhours (so you only need to change one value)

The output iwas changed to

Temperature, Condition -> Next Condition, High/Low *Synctime (delayhours)*

weather="C|"&ccode&"| "&temp&"º, "&ccond&"->"&cond&", "&lotemp&"º/"&hitemp&"º *"&hour&":"&min&" ("&delayHours&"h*)"

http://www.megaupload.com/?d=X9LZ2IX7
[Windows Mobile Apps and Games] mpayne:
Thanks !!!

@ pur_berger:

your script is nice ! It shows me how to get the desired settings.

Thanks ! :rolleyes:

Chris
[Windows Mobile Apps and Games] dakiki:
Hi,

haven't you inverted the 2 variables in those lines?

And I've got an error, missing ')' in line

-> Missing ')' at the end of the line, and should be "Return" instead of "return"
[Windows Mobile Apps and Games] Batistian:
Is it possble to have a custome picture shows when the connection failed or there is no condition data available?
[Windows Mobile Apps and Games] dakiki:
From what I've seen in the script, it's already the case.

It's setting a special "no data" value to the registry, it's then up to S2U2 to handle this
[Windows Mobile Apps and Games] erichkooi:
Hi,

I tried all the method but I still cannot get it done.

Mine device is Omnia.

S2Us version is 1.45 and tried MortScript 4.1 / MortScript 4.2.

If possible to get me step by step on lay man term.

Thanks,

Eric
[Windows Mobile Apps and Games] pur_berger:
Hm - I have made this within my script and with the Icons I use

# we must be in a black hole

If (hour = 23)

nextsync = 00

else

nextsync = (hour+01)

endif

weather="C|50|keine Verbindung - nächster Versuch *"&nextsync&":"&min&"*"

where "50" defines the picturenumber used for "no Connection"

The files are in post #152
[Windows Mobile Apps and Games] Batistian:
Nope...doesn't work for me, still showing the black screen only.:(
[Windows Mobile Apps and Games] pur_berger:
Ahm - but you have weather data in your status line (Hi / Low) - so something is there.

Can you check the registry entry of user weather (first post showas you the path) what Icon it refers to (there should be a number). You need to have a pic in the gfx\weather folder with the same name - that's the one displayed.
[Windows Mobile Apps and Games] Batistian:
Yes, normally when there's a connection and the data was updated, I can get the weather info and the pictures.

With your script, I had turn off all data connection to try out, but it will not show the picture named 50.gif.

I had the script pointed to \my storage\my documents\weather\ and so all my .gif, including the 50.gif, are placed inside it.

During no data or no connection, the registry shows \my storage\my documents\weather\.gif. Just .gif without any name. :confused:

Funny. :(
[Windows Mobile Apps and Games] pur_berger:
Can you post your script?
[Windows Mobile Apps and Games] Batistian:
Sure. Here it is.:)
[Windows Mobile Apps and Games] pur_berger:
ah ...

try to ad this value:

else

# we must be in a black hole

weather="C|50|keine Verbindung - nächster Versuch *"&nextsync&":"&min&"*"

ccode = "50"

endif

What I can see you are reffering to This line for the Wallpaper:

if (curweather ne weather)

#for s2u2 UserWeather

weather="C|"&code&"| "&ccond&", Now "&temp&"º | Hi "&hitemp&"º / Lo "&lotemp&"º"

RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)

if (ccode ne curforecast)

wallpaper=wallpaperfolder&ccode&wallpapertype

RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", wallpaper)

endif

where wallpapertype is set to ".gif" at the top of the script.

Hope this works :)
[Windows Mobile Apps and Games] Batistian:
Yes. It works now. :D But it doesn't show when the next attempt is going to be.

Thank you very much for your valuable solution.

Thank you, thank you, thank you.
[Windows Mobile Apps and Games] pur_berger:
Gerne geschehen :)

Nice Pic for no Data ,)
[Windows Mobile Apps and Games] Batistian:
Ya...doesn't show next attempt. :( Don't know what happened. :confused:
[Windows Mobile Apps and Games] holmanm:
Here you go.

The weather variable was getting overwrote later in the script.
[Windows Mobile Apps and Games] pur_berger:
>>> Sorry Holmanm .... didn't see your Post - so Bastian - forgett mine ;)

code is a litlle more ... complex than the one I use - but I think the issue is here:

if (curweather ne weather)

#for s2u2 UserWeather

weather="C|"&code&"| "&ccond&", Now "&temp&"º | Hi "&hitemp&"º / Lo "&lotemp&"º"

RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)

if (ccode ne curforecast)

wallpaper=wallpaperfolder&ccode&wallpapertype

RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", wallpaper)

#I think there is no value to put in the Registry herer - maybe if you put in this line here too;

RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)

endif

if (slideforecast ne 0)

if (S2Utext ne oldS2Utext)

RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2Utext", S2Utext)

endif

endif

endif

But - I'm no scripter so maybe I'm missing something
[Windows Mobile Apps and Games] Batistian:
Thanks holmanm and pur_berger, Thank you very much.

It works now, but only showing the minutes. :p It's still better than just the plain black screen. :D
[Windows Mobile Apps and Games] pur_berger:
You are missing this part in your script:

# avoid registry writes if no change

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

weather = ""

If (hour = 23)

nextsync = 00

else

nextsync = (hour+01)

endif
[Windows Mobile Apps and Games] holmanm:
That's because the "next hour" is a variable called nextsync that isn't set earlier in the script.

Just add the line:

nextsync=hour + 1

before the line:

weather="C|50|keine Verbindung - nächster Versuch *"&nextsync&":"&min&"*"

Edit: pur_berger we are even now, good job.
[Windows Mobile Apps and Games] Batistian:
Thanks to pur_berger and holmanm.:)

It is working fully now.:D

You guys are great. WOW!:cool:
[Windows Mobile Apps and Games] Jaggl:
iam always getting this error when i use this script:

Invailt parameter count for 'Return'

Line 120.............

Return(SubStr(argv[1],offset, endoff-offset)

someone can help me?
[Windows Mobile Apps and Games] pur_berger:
What Mortscript version are you running?
[Windows Mobile Apps and Games] Jaggl:
i was using the latest now iam using 4.1 and it seams to work sometimes
[Windows Mobile Apps and Games] farqui:
Using Mortscript to get the current weather OTA for S2U2 is great but to keep the S2U2 and TF3D in alignment I'd like to use Mortscript to update the S2U2 registry with the current TF3D weather values. Thereby using the TF3D updates as the driver. Why? - cos I've had no luck setting S2U2 to use either HTC Home Weather, Manila 3D Weather on my Touch HD. I've done a little research but couldn't find anything conclusive as the registry entry's mentioned don't exist on my device.

Does anyone know the Registry entry's and values used by TF3D weather ?

TIA

*update: shoot I've just set S2U2 to "User Weather" and now it starts'n'locks (using v1.52) - just figured out that this occurs if the custom weather icon file doesn't exist or the registry entry is blank.
[Windows Mobile Apps and Games] dakiki:
That's because there is a missing ')' at the end of the line, like I reported it few a posts before (page 16 I guess).
[Windows Mobile Apps and Games] joeyboots13:
as you can tell by this being my first post in here im very new to all of this. but im wondering why i cant get the nightime icons to show up on my omnia
[Windows Mobile Apps and Games] afunix:
Toshiba Portege G900. Wm6

Does not connect to internet. Just silently exits.

Tried:

Connect("The Internet")

Connect("Internet")

There is no problems when wifi is enabled before running script. If not -- weather data is not updated
[Lenovo P2 Accessories] Kontex:
Bought some Screen foil with anti glare surface. First problem: White pictures become very colorful through the anti glare foil. Top phone in the picture is Lenovo p2 (OLED) with anti glare foil. Bottom is Lenovo Zuk Z1 (IPS) with anti glare foil. Never had this before with other phones and anti glare foil. Is it because of OLED or did I get a bad screen protect foil?

View attachment 4112313

Second problem: The foil doesn't fit because the screen is round and not flat at the edges . Any recommendations for ordering with correct size?

View attachment 4112312View attachment 4112314
[Lenovo P2 Accessories] myjess:
I used a glass protector I had for my doogee x5 max pro 5inch. good enough I think. Leaves a bit each vertical side but that actually makes it better cos i use the edge as the guide for vertical scrolling with my finger. But I do have leather case to keep phone protected also.
[Xperia Z2 Tablet Q&A, Help & Troubleshooting] SereneGrace:
I don't know if this is frowned upon but I don't know much about flashing custom roms but I wan't to anyway because my device get copious amounts of lag spikes while playing rhythm games. I have my bootloader unlocked and that's about it. I'm unsure how to downgrade is there any way to root on android 6.0.1? I've only ever done this kind of stuff on my old phone before but the instructions covered every little detail of the process and with a Sony device, flashtool is all new to me as well so I'm unsure how to use it. If anyone can point me to very detailed instructions on how to root and install custom recovery I would appreciate it. My device is a Sony Xperia z2 tablet SGP511 Wi-Fi build no. 23.5.A.1.291.
[Xperia Z5 Premium Q&A, Help & Troubleshooting] kingsasha:
Hello everyone,

I have the z5p dual E6833, running on latest android 7.0( 32.3.A.2.33)

Suddenly my phone freezes, then the screen shows white lines then it turns off and the led blinks red then it reboots.

This has happened before on previous software

Any idea why this happened and how to fix it
[Xperia Z5 Premium Q&A, Help & Troubleshooting] alaadin2003:
I had same issues with the same model and software eny one help
[Xperia Z5 Premium Q&A, Help & Troubleshooting] YasuHamed:
1. how did you upgrade to android 7.0( 32.3.A.2.33)

2. usually OTA upgrades end up having strange issues

3. i would recommend clean flashing of the device and test again.

4. what apps have you installed? is it rooted phone? may be some app is making device to over heat and it boots.

5. if some app is trying to access root privileges; sony RIC reboots the device
[Xperia Z5 Premium Q&A, Help & Troubleshooting] Geeks Empire:
when it happen?

during using a specific app or normally on home screen?
[Xperia Z5 Premium Q&A, Help & Troubleshooting] kingsasha:
Hello everyone,

I have the z5p dual E6833, running on latest android 7.0( 32.3.A.2.33)

Suddenly my phone freezes, then the screen shows white lines then it turns off and the led blinks red then it reboots.

This has happened before on previous software

Any idea why this happened and how to fix it?

I'm going to do a repair with xperia companion, maybe it helps

Thanks.
[Xperia Z5 Premium Q&A, Help & Troubleshooting] tommy1616:
used flashtool and full wipe to flash