myWeather 2 released (v2.4.5)

Attenzione: version 2.4.5 with multy-city (bugfix)
myWeather 2.0 finalmente rilasciato.
La versione è pressoché quella della beta, tranne piccole correzioni.
Eccovi una demo:
New York
22°
Rome
31°
Tokyo
26°
Le features attive sono:
- Nuova grafica
- Admin per la ricerca e salvataggio della città su weather
- Multi Città
- Nuovo parser xml
- CSS esterno, cosi da personalizzare facilmente
- Sistema di cache
- Sistema di template
- Widger ready (tnx to eti)
- Scelta fra gradi Celsius e Fahrenheit
Buon download.
Leggi: Come creare un template
Scarica myWeather 2.4.3
release notes
2.4.5
fix file_get_contents (auto switch from CURL on file_get_contents). Thanks to Ryan
2.4.3
fix per template
2.4.1
corretto bug sul sistema di cache
2.4
multy-city
nuovo sistema di cache
grafica adatta alla versione 2.5 di wordpress
gestione plugin spostata da Impostazione a Plugin
bug fix
2.3.4
corretto errore in attivazione per permessi file
2.3.3
corretto errore in installazione (su php 4)
2.3.2
corretto errore in installazione (credo, visto che a me andava anche prima)
2.3.1
xml parser for PHP4
2.3
new xml parser (simplexml)
template manager
working with php5
2.2
bug fix for xml parser
2.1
bug fix for wordpress 2.3
127 commenti
iKite Theme ?? - Xu.hel’s Blog dice:
12 Settembre 2007 alle 06:23
[...] Gravatar?Trackping Separator ?myWeather ??????????????????????????? [...]
website »
Herramientas de acceso a la información meteorológica dice:
16 Settembre 2007 alle 18:44
[...] si nosotros gestionamos nuestro propio servidor con WordPress, podemos optar por plugins como Get Weather o [...]
website »
Tecnologia » Blog Archiv » Herramientas de acceso a la información meteorológica dice:
16 Settembre 2007 alle 18:52
[...] si nosotros gestionamos nuestro propio servidor con WordPress, podemos optar por plugins como Get Weather o [...]
website »
Herramientas para la información meteorológica « Cosas sencillas dice:
17 Settembre 2007 alle 10:12
[...] si nosotros gestionamos nuestro propio servidor con WordPress, podemos optar por plugins como Get Weather o [...]
website »
WordPress Plugins Database » Plugin Details » myWeather dice:
17 Settembre 2007 alle 15:00
[...] Visit [...]
website »
M.S. dice:
24 Settembre 2007 alle 16:30
Hello,
I wanted to thank you for this little but extremely useful plugin.
It was pretty easy to modify it to feet my blog’s layout and for that I’m grateful, but I’d like to have a larger set of weather statuses represented, and I wonder where can I get more information about the classes used in the configuration file (where you grouped them to use the same icon).
Your help would be appreciated.
website »
Eduardo dice:
24 Settembre 2007 alle 19:56
hi MS,
your theme for myWeather is very beautiful.
myWeather return varius parameters:
$locale - Language
$ut - Temperature Scale
$ud - distance scale
$us - velocity/time scale
$up - pressure scale
$city - city name
$time - time
$lat - latitude
$lon - longitude
$suns - sunset
$sunr - sunrice
$zone - zone
$lsup - date
$obst - observatory
$tmp - temperature
$weather - forecast
$icon - forecast icon
$bar_r - pressure
$bar_d - pressure type
$wind_s - wind speed
$wind_gust - wind gust
$wind_t - wind direction (N,S,E,W)
$hmid - humidity (%)
$vis - visibility (distance)
$uv_i - uv ray
$uv_t - ray type
$dewp - Punto di rugiada (in temp)
$moon_icon - moon icon numbers
$moon_t - moon type
use in output string.
Sorry of my English
website »
iKite Theme ?? - Xu.hel’s Blog dice:
28 Settembre 2007 alle 09:55
[...] WordPress 2.3 ??? tag ? Widgets ??????myWeather ?????myWeather [...]
website »
Dave dice:
4 Dicembre 2007 alle 06:36
Hi — I am interested in using your myWeather WordPress plug-in, however it doesn’t seem compatible with WordPress 2.3. Do you plan to release a new version in the near future?
Thanks.
The Developer Inside » Blog Archive » myWeather 2.1 dice:
5 Dicembre 2007 alle 20:51
[...] Leggi myWeather 2.1 [...]
website »
Guido dice:
6 Dicembre 2007 alle 10:24
Ciao, mi fa piacere incontrare sul web un designer napoletano; ma le tue informazioni sono scarse.
Anche io sono di Napoli e da poco per diletto ho realizzato un sito con wordpress; se vuoi vistalo e dammi un commento. Ora sono alla ricerca di miglioramenti e ho trovato il tuo plugin per il tempo; a dire il vero, già ho provato altri plugin per il tempo, ma sarei maggiormente interessato ad un plugin che invece del tempo attuale mi mostri le previsioni (non ti sembra più interessante?).
Comunque, mi sembra molto bello il lavoro fatto per la gallery; io da parte mia sto cercando di realizzare la gallery con l’integrazione con Gallery2 e WPG2, penso sia una ottima soluzione.
Per quanto riguarda le hosting solutions; ho da vari anni un dominio proprietario su Playnet (www.megadimaonline.it), che non mi ha mai dato problemi di sicurezza. Attualmente, però non è aggiornato con l’utilizzo di WP, perchè sto utilizzando Altervista per testare i miei lavori.
Ciao.
website »
Eduardo dice:
6 Dicembre 2007 alle 11:14
Caro Guido,
Il sistema myWeather “tecnicamente” ha già al suo interno le previsioni per 5 giorni (oltre le quali weather.com richiede una registrazione)
Pultroppo il parser xml attuale è decisamente complicato per gli elementi oltre il giorno attuale. Passando al parser del PHP5 i problemi sparirebbero, ma anche la compatibilità della plug-in.
Comunque nella nuova versione cercherò di inserire questa opzione.
Per l’host ti ringrazio, ma ho già deciso per bluehost, appena la carta di credito me lo permette.
website »
myWeather widget | Erata.NET dice:
6 Dicembre 2007 alle 13:59
[...] MyWeather plugin’s homepage. [...]
website »
eti dice:
6 Dicembre 2007 alle 14:01
Ho aggiunto al tuo plugin le funzioni per poterlo utilizare come widget.
Detagli con codice php qua (in inglese):
http://www.erata.net/weblog/programming/2007/12/06/myweather-widget/
Forse nella prosima versione lo poi aggiungere al plugin.
website »
Eduardo dice:
6 Dicembre 2007 alle 14:18
Stupendo, non ci avevo proprio pensato.
Se sei daccordo lo inserisco nella prossima versione, naturalmente citandoti fra gli autori (fammi sapere se hai un account su wordpress.com cosi verrai direttamente linkato il tuo profilo)
website »
eti dice:
6 Dicembre 2007 alle 14:36
Certo che sono daccordo a inserire le funzioni nella prossima vertione.
Il mio username su wordpress.com e alpinism, pero se vuoi puoi linkare a questo blog - http://www.erata.net
website »
Harold dice:
25 Dicembre 2007 alle 16:56
What is the code to the sidebar ?
Thx
website »
Eduardo dice:
27 Dicembre 2007 alle 21:45
the code is:
< ?php wp_myweather();?>
website »
flashmotus dice:
4 Gennaio 2008 alle 23:29
che piacere conoscere un blogger web developer napoletano, concittadino e collega, sono interessatissimo al tuo myWeather 2.0 che scarico ed installo subito. A proposito spero possa interessarti l’appuntamento del prossimo 26 gennaio a napoli dove stiamo organizzando il primo Napoli Pizza Beta mi permetto di postare il link http://napolipizzabeta.pbwiki.com/FrontPage
a presto
website »
Kurt dice:
28 Gennaio 2008 alle 12:04
Hello,
I really like the simplicity of this plugin. When I activate Fahrenheit, the temperature is not displayed. Instead, it displays the following:
1/28/08 4:45 PM EST°
I only need to display the temperature. Is there any way I can fix this? I am running WP 2.3.2.
Thanks.
Eduardo dice:
28 Gennaio 2008 alle 12:19
Hello,
You have installed the latest version? If yes, check the template if there is the variable $tmp. 1/28/08 4:45 PM EST ° is the $time.
website »
Kurt dice:
28 Gennaio 2008 alle 15:15
Eduardo,
Thanks for the response. I downloaded and installed the latest version of your plugin (V2.1). Where do I look for this variable? In the myweather.php file? Which line? Or should it be in the code which I insert into my sidebar?
Eduardo dice:
28 Gennaio 2008 alle 15:42
myweather.php
#line 234
Tell me also that you entered City.
website »
Kurt dice:
28 Gennaio 2008 alle 19:58
Eduardo,
Here is my line 234 from the php file:
$weather=’‘.$city.’‘.$tmp.’‘;
It looks like the TMP is correct. The city I am displaying is Abiquiu, New Mexico, USA.
When I change over to Celsius, everything works fine.
I saw that someone on the Wordpress forums was having the same problem with Fahrenheit temperatures.
Eduardo dice:
28 Gennaio 2008 alle 20:43
Sorry, it seems, is a error on xml parser.
As soon as possible i fixed then.
website »
Kurt dice:
28 Gennaio 2008 alle 20:47
Thanks Eduardo. Looking forward to the update.
Kurt
Dave dice:
30 Gennaio 2008 alle 19:03
Every few days, I’ve noticed that the current temperature will not display on the myWeather button. Instead, the date and time are displayed in extra-large type that extends far outside the button. For example, at this moment, the button displays “1/30/08″ in a font that covers the entire length and width of the button, and “11:25 AM EST°” is displayed outside the button. Based on what I’ve seen in past, this problem will correct itself at some point, but it may be an hour or two later. Do you know what causes this problem to occur, and how to prevent it? Thanks.
Eduardo dice:
30 Gennaio 2008 alle 19:29
Read starting with this comment.
website »
Dave dice:
30 Gennaio 2008 alle 21:05
Thanks, Eduardo. Sorry to have missed the earlier posts….there was a translation problem.
Mauikek dice:
31 Gennaio 2008 alle 17:52
Per prima cosa complimenti per my weather.
Chiedo scusa se non sono molto afferrato..non riesco a far funzionare il programma.
Ho installato la plugin e l’ho attivata.
Poi da opzioni ho scelto la mia città Padova,tutto ok.
Sono andato in widgets e in un widget semplice di testo ho incollato
Non vedo in homepage la barra meteo.
Dove sbaglio?Cosa vuol dire: Place this code in your template:
”
in che senso template?
Scusami per la domanda masono nuovo nel mondo wordpress
Grazie in anticipo per l’eventuale risposta.
website »
Eduardo dice:
31 Gennaio 2008 alle 18:07
Haaa, finalmente un italiano.
Allora, sono 2 cose diverse. Prima cosa non c’e il supporto widget (ci sarà nella prossima versione, attualmente in sviluppo, ma puoi effettuare questa modifica per inserirla tu: widget support).
Comunque devi semplicemente inserire < ?php wp_myweather();?> (senza spazio fra < e ?) nel tuo template (nella sidebar in generale). Puoi farlo direttamente online da "Aspetto->editor temi”
website »
Mauikek dice:
31 Gennaio 2008 alle 18:18
Grazie di cuore per avermi risposto.
O mamma mia..era come temevo…
non prendermi in giro ma non saprei proprio da dove iniziare!!
Ci so andare in editor temi, ma poi?
Quella stringa esattamente dove devo incollarla?
Appena apro editor temi sulla destra ho una serie di opzioni tipo foglio di stile, stile ccs,archivi,testata ecc…quli di quelli devo scegliere?
Non so nulla di editor temi?
Mi puoi aiutare?
Ho cercato anche la tua mail nel tuo blog ma non l’ho trovata.
Volevo mandarti il contenuto del mio tema per farmi indicare dove mettere la stringa.
Scusami ancora il disturbo
Mauikek
website »
Mauikek dice:
31 Gennaio 2008 alle 18:52
Aiuto!!!
Vorrei tanto myweather nel mio sito!!!
website »
Eduardo dice:
31 Gennaio 2008 alle 18:53
hee, un momento. Devi scegliere sidebar, e poi piazzala dove vuoi e clicca su aggiorna. Se non conosci l’html ci posso fare poco.
website »
mauikek dice:
31 Gennaio 2008 alle 19:02
Scusami
website »
Mauikek dice:
31 Gennaio 2008 alle 19:18
Chiedo scusa se non conosco l’html.
Ho selezionato barra laterale (Ho wordpress in italiano quindi credo sia quella sidebar)
Ho messo il codice ma a quanto pare non lo salva.Sotto infatti mi dice che se il file fosse scrivibile potrei modificarlo.
allora via ftp mi sono preso il file sidebar.php e l’ho aperto con wordpad e ho messo la stringa,l’ho salvato.
Niente da fare.
Pazienza starò senza il meteo.
Scusa il disturbo.
website »
Eduardo dice:
31 Gennaio 2008 alle 19:23
Non volevo certo colpevolizzarti per non conoscere l’html, ma certo non posso dirti come fare via commenti. Non so nemmeno che tipo di tema hai. Comunque se hai messo il codice nella pagina ed hai caricato online basta attivare il plug-in, dovrebbe funzionare perfettamente. Mi raccomando il codice senza lo spazio fra < e ?.
website »
Mauikek dice:
31 Gennaio 2008 alle 19:30
Posso chiederti un favore?
Posso mandarti il file sidebar.php via mail?
così lo modifichi tu.
Sempre se non è un disturbo.
website »
Eduardo dice:
31 Gennaio 2008 alle 21:56
usa http://phpfi.com/ e poi inviami il link della pagina.
website »
myWeather 2.3 released | The Developer Inside dice:
2 Febbraio 2008 alle 21:54
[...] Aggiunto anche il supporto per i widget della sidebar, aggiugendo eti come sviluppatore, essendo venuta a lui l’idea [...]
website »
myWeather: come creare un template | The Developer Inside dice:
6 Febbraio 2008 alle 21:02
[...] Ecco a voi la guida per creare un template per myWeather: [...]
website »
Kurt dice:
11 Febbraio 2008 alle 17:21
Eduardo,
When I add the new 2.3 version to my sidebar I get the following error:
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/ddigger1/public_html/wp-content/plugins/myweather/myweather.php on line 81
I was having the Fahrenheit display problem in 2.1 and thought this version would solve that, but now it is breaking my sidebar completely. Any idea what to do?
Kurt
Eduardo dice:
11 Febbraio 2008 alle 17:34
myWeather 2.3 working with PHP 5.
Do you have PHP 5? If not, you aren’t going to be able to use simpleXML.
website »
Kurt dice:
11 Febbraio 2008 alle 17:50
Eduardo,
Sorry, I just saw that 2.3 is only good with PHP5. I need to brush up on my Italian! I need 2.2 to solve the xml parser problem. When I download 2.2 from the WP Plugins site I get a bad zip header and no installation folder. Any help?
Eduardo dice:
11 Febbraio 2008 alle 17:56
Sorry,the 2.2 has never been released. I am working on a corrected version for PHP 4.
website »
eti dice:
12 Febbraio 2008 alle 11:09
E vero che SimpleXMLElement e l’unica cosa per quale il plugin funziona solo con php5 ? Non uso piu php da qualche anno ma immagino che un parser xml deve essistere che funziona con tutte le versioni di php. Forse essiste una versione di SimpleXMLElement per php4. Ancora ci sono alcuni di noi che non possono cambiare php da 4 a 5 sul webserver. Spero che trovi una soluzione per fare il plugin funzionare su php4.
Buon lavoro
website »
Eduardo dice:
12 Febbraio 2008 alle 11:16
SimleXML è l’unico motivo per cui funziona su php5, ed esiste una versione da includere per il 4. Ma cambiano delle cose ed non è propriamente leggero. Sto valudando altri parser xml, ma per il 4 sono tutti complicati pare.
Al più presto vedrò di rilasciare la nuova versione retrocompatibile.
website »
myWeather 2.3.1 released senza svn ufficiale | The Developer Inside dice:
12 Febbraio 2008 alle 21:50
[...] Leggi myWeather 2.3.1 [...]
website »
Kahil dice:
22 Febbraio 2008 alle 23:02
I have tried and tried to get this plugin to work. I get the same error every time…
“Plugin could not be activated because it triggered a fatal error.”
tmadg dice:
1 Marzo 2008 alle 19:48
Could not active plugin, i get an error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/tmdag/public_html/blog/wp-content/plugins/myweather/myweather.php on line 104
website »
myWeather 2.3.2 released (v2.3.2) | The Developer Inside dice:
1 Marzo 2008 alle 23:19
[...] Leggi myWeather 2.3.2 [...]
website »
Eduardo dice:
1 Marzo 2008 alle 23:20
try with 2.3.1
website »
tmdag dice:
1 Marzo 2008 alle 23:44
2.3.2 didn’t help with my error :/
website »
Eduardo dice:
1 Marzo 2008 alle 23:57
sorry, but not see this error. Can you be more specific?
website »
tmdag dice:
2 Marzo 2008 alle 00:16
i don’t know how to be more specyfic … I’ve downloaded plugin “myweather.2.3.2.zip”, copied unzipped folder into the wp-content/plugins. And when trying to activate i get error:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/tmdag/public_html/blog/wp-content/plugins/myweather/myweather.php on line 105
(myweather 2.3.2 and 2.3.3 wordpress)
website »
Eduardo dice:
2 Marzo 2008 alle 01:00
new update, try more.
website »
tmdag dice:
2 Marzo 2008 alle 09:01
plugin activated
it’s ok now
website »
eti dice:
4 Marzo 2008 alle 19:30
Ciao Eduardo,
You may be interested in this update
http://www.erata.net/weblog/programming/2007/12/06/myweather-widget/#update
With this only admin users can change the settings of the plugin.
website »
Eduardo dice:
4 Marzo 2008 alle 20:34
Ho già aggiornato i file. Al prossimo update conterrà anche questa modifica.
Come al solito grazie.
website »
Max Hoffmann dice:
5 Marzo 2008 alle 01:45
Thanks for the great plugin. It looks totally cool. Is there a simple way to run two plugins to display the weather of two different places?
Vladimir dice:
30 Marzo 2008 alle 19:12
I have problem with this plugin…
I got this message when I click “Update config” in admin panel:
Please help, Vladimir
website »
Finalmente Wordpress 2.5 | The Developer Inside dice:
30 Marzo 2008 alle 20:24
[...] effettuato un piccolo bug fix su myWeather, quindi per voi ora c’e la 2.3.4 da scaricare. myWeather dovrebbe essere compatibile al 100% [...]
website »
hela dice:
6 Aprile 2008 alle 08:57
Hi,
your installation side for myWeather on Wordpress.org is incomplete:
1. dl link missing
4. where to place code missing
5. admin usage missing
Thanks
hela
Eduardo dice:
6 Aprile 2008 alle 10:59
hi hela,
download link in a orange button on plugin page.
I rewrote a readme.txt for the wordpress.org page.
website »
Dogan dice:
12 Aprile 2008 alle 04:55
Hi there,
I love the plugin you made, widget works fine, it’s actually awesome.
But i got a little problem, i need to show 2 or more cities on sidebar.
I’m using w.p 2.5 and i only could add the widget one time.. So you got a solution to let it show 2 or more cities ?
website »
Dogan dice:
12 Aprile 2008 alle 04:57
And forgot to ask, i also need to change the width of the widget, how am i gonna do that ?
website »
Dogan dice:
12 Aprile 2008 alle 11:30
just to let you know, i resized the widget, but i still need to add more cities to sidebar.
any help ?
website »
Eduardo dice:
12 Aprile 2008 alle 13:29
Sorry, this version support one city. For more cities you try a old version
1 (on wordpress plugin directory -> myweather -> Other Versions),but i can’t support it. In next version i try to reinsert a more cities support.
sorry for my bad english.
website »
Do?an Özdemir dice:
13 Aprile 2008 alle 09:45
Thanks ! I will try it out.
website »
Dogan dice:
13 Aprile 2008 alle 09:47
oh and again forgot to ask, which version are you talking about ?
website »
Eduardo dice:
13 Aprile 2008 alle 10:36
version 1.0
website »
Dogan dice:
13 Aprile 2008 alle 11:55
Hmm.. 1.0 release is yr first release i guess.. it’s not really good. Whatever i guess, i’ll wait till you the next one released, or try to make it self.
So, thanks, take care!
website »
Jazia dice:
21 Aprile 2008 alle 13:25
quando provo a cercare una città mi da questo errore:
Fatal error: Call to a member function getAllChildren() on a non-object in /misc/15/359/013/341/user/web/blogfirenze.org/wp-content/plugins/myweather/admin.myweather.php on line 133
website »
Eduardo dice:
21 Aprile 2008 alle 14:30
Grazie Jazia per il report dell’errore, ma mi serve sapere anche che versione hai del php installato sul server e che città hai cercato.
website »
Jazia dice:
21 Aprile 2008 alle 15:00
grazie dell’aiuto!
il mio server monta php 5.2.4 e ho provato a cercare firenze
website »
Eduardo dice:
21 Aprile 2008 alle 15:06
E’ il mio lavoro (si fa per dire
). Comunque penso sia dovuto al fatto che essendo la lista inglese non esiste Firenze, ma Florence. Prova così è fammi sapere. Cercherò al piu presto di correggere questo errore.
website »
Jazia dice:
21 Aprile 2008 alle 15:20
niente da fare… mi da lo stesso errore!
grazie ancora dell’aiuto!
website »
piscione75 dice:
22 Aprile 2008 alle 17:44
Complimenti ottimo davvero. Installato e funzionante sia su WP 2.3 che WP 2.5.
Volevo provare la versione 1 per la funzione multi city..
PS: il colore è sempre e solo blu..!? anche se in stile web 2.0 è davvero carina.
ciao
Eduardo dice:
22 Aprile 2008 alle 17:59
Ciao. Per il multi-città devo lavorarci, dalla 1 alla 2 c’è di mezzo un database è non e la cosa più semplice del mondo.
Per il colore la versione attuale supporta i temi. Puoi crearne uno tu (il tutorial è qui).
website »
myWeather 2.4 released, con il multi-città | The Developer Inside dice:
23 Aprile 2008 alle 00:11
[...] Leggi myWeather 2.4 [...]
website »
Anastasios dice:
28 Aprile 2008 alle 23:16
Ciao Eduardo,
Mi piace il tuo plugin ma non funziona al mio siti. Non so perche o se facio qualche sbaglio. Al plugin–> my weather c’e solo un linea di testo e scrive select city. Sotto questo c’e un link (search city) che non funziona. Please help e scusa per mio italiano (Sono Greco)
website »
Eduardo dice:
29 Aprile 2008 alle 09:42
Ciao Anastasios,
Quando lo installi la prima volta c’e sempre solo la riga “Search city” con il campo di testo “insert city name” e il pulsante (submit) “search city”. non è un link. L’ho testato su FF, Safari, IE6 e IE7 è funzionavano perfettamente. Testato anche su wordpress 2.3 e 2.5 dove funzionano perfettamente.
Puoi darmi maggiori informazioni?
website »
Anastasios dice:
29 Aprile 2008 alle 10:47
Grazie per l’ aiuto Eduardo. Si ho capito, il plugin funziona bene ma adesso non si vede bene. Non posso capire perche le photo sonno “out of place”. Potevi vedere la cosa che ti dico se vai al mio sito. Vede il sidebar …
Grazie mille
website »
Eduardo dice:
29 Aprile 2008 alle 10:54
Di nulla. Comunque il problema, guardando l’html del tuo sito, è dovuto a strani doppi o tripli tag html (2 volte strong e un tag left che non uso). Comunque il plug-in funziona con i template, puoi modificarlo tu stesso sia l’html che il css in “\myweather\templates\default”. Comunque potebbe essere un problema di qualche altra tua plug-in.
website »
Un anno di questo blog | The Developer Inside dice:
29 Aprile 2008 alle 20:31
[...] ho effettuato un piccolo update per myWeather, in quanto ho trovato un errore nel sistema di cache. Se usare myWeather 2.4, aggiornate al più [...]
website »
Anastasios dice:
30 Aprile 2008 alle 04:53
Il problema c’e solo se vedi il sito con Firefox. Con IE e Safari il plugin funziona bene.
Grazie
website »
cecilio dice:
7 Maggio 2008 alle 09:29
hi,
i can´t use the plugin. Appears the next message:
Warning: file_get_contents(http://xoap.weather.com/search/search?where=madrid) [function.file-get-contents]: failed to open stream: Connection timed out in /opt/lampp/htdocs/wordpress/wp-content/plugins/myweather/admin.myweather.php on line 164
no city found
i tried several cities and several formats ( like madrid,spain …) without success.
what’s wrong? thank you in advance.
Eduardo dice:
7 Maggio 2008 alle 09:59
myWeather requires the parameter “allow_url_fopen” set on true, in your php.ini. Look at blue “tip” on the php manual.
website »
Cecilio dice:
7 Maggio 2008 alle 17:52
thank you for your quick answer. well, i´m not an expert at all, but in the /opt/lampp/etc/php.ini line 434 appears: allow_url_fopen = on
it´s the rigth file?, the rigth value? ( you said true instead ); I´ve changed to true without success. Should i make a “reload” of the file after edited ?
Rgds
Troy dice:
19 Maggio 2008 alle 22:04
Edguardo,
For some reason my cities can not be found. Is there a way to hard-code my cities in to the php? Or how else would I get them, thanks!
Troy
Troy dice:
19 Maggio 2008 alle 22:21
Ok, it actually can’t find any city. I’m deleting 2.4.1 and trying 2.4.0… I’ll let you know if I have the same problem.
Troy dice:
19 Maggio 2008 alle 22:23
Ok… well, i just installed 2.4.0 and it can’t find any city at all. I’ve even tried Atlanta, GA, even Long Beach, CA. Whats going on ?
Troy dice:
19 Maggio 2008 alle 22:50
Ok, I actually found out my problem. I didn’t realize my server was running PHP4, not 5. Switched it and VOILA! Thanks for a rocking plugin Eduardo.
Alessandro dice:
2 Giugno 2008 alle 17:00
Ciao! Innanzitutto complimenti per la bellissima plugin, davvero molto molto utile e semplice da utilizzare. Però… ho un grandissimo problema, che a quanto pare è già stato segnalato, ma non ho notato una risposta risolutiva. Ecco il problema: tutto funziona benissimo con IE e Safari, ma con Firefox tutto appare “scombinato” e fuori posto. La cosa particolarmente strana è che ciò accade SOLO nella homepage del mio sito, se ad esempio apro la pagina di un post specifico, tutto torna a posto e si visualizza correttamente.
Ecco come si vede: http://i29.tinypic.com/oqdrth.jpg
Ho cercato di dare un’occhiata al codice, ma non sono affatto all’altezza… in ogni caso mi sembra molto strano che possa trattarsi di un problema di codice, proprio in virtù del fatto che il problema si presenta SOLO con Firefox, e SOLO nella homepage!
Mi piacerebbe molto utilizzare questa plugin sul mio sito, ma finchè non riuscirò a risolvere questo problema non la potrò lasciare
Posso sperare in un aiuto? Grazie infinite!
Alessandro
website »
Alessandro dice:
2 Giugno 2008 alle 17:16
Alcuni dati che potrebbero servire:
- Wordpress versione: 2.5.1
- Tema utilizzato: Dilectio ( http://wp-themes.designdisease.com/2007/12/21/dilectio-wordpress-theme/ )
- PHP 5
Eduardo dice:
2 Giugno 2008 alle 18:10
Grazie Alessandro per i complimenti. Purtroppo hai ragione, il problema non è di codice, ma dipende dal css del template. Pensavo di aver corretto e bloccato gli errori più comuni ma mi sbagliavo; è molto difficile stare dietro a tutti i template possibili. Comunque ho committato la 2.4.2, tempo una mezz’ora ed è scaricabile, a cui ho inserito un nuovo pezzo di css, sperando di risolvere i problemi. Fammi sapere.
website »
Alessandro dice:
2 Giugno 2008 alle 23:35
Gentilissimo! Ma non è ancora online o sono io che non la trovo? Grazie!
Alessandro
Eduardo dice:
3 Giugno 2008 alle 19:23
Ora c’è. L’avevo già caricato ieri sera ma non voleva saperne di aggiornarsi.
website »
Alessandro dice:
3 Giugno 2008 alle 19:31
Pessime notizie: il problema persiste. Dimmi se posso esserti utile in qualsiasi modo, se ti servono determinate informazioni per poter analizzare meglio il problema sono a tua disposizione!
Ale
Alessandro dice:
3 Giugno 2008 alle 21:38
Anche la 2.4.3 ha lo stesso problema!!! Maledizione!!!!!
Eduardo dice:
3 Giugno 2008 alle 22:02
Ho trovato l’errore. Mi sono studiato la tua home e ho trovato. C’e un errore nel tuo html, per essere precisi nel post “Giugno 2008 @ RosaDeiVenti”. quando nella home spezza a: E Venerdì 27 Giugno Continua a leggere »
Non chiude lo strong, e ciò distrugge tutto l’html a cascata. Facci caso sotto è tutto in grassetto. Firefox, a differenza di altri browser che tendono ad autocorregersi, fa visualizzare l’errore.
Controlla il more nel tuo articolo.
website »
Alessandro dice:
3 Giugno 2008 alle 22:29
Accidenti… ora do un’occhiata, mi dispiace averti fatto perdere tempo per un errore che era mio!!! Ora do un’occhiata e ti faccio sapere
Mille grazie in ogni caso!
Alessandro dice:
3 Giugno 2008 alle 22:34
AVEVI RAGIONEEEEE! MAMMA MIA QUANTO SONO FELICE! Finalmente posso sfoggiare la plugin in tutto il suo splendore! Sei stato grande, veramente grazie di cuore!
Ale
Dean dice:
6 Giugno 2008 alle 19:09
I would like to place a title onto the existing widget. How would I do that, or is there is a fix for this?
Ryan dice:
15 Giugno 2008 alle 01:15
Hi, this plugin is not working for me. This is the error I am getting when entering a city:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /mnt/local/home/delnorte/delnorteoutfitters.com/temp/wp-content/plugins/myweather/admin.myweather.php on line 164
Warning: file_get_contents(http://xoap.weather.com/search/search?where=Oakes,+ND) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /mnt/local/home/delnorte/delnorteoutfitters.com/temp/wp-content/plugins/myweather/admin.myweather.php on line 164
no city found
Ryan dice:
15 Giugno 2008 alle 01:37
ok, so I didn’t see the above comments. it appears to be a php.ini issue?
Ryan dice:
15 Giugno 2008 alle 02:35
This is not working at all.
I’m using WP 2.5.1, server is PHP 5.2
same error I listed above. Any ideas?
Ryan dice:
15 Giugno 2008 alle 03:11
so my host doesn’t support ‘function.file-get-contents’ , they say it is a secruity issue and should not be supported. They say instead to use this cURL which I replaced in your admin.myweather.php
starting at line 161:
$fdata = “http://xoap.weather.com/search/search?where=”.str_replace(” “,”+”,$_POST['code']);
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $fdata);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
// display file
echo $file_contents;
now when I search for a city, I don’t get the error and it echos the city I searched for, but also says “no city found”. So its still not working.
Ryan dice:
15 Giugno 2008 alle 03:30
so the problem is with the ‘function.file-get-contents’ my host (dreamhost) does not support it because they say it is a security threat. They suggest this as a solution:
http://wiki.dreamhost.com/CURL
I replaced line 164 of admin.myweather.php with this CURL alternative and no longer had the error, but it still said “no city found” and that was it.
Eduardo dice:
15 Giugno 2008 alle 12:51
Hello Ryan.
You’re right, but CURL is an extension to activate, not all servers there
have. However, I tried to fix with the 2.4.4 (published soon), which contains an if for CURL.
Sorry for my bad English
website »
Giuseppe dice:
15 Giugno 2008 alle 15:03
ciao Eduardo,
ho provato ad attivare il tuo fantastico plugin, ma niente da fare e mi dà questo errore :
Parse error: syntax error, unexpected T_IF in /web/htdocs/www.atinablog.it/home/wp-content/plugins/myweather/myweather.php on line 30
website »
Eduardo dice:
15 Giugno 2008 alle 15:17
Me ne sono accorto, ho già fatto il commit della 2.4.5. Attendo che venga pubblicata.
website »
Max Hoffmann dice:
15 Giugno 2008 alle 17:09
Thank you very much for adding the multi-city function. This feature is totally usefull!
website »
Giuseppe dice:
15 Giugno 2008 alle 17:20
ancora non va…
Parse error: syntax error, unexpected T_VARIABLE in /web/htdocs/www.atinablog.it/home/wp-content/plugins/myweather/myweather.php on line 32
website »
Eduardo dice:
15 Giugno 2008 alle 17:25
Attendi per favore, c’è un problema con il commit. Ho già effettuato il commit dei file corretti, ma l’attesa del refresh di wordpress può essere lunga. prova a ri-scaricare il file tra 1 ora circa.
website »
Max Hoffmann dice:
15 Giugno 2008 alle 17:26
I got, the same PHP error also. There is just a semi-colon (;) missing on line 31.
website »
Giuseppe dice:
15 Giugno 2008 alle 17:30
ok… era solo per segnalartelo…
website »
Ryan dice:
16 Giugno 2008 alle 04:05
“However, I tried to fix with the 2.4.4 (published soon), which contains an if for CURL. However, I tried to fix with the 2.4.4 (published soon), which contains an if for CURL.”
2.4.4? Isn’t the latest version 2.4.5?
I guess I’ll try the 2.4.4 version then.
Eduardo dice:
16 Giugno 2008 alle 12:23
Version 2.4.4 is not working! Download version 2.4.5. I delete the 2.4.4 from wordpress.org as soon as possible.
website »
Cedric dice:
16 Giugno 2008 alle 18:29
Thanks a lot for this plug-in, it is very usefull!
Ryan dice:
16 Giugno 2008 alle 23:09
ok, I finally got it working.
http://www.delnorteoutfitters.com/temp/?page_id=15
How would you get it to show the States?
Eduardo dice:
17 Giugno 2008 alle 10:12
if you want to see even the state, go to at line 240 and comment like this:
//list($template['city'])=explode(”,”,$template['city']);
Attention, the display may not be correct.
website »
Ryan dice:
18 Giugno 2008 alle 00:02
great, that worked:
http://www.delnorteoutfitters.com/temp/information
Ryan dice:
23 Giugno 2008 alle 18:10
Hi Eduardo,
Is it possible to add myWeather to several pages?
Although, a different city on each page?
So… page_1.html has (myWeather city 1), page_2.html has (myWeather city 2), ect…. ?
Thanks
Eduardo dice:
23 Giugno 2008 alle 21:47
sorry, is not possible.
website »
dan dice:
29 Giugno 2008 alle 16:26
Hi Eduardo - plugin server seems to be down - showed -18 for Bangkok …
website »
Eduardo dice:
29 Giugno 2008 alle 18:09
Sorry, myweather working with a weather.com server. If it does not work, unfortunately I can not do anything. It might be a momentary problem.
website »