Weather Channel through XML transformation II

Since Unisys took their weather XML feed down I had to find an alternative. So, I finally relented and started using the xml feed from weather.com. Again I didn't want to link directly to the feed at weather.com (since I'm not comfortable with how luminis caches anything), so I made a cronjob to go fetch the XML. The format of the XML file url is...

http://xoap.weather.com/weather/local/30117?cc=*&prod=xoap&par=1234567890&key=abcdefghijk123&unit=s&dayf=5

Supposedly you have to sign up to get a key and a partner ID (the key and par parameters), but it doesn't look like they test these parameters (the ones in the link above are junk). If you do sign up they give you a link to the weather SDK document that explains the URL parameters. The important ones are the zip, dayf (multi-day forecast) and the unit (change to m if you want metric).

Files:

Setup:

  1. Download the tar file and uncompress them somewhere in $CP_ROOT/webapps/luminis/
  2. Modify the SSL file to point to the Stylesheet
  3. Download and modify the getWeather
    script
    1. Change zip code
    2. Change where the xml file is saved
    3. Change the par and key parameters (if you decided to sign up)
  4. Create a cron job to run getWeather hourly (01 * * * * /home/cpadmin/util/getWeather)
  5. Login as an admin user and add the xml transform channel using the channel admin tool (remember to use local URL for XML file).
  6. Add the channel to your layout
  7. Enjoy the weather

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Missing images?

Never mind - I found the folder :)

Great Channel!!!!!!!!!

Great channel..

Thanks!

The links to the files do not seem to work?

Hi, the screen cap looks good, can I get a copy?

Thanks

Impressive:

Very impressive. We go live today, so I can't implement this just yet, but I look toward to seeing how it would like in our environment.

And as always, thanks for sharing.

Excellent work!

Robert E.

Access Deny

Hello Madisn,

I tried to download files but an error raised saying access deny.
please advice!!!

Regards,
Hassan

Permission Denied:

I got the same error.

 

 

Syndicate content