yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] cyberde:
Manila2D WeatherCities Editor

donate

​

Hi all,

I've been searching for a tool to edit the weather database (xml) in Manila2D. Because I couldn't find any I decided to code one myself. Now it's finished I want to share it with the community :)

Note: this program is no longer maintained as I don't have a TytnII anymore...

Features:

Runs on your phone!

Allows you to add/edit and delete cities from the database

Allows you to search AccuWeather.com for the corresponing weather code (no more searching for the code in the website-url whatsoever)

Allows you to clear the database and only add the cities you want

Works with the latest Manila2D (v2.0 build 19191432)

Requirements:

.Net compact framework 2.0

Patched Manila2D to allow alternate cities (eg not2advanced)

QVGA compatible deviceWindows Mobile 5.x or higher

Screenshots:

History:

17-09-2009 Version 1.2.1 released

14-09-2009 Version 1.2 released

11-09-2009 Version 1.1.2 released

07-09-2009 Version 1.1.1 released

06-09-2009 Version 1.1 released

31-08-2009 Version 1.0 released

Changelog:

V1.2.1

Updated splash screen so the user knows what the program is doing ;)

Added read-only detection of the database file (xml-file), has the ability to remove the read-only attribute by itself.

V1.2

Enhanced graphics to match the Manila style, courtesy of S.V.I.

Detection of languages, so it uses the right XML file according to language settings

Appens the abbreviation of the state and country to the name, just like the cities that are already in the XML-file

Keyboard automatically shows when a textbox has gotten the focus

V1.1.2

Some parsing changes

Appends the state or province to the name instead to the country

V1.1.1

Fixed issue when selecting the keyboard on the search screen, the main screen gets focussed and hiding the search screen;

List is now alphabetically saved;

Fixed an exception which could occur when deleting an item.

V1.1

Added additional search code to improve searches (still depends on AccuWeather.com's search, but returns more results);

Changed "Save as New" to "Add to list" to make more sense;

Fixed the softkeyboard from hiding the input fields.

Q&A:

Awesome, can I donate?

Sure you can, just click here and donate away :)

Can I post a wish or suggestion?

You can post them in this thread and if I have time I’ll have a look at it.

I’ve found a bug, what do I do now?

Post them in this thread and instructions on how to reproduce that bug.

I’ve added a city but Manila complains it cannot retrieve weather data, what do I do now?

Most likely your Manila isn’t patched to an alternate weather url (see requirements). If it is patched then the code might be wrong or the server has a glitch.

I can't find the city I'm looking for, what to do?

This application only searches and parses the AccuWeather.com site (international search). So it could happen that for instance 'New York' doesn't return the New York in the US. Instead search for 'New York, US'.

Download:

Click here to download or click the cab-file attached to this post.

Cheers,

CYBERDE
[Windows Mobile Apps and Games] cyberde:
Reserved ...
[Windows Mobile Apps and Games] stylez:
Awesome gonna give try, should make things easier for people not able to edit .xml ;)

Thankyou :)
[Windows Mobile Apps and Games] denco7:
Nice idea, really helpful.

Only the Input field does not scroll up when the onscreen keyboard pops up, so you can't see what or where you are inputting. You have to close the keyboard, check to see what you have typed or deleted and then popthe keyboard back to continue.

Also seems like I can only put in one custom city and then no others.

EDIT : ok , figured it out. After putting in new city info, you have to go to edit soft key and hit " save as new " and then press the menu soft key and hit " save changes " soft reset and new city will appear in list.
[Windows Mobile Apps and Games] greywolf1965:
Location

Looks like a very promising and needed software.

I installed to my main memory, but now I cannot locate it in Start>Programs...I actually went to File Directory and found the files there and started it from there. Am I missing something?

I am currently testing the program, will report back later....

Thank you.

UPDATE: I found the shortcut in Start>Programs.
[Windows Mobile Apps and Games] busychristian:
I have compact framework 3.5...is that ok to use or 2.0? thanks
[Windows Mobile Apps and Games] S.V.I:
AWESOME!

So I patched Manila 2D from mega. have not yet patched it for 6.1.

as soon as I get a chance to upload it I will post a link.

can't wait to try it :)
[Windows Mobile Apps and Games] busychristian:
cannot find local zip

check on accu website, it's there, did a search cannot find...is just not in the data base? any help..thanks
[Windows Mobile Apps and Games] S.V.I:
same thing here. finding cities that actually exist (even though most people have never heard of them.

Try Mars or Moon PA (US) we have some funny places in Pennsylvania :)

edit: cant find any US cities. even New York!
[Windows Mobile Apps and Games] busychristian:
ya, I know, same here in NC....maybe needs some more "tweaken"...still a good app though:cool:
[Windows Mobile Apps and Games] S.V.I:
Spaming:

Patched Manila from mega. 6.5 only. I don't know what to edit to get it to work on 6.1:o

http://xdaforums.com/showpost.php?p=4449522&postcount=751

If you know what you are doing, you can patch it to work for 6.1 and non HTC devices. (please let me know)
[Windows Mobile Apps and Games] cyberde:
Yes it is :) .NET should be backwards compatible.

That's an issue of the accu weather site (international search). For example if you search "New York, US" it will find New York in the US.

For example: http://www.accuweather.com/world-city-list.asp?partner=accuweather&locCode=new%20york and http://www.accuweather.com/world-city-list.asp?partner=accuweather&locCode=new york, US.

I will add a combobox that allows you to choose between local search (US) and international search.

If tried patching it, but it's packed with UPX and for some reason UPX doesn't like unpacking Manila2D.exe (mbarvian version)

Yes, it also explains this in the help :)
[Windows Mobile Apps and Games] topsign:
Cool

I also need to change other forecast resource instead of accuweather which seems way too much discrepancy

can someone gimme a clue
[Windows Mobile Apps and Games] cyberde:
I think you can patch the weather url to another server (maybe your own?), host a script on that server which returns exactly the same XML format as AccuWeather but with other data.

See http://weather.not2advanced.com/files/ for a script for parsing AccuWeather.com.
[Windows Mobile Apps and Games] denco7:
The help only says to hit edit / save as new. That is what confused me. This did not work for me.

I also had to hit menu / save changes right after, to get any changes to stick, is this right ?
[Windows Mobile Apps and Games] cyberde:
Yea that's correct. I'll change that 'Save as New' menuitem to add as new :) I ment to do that yesterday but I forgot...:rolleyes:
[Windows Mobile Apps and Games] S.V.I:
the exe's I posted are patched or weather, but not patched for 6.1. in other words, I need to patch the weather patched exe again for 6.1 I will try to contact Mbavarian to patch the already weather patched exe .
[Windows Mobile Apps and Games] busychristian:
hi...any patch for 6.1...or other ideal how to get locals?
[Windows Mobile Apps and Games] cyberde:
New version available, updated the first thread.
[Windows Mobile Apps and Games] S.V.I:
cant download

Link is not working
[Windows Mobile Apps and Games] busychristian:
HI, still cannot get any locals....even near by "big cities"...any ideas? thanks
[Windows Mobile Apps and Games] S.V.I:
I found locals "Newark, US" and it gives you a list of cities and states at the bottom.

Found my city, got it to work (thanks for the HELP context menu :) )

Bug number one (Major)

while searching, selecting or de-selecting the on screen keyboard, the search page disappears: just as I load the search page, I go for the keyboard, and as soon as it comes up it shows me the previous screen (edit the city already in the database). So, I select the keyboard and then do the search; it finds all of the cities, but the list of cities gets blocked by the keyboard and I can not scroll. Deselecting the keyboard makes the searched list page disappear again.

Bug Number two (minor)

When I get my city saved in the XML, it is all the way on the bottom. this makes searching for it with the keyboard impossible. Is there a way to insert it to the xml in alphabetical order??

Thank You! I will deffinately push this program on the weather wallpaper page:)
[Windows Mobile Apps and Games] cyberde:
Fixed the link, it just points to the attachment in the first post :)

Yes that finally works, it was an issue with the AccuWeather.com search-results-page.

btw, i've been to newark about three weeks ago :)

Ok, I can reproduce it. I'll fix that tonight when I get home!

I think I can sort the dataset before saving it. Will have a look when I get home.

I'll fix both bugs tonight :)

Sweet :)
[Windows Mobile Apps and Games] busychristian:
ok..found my locals, but now when I have "no weather data availabe" or "unable to retrieve data for selected city" (both cities) what other stupid thing have I done wrong this time...thanks for your help:D
[Windows Mobile Apps and Games] cyberde:
You probably don't have a weather patched Manila (see first post). Normally Manila uses htc.accuweather.com but this server only returns data for those cities already available. In order to retrieve data for other cities (your locals) you need another server (http://weather.not2advanced.com/ for example) that returns all data queried. The Not2Advanced website explains how to patch Manila. Use Manila2D.exe instead of htchome.dll, the instructions are the same :)
[Windows Mobile Apps and Games] busychristian:
Thanks for helping, I tried to patch it using Manila2D.exe, 'its asking for the correct dll.....??:confused:
[Windows Mobile Apps and Games] S.V.I:
links to the patched exe's are on the weather wallpaper thread (post 1)
[Windows Mobile Apps and Games] cyberde:
I've posted a new version which fixes the addressed issues :)
[Windows Mobile Apps and Games] stylez:
Thankyou will test and update post :)
[Windows Mobile Apps and Games] S.V.I:
tried the latest one

all of the issues have been fixed. I dont even have to restart manila. alphabetised my xml completely (apparently I dont know my ABC's lol )

there is just one tiny thing that will make it perfect. when adding a city, like newark de, I do not see the state next to it. I just see Newark, US ( right next to it is Newark, NJ, United States)

minor issue, but hell, if you have gone this far to make this function so damn well...

I will be coking this in to my personal rom asap! this is super!

thank you so much!
[Windows Mobile Apps and Games] cyberde:
I'll have a look at it tomorrow (when I've got time), I've just seen that Newark US has the country like United States (New Jersey). So I can change the code to something that moves "New Jersey" from Country to Name.

cool :D
[Windows Mobile Apps and Games] cyberde:
I've updated the first post and uploaded a new version which should do exactly what you want :)
[Windows Mobile Apps and Games] S.V.I:
added attachment

Here they are. I sent the password to your pm inbox.

There are still some inconsistencies. I attached a text file wit state names and Abbreviations.

I think that you might just be able to insert them right from the code that it spits out once it finds the city

<city name="Washington, DC, US" loca="NAM|US|DC|WASHINGTON" land="United States"/>
[Windows Mobile Apps and Games] 6gex:
What i m doing wrong

Hi !

I have found my city, I have added it to the list and saved it.

I restart my phonne the I go in the weather tab of manilla try to add this nex city but I cant find it in the list.

It seems that the manila city list and the Weathercities editor list are 2 diferent list.

If somebody have an idea ?

Thanks
[Windows Mobile Apps and Games] cyberde:
Do you have a file named HH_0409_WeatherCities.xml in \Windows? If not, what HH_XXXX_WeatherCities.xml do you have?
[Windows Mobile Apps and Games] 6gex:
8 have 2 files, one 409 and one 40c.xml. it could be the problem
[Windows Mobile Apps and Games] cyberde:
That could very well be the problem, what language is your ROM? And which one is the biggest?

Also did you go to Menu->Save changes?
[Windows Mobile Apps and Games] 6gex:
If I make the changes manualy, I need to modify the "40c.xml"

I use a rom in french I have found it here http://xdaforums.com/showthread.php?t=459826.

This rom is available in different languages
[Windows Mobile Apps and Games] cyberde:
Okay thanks, I'll add language detection so it will pick the right XML file.
[Windows Mobile Apps and Games] 6gex:
great !

thanks
[Windows Mobile Apps and Games] cyberde:
6gex, could you run the attached file on your mobile please? It will show a messagebox with information. Could you post that information so I can finish the language detection?
[Windows Mobile Apps and Games] cyberde:
I've changed my code to do exactly that. See attached screenshots (don't mind the WM5, it's just a vm for testing ;) ).
[Windows Mobile Apps and Games] 6gex:
here are the results :

curentculture : 040c

curentuiculture : 040c

invariantculture : 007f

HH_040C_WeatherCities.xml exists
[Windows Mobile Apps and Games] cyberde:
Thanks, I've finished the language detection code. I'll post a new version once the new graphics are done :)
[Windows Mobile Apps and Games] 6gex:
Good, I will try it :)
[Windows Mobile Apps and Games] S.V.I:
graphics are done

in your inbox :)
[Windows Mobile Apps and Games] cyberde:
New version released, v1.2
[Windows Mobile Apps and Games] rmoore3d:
Just tried V 1.2. I search and find my city. Edit - Add to List, Ok. Menu - Save Changes, Error - UnathorizedAccessException. Anyone know why?
[Windows Mobile Apps and Games] 6gex:
It is now working fine on my touch cruise.

I also like the new graphics.

Thanks:)
[Windows Mobile Apps and Games] cyberde:
Maybe the XML-file is read only. Have a look with TotalCommander if the ReadOnly checkbox is checked.

Good to know that the language detection is working :)
[Windows Mobile Apps and Games] MyRho:
same here...

Manila 2D 2.x

after editing...: UnathorizedAccessException

The xml isn't set to read-only... :(
[Windows Mobile Apps and Games] cyberde:
Hmm, that's weird. I can't reproduce it, so I've got no idea what goes wrong. Although it seems that the app doesn't get permission to write the HH_XXXX_WeahterCities.xml file.

What language are you using, what rom are you using (WM6, WM6.1 or WM6.5)?
[Windows Mobile Apps and Games] 6gex:
Good to know that the language detection is working :)[/QUOTE]

I have also tried it on an omnia and it is also working.
[Windows Mobile Apps and Games] rmoore3d:
In my case it was set to read only . Working great now. Thanks
[Windows Mobile Apps and Games] cyberde:
Okay sweet, I'll add some error handling for that to notify the user that it could be that the file is marked as read only. Thanks for reporting :)
[Windows Mobile Apps and Games] MyRho:
...it's WMobile 6.1 (3Lit3 VIII) and TF2D V 2 19171723.

It's strange that I can find TWO different ...wheatherCities.xmls...

One is HH_0407... and the other one is HH_0409... xml
[Windows Mobile Apps and Games] cyberde:
It has to do with the language you're using on your phone

0409 = english

0407 = german

Make sure the one you're using doesn't have the property ReadOnly. I guess it's the 0407 you're using?
[Windows Mobile Apps and Games] S.V.I:
I think I should change the splash to "loading xml..." instead of just "loading..."

also, I did not have to restart manila after editing. :)
[Windows Mobile Apps and Games] cyberde:
Yeah, that would be better. Can you send me the psd's aswell? :)

Apparently Manila doesn't update when the edited and the original list don't differ in count. There must be a difference in order to get Manila to update the list.

I will edit the saved-confirmation dialog.
[Windows Mobile Apps and Games] cyberde:
Okay, I've added some extra error handling and a ReadOnly detection. Now when the file is set to read-only the editor will ask you permission to change it. If you give permission the editor will edit the file's properties and save the changes you've made to the file.

I'll release this new version when S.V.I. has updated or has send me the new splash-screen :)
[Windows Mobile Apps and Games] burtinsaw:
weather server change?

Hi accuweather dont have all of Turkish cities like mine. i want to change accuweather to msn or sbp's server can i do it? if yes how? have a any idea? Thnx
[Windows Mobile Apps and Games] cyberde:
I've talked about this earlier in this thread, here's what I wrote back then:

In other words, no unless you run your own parsing script and patch that url into Manila2D.exe.

Also I don't provide that service.
[Windows Mobile Apps and Games] cyberde:
Yet another new version has been released, now includes the ability to change the read-only attribute if needed.
[Windows Mobile Apps and Games] ToddeSwe:
Thanks for this!!!!

Hi and THANKS for this!!!

Works fine on my Polaris and Update 23
[Windows Mobile Apps and Games] morgan39:
Good job

Cyberde, thanks a lot for very useful program and for your amiability sharing it.

My city was not in the list but now I can see the most precise weather forecasts for my city.

Thank you very much and good luck
[Windows Mobile Apps and Games] cyberde:
Thanks :) You've gotto do something back to the comunity right :rolleyes:
[Windows Mobile Apps and Games] rabidrat:
Error On trying to open program

Hi I wanted to use your program for my touch pro 2 running windows mobile 6.5 as the weather program doesnt recognise my Town which is Abingdon UK. it does howerver recognise Oxford wich is 8 miles away but the weather can be totally different from Abingdon. when I try to run the program I Get an windows error "\WINDOWS\HH_409_WeatherCities.xml does not exist! I installed .net framework 3.5 which gave the error so i uninstalled 3.5 & installed .net framework 2 but still got the same error. I assume the program isnt windows mobile 6.5 compatible or I am doing something wrong. I would greatly appreciate your help.
[Windows Mobile Apps and Games] cyberde:
Then you aren't using Manila 2.0.x but TouchFlo3D, judging by the fact you have a Touch Pro2.

This program only works for TouchFlo2D (Manila2D). There is a weather database editor available for TouchFlo3D somewhere.
[Windows Mobile Apps and Games] rabidrat:
Many thanks for the information Sorry for the erroneous post. I will try and find it.
[Windows Mobile Apps and Games] cyberde:
No worries :)

This might be it, but I'm not sure: http://xdaforums.com/showthread.php?t=546141
[Windows Mobile Apps and Games] rabidrat:
Thanks very much for your help. I have found the info I was looking for now. thanks again for the link
[Windows Mobile Apps and Games] g400g400:
nice program u have there, i made a mistake, i tab the 'clear list' and all my cities are all delete, how do i get back the orignal cities back...:mad:

very tedious to add one one back....
[Windows Mobile Apps and Games] cyberde:
If you don't save the list after clearing, it will not save the changes you made.

So if you clear the list by mistake and just exit the program you'll be fine :) Otherwise you should get a copy of the weather database from someone else.
[Windows Mobile Apps and Games] g400g400:
what's the file name and which directory is it located in the device? anyone can sent me a copy...plzzzzzz. thks

one suggestion... please include the n2a patch in your program so that as we add new cities it can get updated as well... ps. i still cant get the n2a patch to work to update new cities....
[Windows Mobile Apps and Games] cyberde:
It's not something I can include with my program because the different Manila2D.exe's.

The file is HH_XXXX_WeatherCities.xml where XXXX is your localized language code.
[Windows Mobile Apps and Games] g400g400:
ok.. thanks for the info, i manage to get a copy of the original files from the others....thanks
[Windows Mobile Apps and Games] yunzhongxue:
thanks for your shared
[Windows Mobile Apps and Games] buksa.jan:
I don´t understand what to do :(

I´m really confused. I want to use this for HTC touch2 with touchflo 2.0.1919.1432 but I don´t understand what I really have to do?

I use HTC Touch diamod with cooked rom. Could anybody write short manual? thanx
[Windows Mobile Apps and Games] mirost1:
Hi all, thanx for this great program. I have one problem - i have HTC Touch2 (aka Mega). I install the program, run it, put my town name in Search, it finds my town in internet, i add the town, save changes and when i go to the Weather tab it says unable to retreive data for selected city, please help me???

PLEASE
[Windows Mobile Apps and Games] cyberde:
Hi,

As stated in the first post:

So you'll need a patched manila2d otherwise the HTC server won't return data hence the "Unable to retreive data" error :)
[Windows Mobile Apps and Games] mirost1:
You mean i must download it and install it on my phone so i can update for my town? And i am not so much into patches, what does manila2d.exe exactly do?
[Windows Mobile Apps and Games] cyberde:
Yes. Or you need to patch Manila2D.exe by yourself. Instructions are available on the not2advanced website.

Manila2D.exe is Manila (weather + those tabs and so on). Manila2D.exe has a hardcode url pointing to htc.accuweather.com thus allowing your mobile to retreive weather data. But since that url only allows the cities provided by HTC you need to patch it to another URL (service hosted by the not2advanced website) which allows the retreival of all weather data available by accuweather.com :)
[Windows Mobile Apps and Games] mirost1:
I put it on my phone, touch it so i can install it and it just blinks for a second, goes to home screen and nothing - tried to update and same thing - unable to retrieve :(
[Windows Mobile Apps and Games] cyberde:
How did you put it on the phone? Did you follow these instructions for patching the executable?

http://weather.not2advanced.com/files/
[Windows Mobile Apps and Games] Thosch2602:
Hello,

I´m from Germany and have trouble to patch my manila2D.exe from HTC Touch 2.

It don´t work.

Can anybody help me patching the file?

Perhaps someone can patch it for me, that it works with my HTC Touch 2.

Here is my original Manila2d.exe.

Many Thanks.
[Windows Mobile Apps and Games] mirost1:
You mean we must do our own Manila2d.exe patched?
[Windows Mobile Apps and Games] cyberde:
Yes :) .
[Windows Mobile Apps and Games] Thosch2602:
What do you mean?

I thought someone who knows what he do can download my Manila2d, patch it and upload it again!

That where great for me :)

@mirost1, you got also a Touch 2!

You got your Manile2d.exe pathced?

Pls upload it here...
[Windows Mobile Apps and Games] mirost1:
Nope mate, i dont have it patched, my problem is i am not into this and dont know how to do it, and i really miss to see my towns weather...:(
[Windows Mobile Apps and Games] Thosch2602:
same problem here...

I Tried it many times und downloaded many manila2d´s, but everytime it was noct for my Touch2 and the Grafik was not OK.

Pls can someone patch my original Manila2d from my Touch2 I uploaded above.

I have tried to patch myself.

I have changed the Update URL like described and sign the patched Manila2D.exe.

I copied the new one to my mobile and started it.

but now Manile 2d.exe crashed.....
[Windows Mobile Apps and Games] pedrera:
I've unable to find xml data..... on my touch2

any help?
[Windows Mobile Apps and Games] cyberde:
Yes, the Touch2 doesn't use an XML file as far as I know. Check if you have a HH_XXXX_WeatherCities.xml (replace XXXX with your langcode eg 0409) file in in \Windows.
[Windows Mobile Apps and Games] pedrera:
I've a HH_040C_WeatherCities.xml in windows.

the editor look for a HH_0409_WeatherCities.xml

should I change the name?

However, that's didn't explain the fact that I'm unable to add my city even it's on the list.:confused:
[Windows Mobile Apps and Games] pedrera:
Any help would be appreciated