Well done !!
but it should be better to change the line
$city_name = 'Canada';
to something like
$city_name = 'New Scotia';
Because if you don't do this, the module will work but it will be confused during package addition and deletion operations because city packages are searched by name in the package table.
It is not very important to include every city. If later we add some cities, all we have to do is produce a new updated package and increment the line
$city_version = 1.0; to something greater than 1.0
and the module will take care of the upgrade process !!
So for now we have 2 provinces done (Ontario and new Scotia) !! In less that a day, anybody else ??
The weathernetwork.com url given in a previous message is a great source to have all the cities in a province. Thanks, it helps me a lot !!
Envoyé: 11.02.2004, 17:07
rang:
Site Admin
enregistré depuis:
décembre 2003
Status:
hors ligne
dernière visite:
12.05.08
Messages:
257
Here is my first try for Quebec, please mail me if you see errors or missing cities
SOMETHING VERY IMPORTANT WITH POSTNUKE : be sure not to include any blanck line or any other character after the final ?> (This is not special to the weather module and is a very common mistake causing lots of unexpected results)
Envoyé: 11.02.2004, 21:56
rang:
Site Admin
enregistré depuis:
décembre 2003
Status:
hors ligne
dernière visite:
12.05.08
Messages:
257
Please can you make a little experience. Find a city that exhibit the problem, open another browser window and go to http://www.msnb...EA_Front.asp
look for the same city to see if the forecast displayed is the same
then go to http://www.weather.com
and query weather forecast for the same city to compare with the module's display.
If the 3 forecasts are the same, it's not a problem with the module but with weather.com (they get their data from different sources, for my city data are unavailable each day at the same hour for 3 ou 4 hours !!)
MSNBC get their data from weather.com so you should not observe any diffrence between them.
What would be rather annoying is if the module display something different from MSNBC and weather.com because it will mean that I made an error somewhere so if this is the case, please post me the details. Thanks
Envoyé: 14.02.2004, 16:12
Invité
rang:
1
enregistré depuis:
décembre 2003
Status:
hors ligne
dernière visite:
06.03.05
Messages:
0
Sorry folks for being absent for a while.
Just e-mailed the package for the candian provinces to the webmaster here.
The cities that don't work anymore, using the old ACID codes, are the ones that MSNBC dropped alltogether.
CAON0151
which seems to corespond with the format that HW3-weather uses
They both show the identical forecast and are only 1 1/2 hours old, while the one coming from MSNBC is 2 1/2 old
Envoyé: 14.02.2004, 16:33
Invité
rang:
1
enregistré depuis:
décembre 2003
Status:
hors ligne
dernière visite:
06.03.05
Messages:
0
The weathernetwork.com provides cites broken down by provinces and has the most cities/towns/villages of all of the sites.
I don't think they use the accid codes. Is there any way to modify this module to work with trheir system?
Great discussion .. thanks
agree with you there.
They seem to have a ton, or is it tonne ;) , of codes, even international ones.
rb
Envoyé: 14.02.2004, 18:07
enregistré depuis:
février 2004
Status:
hors ligne
dernière visite:
02.09.05
Messages:
10
It would be great to have an adaption of the weather module that could tap into this extensive list of Canadian cities and towns.
L
Envoyé: 16.02.2004, 11:07
Invité
rang:
1
enregistré depuis:
décembre 2003
Status:
hors ligne
dernière visite:
06.03.05
Messages:
0
Any idea on when Australian Cities will be available?
Envoyé: 16.02.2004, 11:14
enregistré depuis:
février 2004
Status:
hors ligne
dernière visite:
02.09.05
Messages:
10
It probably would be a good idea to start a new topic for Australia so that country-based discussions will be easy to follow. Hopefully interest in your city codes will be as keen as for Canada.