The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Jul 08, 2009 2:57 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 30, 2007 4:29 pm
Posts: 65
I'm currently using jWeather on a site and it recently broke. Unfortunately it's been removed from the extension directory, so I'll post the fix I found here.

The reason it broke for me was that weather.com xoap feed now needs a partner and license key passed in the URL for the XML feed. You'll need to sign up for a license key (it's free) and then modify line 148 in mod_jweather/helper.php to the following:
Code:
$wURL = "http://xoap.weather.com/weather/local/".$cityCode."?cc=*&dayf=".$this->_numDays."&link=xoap&prod=xoap&par=Partner  ID&key=License Key&unit=".$this->_measurementSystem;

jWeather seems to have been abandoned by it's developer for ages, as most of it's options don't even work, but it displays just the forecast I need and uses some really attractive icons.


Last edited by Fireflight on Tue Jul 14, 2009 7:01 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Jul 08, 2009 3:54 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Feb 02, 2006 3:08 am
Posts: 8
Thank you, very useful.

_________________
http://www.russiancarolina.net


Top
 Profile  
 
PostPosted: Wed Jul 08, 2009 5:40 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 28, 2008 8:42 pm
Posts: 7
Thanks.


Top
 Profile  
 
PostPosted: Wed Jul 08, 2009 8:10 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 21, 2009 6:32 am
Posts: 20
Fireflight wrote:
The reason it broke for me was that weather.com xoap feed now needs a partner and license key passed in the URL for the XML feed. You'll need to sign up for a license key (it's free) and then modify line 148 in mod_jweather/helper.php to the following:
Code:
$wURL = "http://xoap.weather.com/weather/local/".$cityCode."?cc=*&dayf=".$this->_numDays."&link=xoap&prod=xoap&par={Partner  ID}&key={License Key}&unit=".$this->_measurementSystem;


Following your fix, I just pasted the code, replaced {Partner ID} with {my id number} and {License Key} with {my license key number} and I still don't get a graphics and temps. Any clue what I might have done wrong?


Top
 Profile  
 
PostPosted: Wed Jul 08, 2009 8:39 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 28, 2008 8:42 pm
Posts: 7
By any chance, you didn't forgot to delete curly brackets?

this is wrong --> par={12343434}&
this is correct --> par=12343434&


Top
 Profile  
 
PostPosted: Wed Jul 08, 2009 9:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 21, 2009 6:32 am
Posts: 20
oh, I left those.... :-[
That fixed it!!!
Thanks!


Top
 Profile  
 
PostPosted: Wed Jul 08, 2009 10:47 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 12, 2009 7:17 pm
Posts: 6
Brilliant - thanks to you taking the time the post this I have been saved a lot of work.

Thanks - I owe you a drink.


Top
 Profile  
 
PostPosted: Fri Jul 10, 2009 6:16 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed Aug 09, 2006 2:35 pm
Posts: 426
Location: Sveg - Sweden
Thanks for the solution Fireflight!

Unfortunately I have a new problem with the number of days to show.
I used to show a 7 day weather forecast earlier but that seems impossible to do now?
It prints out day name for 7 days but weather forecast for a mximum of 5 days?

_________________
/ Morgan
Forweb http://www.forweb.se
Twitter http://twitter.com/morgangrip


Top
 Profile  
 
PostPosted: Fri Jul 10, 2009 7:36 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jul 01, 2009 6:46 am
Posts: 3
not worcking : (
par=123456&key=123456&unit="

123456-> my p.id & License Key


Top
 Profile  
 
PostPosted: Fri Jul 10, 2009 9:02 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 13, 2009 11:42 am
Posts: 44
JWeather was working fine and then suddenly stopped. I have re-registered, pasted the ID & licence code into my mod_jweather 'helper.php' but it still doesn't work.
Had a server crash a few days ago would this have anything to do with it?

Would really appreciate some help.


Top
 Profile  
 
PostPosted: Fri Jul 10, 2009 1:14 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 23, 2006 3:27 pm
Posts: 15
it worked like a charm.
thanks a lot!


Top
 Profile  
 
PostPosted: Fri Jul 10, 2009 2:03 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 31, 2006 1:12 am
Posts: 20
I'm STILL having no luck with JWeather! Tried all the code changes you mentioned... but its just not working! SOMEONE PLEASE come up with a Joomla 1.5 version of zWeather!!!! PLLLLLEEEEEAAAAASSEE!!!


Top
 Profile  
 
PostPosted: Fri Jul 10, 2009 2:23 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 23, 2006 3:27 pm
Posts: 15
BrotherPhil wrote:
I'm STILL having no luck with JWeather! Tried all the code changes you mentioned... but its just not working! SOMEONE PLEASE come up with a Joomla 1.5 version of zWeather!!!! PLLLLLEEEEEAAAAASSEE!!!


have you registed at weather.com and received your key and license?
if so, try to remove the module and reinstall it and them
make the changes at line 148.
Also check if the module configuration is ok. (I've attached mine for reference).
Note that: the lowest options, doesn't work.

@pmg
The feed just deliver 5 days. From registration e-mail:
Quote:
up to five (5) days of forecast information (the current day's forecast plus four additional days of forecast information in consecutive order


Best regards.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Fri Jul 10, 2009 11:59 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Feb 14, 2008 1:43 pm
Posts: 92
Location: UK
I noticed the JWeather module had stopped working.
A really nice looking piece of work - one of the simplest but best short forecast weather modules.

Just so it is 100% clear the code change is:

At line 148 of modules/mod_jweather/helper.php

Code:
$wURL = "http://xoap.weather.com/weather/local/".$cityCode."?cc=*&dayf=".$this->_numDays."&link=xoap&prod=xoap&par=PartnerID&key=License Key&unit=".$this->_measurementSystem;


There are NO curly braces in the code change

There is no need to uninstall and then reinstall.
It is easy to get the partner licence codes from http://www.weather.com
But you must have both codes for this to work now.

Once you have a code it will work for more than one site.

_________________
Sometimes the code works
http://www.askspain.org


Top
 Profile  
 
PostPosted: Sat Jul 11, 2009 7:50 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 13, 2009 11:42 am
Posts: 44
BrotherPhil wrote:
I'm STILL having no luck with JWeather! Tried all the code changes you mentioned... but its just not working! SOMEONE PLEASE come up with a Joomla 1.5 version of zWeather!!!! PLLLLLEEEEEAAAAASSEE!!!


;D Hey!
Source forge have brought out a new version of jWeather only yesterday. It still needs registration and a licence number but after turning round in circles trying to get the older version to work this one does.
You can download it here http://sourceforge.net/projects/joomlaweather/

The Partner ID and registration number (which you still have to get from the weather chanel) are now included in the backend of the module and not on the 'helper.php' page

It worked for me I hope it works for you... ;)


Top
 Profile  
 
PostPosted: Sun Jul 12, 2009 2:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 31, 2006 1:12 am
Posts: 20
gene_x wrote:
BrotherPhil wrote:
I'm STILL having no luck with JWeather! Tried all the code changes you mentioned... but its just not working! SOMEONE PLEASE come up with a Joomla 1.5 version of zWeather!!!! PLLLLLEEEEEAAAAASSEE!!!


have you registed at weather.com and received your key and license?
if so, try to remove the module and reinstall it and them
make the changes at line 148.
Also check if the module configuration is ok. (I've attached mine for reference).
Note that: the lowest options, doesn't work.

@pmg
The feed just deliver 5 days. From registration e-mail:
Quote:
up to five (5) days of forecast information (the current day's forecast plus four additional days of forecast information in consecutive order


Best regards.


Yes, I had already registered at weather.com... that's why it was working in the first place (before it broke down). The configurations was fine. I changed the code and uploaded it (again) and it STILL doesn't work.... I'm gonna try this new version and hopefully THAT will work.


Top
 Profile  
 
PostPosted: Sun Jul 12, 2009 3:55 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Feb 14, 2008 1:43 pm
Posts: 92
Location: UK
Quote:
Yes, I had already registered at weather.com... that's why it was working in the first place (before it broke down).


The whole issue stemmed from the fact that the module did not need you to register for key codes.
Then weather.com changed the rules and you did.

So you could not have been registered before (unless it was for another extension). And even if you were registered this was not why it was working.

The old module's php was hacked to enable the codes to be inserted so that it started working again.
The new module also needs the code but it has somewhere in the backend configuration to allow you to insert it.

My advice would be install the new module - if someone has taken it up again then there will no doubts be updates which there will never be with the old module.

_________________
Sometimes the code works
http://www.askspain.org


Top
 Profile  
 
PostPosted: Sun Jul 12, 2009 5:10 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 31, 2006 1:12 am
Posts: 20
six gun wrote:
I noticed the JWeather module had stopped working.
A really nice looking piece of work - one of the simplest but best short forecast weather modules.

Just so it is 100% clear the code change is:

At line 148 of modules/mod_jweather/helper.php

Code:
$wURL = "http://xoap.weather.com/weather/local/".$cityCode."?cc=*&dayf=".$this->_numDays."&link=xoap&prod=xoap&par=PartnerID&key=License Key&unit=".$this->_measurementSystem;


There are NO curly braces in the code change

There is no need to uninstall and then reinstall.
It is easy to get the partner licence codes from http://www.weather.com
But you must have both codes for this to work now.

Once you have a code it will work for more than one site.


I THINK my only problem now is that I've lost the citycode for Gadsden, AL :(


Top
 Profile  
 
PostPosted: Sun Jul 12, 2009 5:18 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Feb 14, 2008 1:43 pm
Posts: 92
Location: UK
USAL0222

_________________
Sometimes the code works
http://www.askspain.org


Top
 Profile  
 
PostPosted: Sun Jul 12, 2009 5:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 21, 2009 6:32 am
Posts: 20
anyone else having a problem with the zip file from surgeforce? Acts like a bad archive


Top
 Profile  
 
PostPosted: Mon Jul 13, 2009 12:05 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Jan 10, 2008 1:43 pm
Posts: 184
Thank you! I also discovered if you go to http://sourceforge.net/projects/joomlaweather/files/ you can download the most recent version of jweather, which now has a place in the module to enter your license code and partner code so you don't have to mess with the php.

I don't know why they have given up on this extension. It's perfect for us also. I'd love it if we could get the other features to work.


Top
 Profile  
 
PostPosted: Mon Jul 13, 2009 1:24 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 30, 2007 4:29 pm
Posts: 65
Wow. I'm glad I was able to help so many folks out. I thought I was pretty much the only person who used jweather


Top
 Profile  
 
PostPosted: Mon Jul 13, 2009 8:36 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed Aug 09, 2006 2:35 pm
Posts: 426
Location: Sveg - Sweden
gene_x wrote:
[quote="
@pmg
The feed just deliver 5 days. From registration e-mail:
Quote:
up to five (5) days of forecast information (the current day's forecast plus four additional days of forecast information in consecutive order


Best regards.


Ok thanks gene_x, i missed that information in the registration e-mail.

_________________
/ Morgan
Forweb http://www.forweb.se
Twitter http://twitter.com/morgangrip


Top
 Profile  
 
PostPosted: Mon Jul 13, 2009 11:17 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Dec 30, 2006 12:28 pm
Posts: 118
Location: Melbourne, Australia
Thanks everybody for the tips. Both versions (fix as well as new module) are working well for me.
Cheers,
Matthias


Top
 Profile  
 
PostPosted: Mon Jul 13, 2009 11:20 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Jan 10, 2008 1:43 pm
Posts: 184
Yes, I tried others, but they were much too complicated for my purpose. If anyone knows of a better weather module, I'd love to know!


Top
 Profile  
 
PostPosted: Mon Jul 13, 2009 11:57 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Feb 14, 2008 1:43 pm
Posts: 92
Location: UK
mod_rafweather combined with the e-weather component.
Apart for the key codes, all you need to do is get the city codes from weather.com - it is in the url of the city when the site is displaying the weather for that place
Then the config in the modules is code=city name,code=city name,......
This will give you the module - publish the component to a menu and when you click on the city in the module it opens the component page and you get a really excellent full page display.
This combo is far and away the best I have come across.
The jweather one is not as good but it makes a nice looking left or right mod position display and of course you can clone it and have different city weathers on different pages.

_________________
Sometimes the code works
http://www.askspain.org


Top
 Profile  
 
PostPosted: Mon Jul 13, 2009 12:05 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jul 01, 2009 6:46 am
Posts: 3
Hello!
I translate language file "en-GB.mod_jweather" for my language - georgian, no result found : module language again english

Please help


Top
 Profile  
 
PostPosted: Mon Jul 13, 2009 12:34 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Feb 14, 2008 1:43 pm
Posts: 92
Location: UK
Clear the Joomla cache - the module may be caching and so presenting the English version on the page. It will come right in the end.
Check the file name is exactly correct for Georgian and that there are no mistakes inside the ini file.
All these reasons have prevented modules switching over for me in the past

_________________
Sometimes the code works
http://www.askspain.org


Top
 Profile  
 
PostPosted: Wed Aug 05, 2009 4:47 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Jul 10, 2009 5:55 pm
Posts: 4
Thanks, i needed this fix! 8)


Top
 Profile  
 
PostPosted: Thu Jul 29, 2010 12:34 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jul 29, 2010 12:25 pm
Posts: 2
Hi
Here is a sight for finding city codes for europe.
http://www.edg3.co.uk/snippets/weather- ... es/norway/

Have a nice day :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group