Welcome, Guest. Please login or register.
July 05, 2009, 04:48:15 AM

Login with username, password and session length
Search:     Advanced search
Hier findest du alle Infos zur  Website Baker - Version 2.8.
85293 Posts in 13125 Topics by 8214 Members
Latest Member: Nebz
* 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 4081 times)
neamathla
First-Time Baker
*
Offline Offline

Posts: 1


Email
« 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
Apprentice Baker
***
Offline Offline

Posts: 64



WWW Email
« 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
A Baker's Baker
*****
Offline Offline

Posts: 1067



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

If YOU want to help children in Guatemala, please visit:  von Brauck Foundation
Looking for modules?:  All Modules And Snippets Project (AMASP)
sharmpro
Apprentice Baker
***
Offline Offline

Posts: 64



WWW Email
« 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
A Baker's Baker
*****
Offline Offline

Posts: 1067



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

If YOU want to help children in Guatemala, please visit:  von Brauck Foundation
Looking for modules?:  All Modules And Snippets Project (AMASP)
Hans>NULL
Master Baker
*****
Offline Offline

Posts: 360


« 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
A Baker's Baker
*****
Offline Offline

Posts: 1067



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

If YOU want to help children in Guatemala, please visit:  von Brauck Foundation
Looking for modules?:  All Modules And Snippets Project (AMASP)
Hans>NULL
Master Baker
*****
Offline Offline

Posts: 360


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

 <Off-Topic>
Ich komm mal per PM
 </Off-Topic>
Logged
erpe
A Baker's Baker
*****
Offline Offline

Posts: 1067



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

If YOU want to help children in Guatemala, please visit:  von Brauck Foundation
Looking for modules?:  All Modules And Snippets Project (AMASP)
Pages: [1] Go Up Print 
Jump to:  

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