Welcome, Guest. Please login or register.
February 09, 2010, 01:01:33 PM

Login with username, password and session length
Search:     Advanced search
Willst du dem Website Baker Team beitreten?
Nähere Informationen findest du hier und auf unserer Startseite .
106968 Posts in 15465 Topics by 9939 Members
Latest Member: areiis
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Weather Module
Pages: [1] Go Down Print
Author Topic: Weather Module  (Read 5229 times)
neamathla

Offline Offline

Posts: 1


« on: October 16, 2007, 05:56:03 PM »

Here is simple weather module.  It displays the current conditions for given location.  The weather data is drawn from weather.com's xml feed.  So you will need to get a partner id and member key from them.  Registration is required, but it is free.  The registration link is http://www.weather.com/services/xmloap.html.  The display layout is customizable.  The code is a little clunky, but maybe someone will find it useful.
Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #1 on: June 13, 2008, 11:21:30 AM »

Hi,
i implemented your module into my site and i found the needs a little update...

into MEMBER_KEY field needs to specify: YOUR_MEMBER_KEY&link=xoap&cc=*

and everything works again..


Best regards, 

Stefano
Logged

erpe

Offline Offline

Posts: 1714



WWW
« Reply #2 on: September 17, 2008, 02:33:07 PM »

Hi SharmPro

can you please post, where to modify?
I don't understand your post above.

Thanks

erpe
Logged

sharmpro

Offline Offline

Posts: 64



WWW
« Reply #3 on: September 17, 2008, 08:01:02 PM »

Hi,
in the backend Settings of the page..

Weather Codes
Partner ID:    ___________________ _
Member Key:    ___________________ _
Location ID:    ___________________ _
Display Layout:   ___________________ __
                   
                   

you can define your module.

Regards,
Stefano
Logged

erpe

Offline Offline

Posts: 1714



WWW
« Reply #4 on: September 17, 2008, 08:21:48 PM »

Hi Sharmpro

yes, I see.
But I cannot find a location ID in the subscribing mails.
I got only Partner ID and member key.
I tried it with the code of London from the readme file in the zip, but it failed.

Who can help?

rgds

erpe
Logged

Hans>NULL

Offline Offline

Posts: 1147


« Reply #5 on: September 18, 2008, 12:25:34 AM »

@erpe
Wie "sharmpro" schon sagte, aber hier noch einmal etwas klarer (hoffe ich)

Member Key: 123456789&link=xoap&cc=
bzw.
Member Key: 123456789&link=xoap&cc=*&dayf=5&unit=s
oder
Member Key: 123456789&link=xoap&cc=*&dayf=10&unit=s

eintragen, nicht nur den key solo

und im html z.b. auch zusätze:

<h2>[LOCATION_AREA]</h2>
<h3>[LONGITUDE] [LATITUDE]</h3>
<h3>[WIND_SPEED_KPH] [WIND_DIRECTION] </h3>
Last update: [LAST_UPDATE]<br /><br />
<table width="100%" cellpadding="0" cellspacing="0" class="box">

usw.

oder auch [ICON_LARGE] statt [ICON_MEDIUM]
« Last Edit: September 18, 2008, 02:05:29 AM by Hans>NULL » Logged

erpe

Offline Offline

Posts: 1714



WWW
« Reply #6 on: September 18, 2008, 11:15:42 AM »

Hi Hans

dann bin ich wohl zu doof.

Habe mit meiner Anmeldung in einer mail bekommen:

Your weather.com XML Partner ID & License Key:
Partner ID: 123456789
License Key: blab123bla456  (=Member-Key?)

und das war es. Keine Spur von Location ID
Dann habe ich die Location ID von London aus der readme Datei genommen und entsprechend eingesetzt.
Ergebnis: No Weatherdata available

Was mache ich denn falsch? Seh ich den Wald vor lauter Bäumen nicht?

Gruss

erpe

Logged

Hans>NULL

Offline Offline

Posts: 1147


« Reply #7 on: September 19, 2008, 01:48:03 AM »

 <Off-Topic>
Ich komm mal per PM
 </Off-Topic>
Logged

erpe

Offline Offline

Posts: 1714



WWW
« Reply #8 on: September 19, 2008, 08:19:10 AM »

@all
I found out, what was wrong:

Server must allow fopen.
Please see your phpinfo if fopen is on.
I tested it on another server and it is doing well,
(though registration at weather.com is a little bit annoying).

rgds

erpe
Logged

Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!