myWeather 2.0 beta released

myWeather 2.0 beta relesed
Sono riuscito a completare le modifiche alla plugin per wordpress,
quindi si passa dall’alpha alla beta. Eccovi una demo:

Sunny
New York
16°
Fair
Rome
29°
Mostly Cloudy
Tokyo
29°

Le features attive di questa versione sono:

  • Nuova grafica
  • Admin per la ricerca e salvataggio della città su weather
  • Nuovo parser xml
  • CSS esterno, cosi da personalizzare facilmente
  • Sistema di cache
  • Scelta fra gradi Celsius e Fahrenheit

Mi riservo la possibilità di non inserire il multi-city nella release finale per problemi logistici, ma confido di risolverli presto.

Per usarlo basta una volta installata e attivata, scegliere la città dal pannello admin che troverete nella sezione “options”, se volete cambiate le opzioni e poi inserire nel vostro template:

<?php wp_myweather();?>

Come per la vecchia versione, vi prego di farmi pervenire eventuali errori.

Scarica MyWeather 2.0b

Concludo che un paio di blog giapponesi hanno parlato della mia alpha release, ma essendo giapponesi non so se bene o male :)

Aggiornamento

Ho installato una plugin per poter eseguire il php nei post, quindi ho inserito un demo dell’oggetto.

trackback feed comments

2 commenti

Eric dice:

15 Giugno 2007 alle 12:06

Thanks for you plugin ! I adaptated it a bit in order to get more efficiency and above all to be able to put as many cities as I wanted :)

Here’s my adaptation : I used the simplexml_load_string() function for PHP5. It is an easy way to read data in a xml file to a xml object. Then I converted the attributes extracted from the xml object in string objects. Here is the code :

function weather($city,$t_type){
global $plugin_directory;
$fdata = “http://xoap.weather.com/weather/local/”.$city.”?cc=*&dayf=0″;
$file=file_get_contents($fdata);

$xml = simplexml_load_string($file);

$city = (string) $xml->loc->dnam;
$time = (string) $xml->loc->tm;
$icon = (string) $xml->cc->icon;
$weather = (string) $xml->cc->t;
$tmp = (string) $xml->cc->tmp;

(etc.)

As you can see, I didn’t use any XML Parser.

Thanks again !

Chris dice:

21 Settembre 2007 alle 18:15

Thanks for you plugin !

I’ve got a plan when I found this plugin.I want to use this plugin to change my headerimg of my blog when the weather was changed.
So I want to know,can I change the images of this plugin for my blog?
If you see this,please send me a email to tell me. spoppig5#gmail.com

Thanks!

lascia un commento

gravatar

Comment Form

* campi necessari

usa gravatar.com per
avere un avatar nei commenti.

search

about

about photo

Benvenuto sul blog e portfolio di Eduardo. Tutti i codici e i testi presenti sul sito sono rilasciati sotto licenza creative commons.

tag cloud

last scripts