| 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)
"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."
Vielen Dank für die Hilfe.
Traveller
danke für die Blumen!
Hmmm - immer wenn ich draufschaue sieht´s ok aus. Schaue die Tage immer mal drauf. Melde mich.
Joest
ich habe ja jetzt schon einige Zeit diese Modul und muß nach wie vor sagen: GENIAL!!!! Respekt, sehr gut gemacht!
Hab aber auf einer meiner Webseiten ein Problem, auf www.schaukn.de wird zwar die Temperatur usw. richtig ausgelesen, aber die Wetterbeschreibung und das Bild erscheint als Fehler, nicht immer aber sehr häufig. Weshalb?
Auf der Seite www.dekanatsjugend.com von mir funktioniert es einwandfrei. Worin liegt der Unteschied?
Besteht eine Möglichkeit, dass dann auch der "ERROR" nicht erscheint, wenn schon das Bild fehlt?
nochmals Danke für das super Modul und Plugin!
mfg.
Schaukn
thanx for coming back an sharing ...
Joest
Ps.: Dirk has done the coding
For turkish language "change row 40 in mod_googleweather.php to
$wxml = iconv("ISO-8859-9","utf-8",$wxml);
This works for turkish language.
Thanks to Tom for the solution to the encoding problem and for the nice work to Joest.
Sedat
thanx for the flowers ;-)
I checked with Cartagena - no problems at all, weather shows as wanted. Cartagena even works without supplementing country. sent a link for better help.
what do you mean with "third screen print"? You can easly design the weather output via css.
joest
I really like the module - works well. But I am trying to get weather for Cartagena, Spain or San Javier, Spain, and I get an error when I put these in as the location (although weather google itself is ok with it..)
Also would like to change the look from white background to third screen print in the documentation - how is this done?
Thanks for the good work!
Andrew
(hi pupendo - thanx for helping, but i don´t think that´s the problem. toronto does work without ca)
hmm - ... obviously you can´t activate plugins in mod_custom without using a special extension. search for "Plg-mod-custom-.zip". that should do the job for you.
joest
thanx for posting. i´m suprised you came across any encoding problems. i don´t speak any italian - but didn´t expect any problems there. what characters do you have problems with?
ciao joest
sorry for late reply. busy here ... sorry again - but ... google doesn´t supply any weather information for your country (as far as i know). correct me if i´m wrong here.
joest
I am following your instructions and can not get it work.
1. my phpInfo reports that allow-url-fopen is "on"
2. i have installed 1.3 plugin version
3. if i add {weather toronto} to new article it works
Problem:
if i create new custom-HTML module and type
{weather toronto}, activate module and put it
to the desired position, i see "{weather toronto}"
displayed on my web page.
Am I doing something wrong?
for solving encoding problem with Italian Language please modify the array content on first line of mod_googleWeather.php
as is:
// array with languages and encodings. php isnt able to detect charset
$encodings = array ('it' => 'ISO-8859-1','ru' => 'windows-1251','tr' => 'ISO-8859-9','ar' => 'ISO-8859-6','gr' => 'ISO-8859-7');
It will be run fine.
Many thank's to author, regards from Italy
Claudio
& how ?
Thanks
Hi Nick, hi Zeiß, hi pleunski ... hi everybody,
thanx for comming back, thanx for the flowers - that´s how we like it ;-)
how about sending us a link to your sites using our module / plug in - come on, we´re curious ...
joest
THX a lot!
super!
pleunski
Sorry... but I forgot a test declaration in the source.
Module and Plugin should work now as desired.
Please download the new package