#1 2010-11-03 17:23:57

Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Widget Weather update

I had problem to show weather of city in the earth of France tongue

So, simply check the file : \themes\your_theme\widgets\weather\weather.php

Update this line :

$url = 'http://weather.yahooapis.com/forecastrss?p='.$id.'&u='.$unit;

By this line :

$url = 'http://weather.yahooapis.com/forecastrss?w='.$id.'&u='.$unit;

Now, just go to : http://weather.yahoo.com/badge/config/
Get the code, and copy the 'id'

Paste the id in your ion tag :

<ion:widget name="weather" id="613476" unit="c" />

With this id, you can show wheather of Moulins-sur-Allier (Auvergne, France) smile smile

Voilà. Now all cities can be shown in your website smile

Last edited by Kink (2010-11-03 17:25:58)

Webmaster / OUF!WEB


#2 2010-11-10 09:14:00

Ionize Core Team
From: Paris, France
Registered: 2010-03-22
Posts: 927

Re: Widget Weather update

Great !

Do you have the code for Vesoul ? wink

Inspiration & Innovation : Websites by Partikule, Agence Web Paris


What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.


Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations