| Plugin für Google-Wetterdaten in Joomla |
|
|
| Thu | 42 ⇒ 62 oF | » Chance of Rain « |
| Fri | 42 ⇒ 64 oF | » Chance of Rain « |
| Sat | 46 ⇒ 69 oF | » Clear « |
Wichtig: Damit das Plugin funktioniert, sollte die Option "allow-url-fopen" in der PHP.INI aktiviert sein. Alternativ versucht das Plugin die CURL Erweiterung von PHP zu nutzen. Schließlich muss googleWeather eine XML-Datie von einer externen Quelle holen können.
Version 1.5 bietet 3 verschiedene Iconsets an, hat neue Standardicons und individuell anpassbare Fehlermeldungen.
Version 1.4 renchnet auch in der Wettervoschau die Maßeinheit für die Temperatur um, wenn gewünscht.
Version 1.3 versucht Probleme bei der Kodierung exotischer Zeichensätze zu umgehen.
Version 1.2 unterdrückt auf Wunsch alle Fehlermeldungen. Beim aktuellen Wetter kann alternativ nur Celsius oder nur Fahrenheit ausgegeben werden.
Version 1.1 bietet bei Bedarf eine kleine Vorschau auf die kommenden drei Tage an.
Die Version 1.0 greift notfalls auf eine eigene Routine zum parsen der XML Dateien zurück. Somit sollte das Plugin jetzt auch mit PHP4 funktionieren. Außerdem kann googleWeather nun automatisch die Sprache aus dem Seitenkontext erkennen. Dadurch wir der Einsatz auf mehrsprachigen Seiten möglich.

Allan Walker stellt unser Google Wetter in seinem neuen Buch vor ;-)
Gerade bekommen wir eine nette Mail von Allan Walker - Autor von dem (englischsprachigem) Buch: Joomla! 1.5 Multimedia - Build media-rich Joomla! web sites by learning to embed and display Multimedia content. Er hat unser Google Wetter mit in sein Buch aufgenommen. Danke Allan - ein schönes Kompliment!
Dies ist das erste Derivat aus unserer Arbeit, dass wir als „Open Source" veröffentlichen. Wir verstehen es als Dankeschön an die Comunity, deren Produkte wir täglich nutzen. Über Fehlermeldungen, Kommentare und Verbesserungsvorschläge würden wir uns deshalb natürlich freuen.

Für ein Kundenprojekt haben wir vor einiger Zeit eine einfache Wetteranzeige gesucht. Vorhandene Lösungen waren überladen und mit Werbung bzw. Links versehen. Google bietet Wetterdaten als XML-Datei an. Somit ist die Integration in ein kurzes PHP-Script sehr einfach möglich. Kurzerhand haben wir uns entschieden, dass Ganze in ein Joomla-Plugin zu verfrachten und als „Open Source" frei zu geben.
Partly Cloudy (64 oF • 18 oC)
Overcast (42 oF • 6 oC)
Problem with arabic language is in mod_googleweather.php line 28
$weather_language = 'ar';
just erase line or add //
Thanks
Nick
Hi Tom,
Thanks for your hint. It pointed me to the right solution. Unfortunately the encoding differs from language to language and PHP isn't able to detect codepage of a string correctly.
So i added array with popular languages and inserted the following line into version1.3.
$wxml = mb_convert_encoding($wxml,'UTF-8', $charset);
iconv() should work too. But since the command is only available to php >5.0 i decided to use mb_convert_encoding.
Path to the icon folder - but that´s not your problem.
Google just does´nt suply weather-information of westernburg (where the hell ...) Try next bigger city and just put westernburg on the frontend. Test with this url (change location):
http://www.google.com/ig/api?weather=westernburg&hl=de
Joest
The proper link is http://mghandel.de
BTW, nice captcha! Where did you get is? ;)
Here is the link: http://mdhandel.de
What path are talking about? :)
Fisrt I have to say that I found this module to be the best solution for my website. Thanks for nice work Joest.
I ´ve had the same problem with encoding - but this helped - change row 40 in mod_googleweather.php to
$wxml = iconv("ISO-8859-2","utf-8",$wxml);
This works for me in Slovak language.
send your client to us ;-)
Serious - did you check the path?
Sent a link to your installation for better help
Joest
What am I doing wrong?
Thank you in advance!
Hi René,
sorry, my understanding of francais is to poor...
All i can see on you site - use the automatic language detection or set it to france. The module´s language education is better than mine (even so i did do france at school, but - to long ago, hardly ever practiced) - module does speak france ;-)
(for better hints and help - please write in english)
joest
Je suis est nouveau et mon site: http://famille-arbour.com en opération depuis 3 mois.
Comment faire pour ajouter 2 ou 3 villes Comme L'exemple de Sidney et Berlin.
you are right. But your bugfix will not work under all circumstances. According to the php documentation ini_get returns the value of the ini-option. Only if the option is "FALSE" or "OFF" it returns a empty string. My php-version returns "1" instead of "on".
The correct code should be
if (ini_get('allow_url_fopen') != '') {
I changed it in the current version.
Thanks for your hint.
if (ini_get('allow_url_fopen')) {
This always turns out to be true... because it returns "on" or "off"...
I changed it to :
if (ini_get('allow_url_fopen') == 'on') {
Now it really detects if url_fopen is enabled or not.
Greetings
(I am using PHP 5.2.10)
sorry - no, not realy... i admit - only limited time to dive deeper into this encoding problem. still on our schedule so.
encoding problems -> japanese and cyrillic language...
anybody outthere with THE helpfull hint?
joest
Danke
Harald
erst einmal mein Dank für dieses Modul. Es funktioniert auch gut bei mir. Jetzt habe ich aber eine Frage: besteht auch irgendwie die Möglichkeit, mehrere Städte auf einer Seite gleichzeitig anzeigen zu lassen? Ich hatte es versucht, aber dann wurde nichts mehr angezeigt, auch nicht die erste Stadt.
Vielen Dank
Harald
Thanks for this great job!
Hi Michael1965,
ja - in Zeile 59 vor dem Ende der Fettung den Doppelpunkt einfügen. (Achtung - nicht wundern, in den Kommentaren werden alle Tags gelöscht, darum fehlt in Deinem Post das /b)
Joest
Hi Sarah,
you said "I was using your module successfully on another template and another Apache windows (xampp) server " Make shure you use an uptodate xampp. Still getting errors? Please sent me your php-info via mail. I´d like a look.
Joest