| Google-Wetterdaten in Joomla |
|
|
| Fri | 46 ⇒ 57 oF | » Rain « |
| Sat | 45 ⇒ 66 oF | » Chance of Rain « |
| Sun | 48 ⇒ 70 oF | » Clear « |
(weather freiburg,germany:forecast)
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-Datei von einer externen Quelle holen können. Noch was - für viele kleinere Orte liefert Google keine Wetterdaten. In dem Fall einfach den nächst größeren Ort eintragen ...
Gefällt Euch unser Modul / Plugin?
Offensichtlich ja - 41 500 Downloads (!) von unserem Plugin und Modul, Stand: 30.05.2011. Gebt uns Eure Stimme auf JoomlaExtensions ... Dankeschön ;-)
Version 2.0 - Einige kleinere Änderungen.
Version 1.9.1 - 07.06.2011 - Nach nur einer Woche hat Google das Iconschema wider auf das alte System geändert. Code und Dateinamen erneut angepasst.
Version 1.9 - Google hat die Wetterapi verändert, die Namen der Icons geändert. Code und Dateinamen angepasst
Version 1.8 - Fehlerhaftes preg_match bei 2 und mehr Wettereinträgen in einer Zeile korrigiert
Version 1.7 - Plugin und Modul sind nun kompatibel zu Joomla 1.6 und 1.5
Version 1.6 - Google liefert für einige Orte teilweise unvollständige Daten - Version 1.6 fängt diesen Umstand ab. Die Fehlermeldung: "Warning: modGoogleWeatherHelper::getData() [modgoogleweatherhelper.getdata]: Node no longer exists in /var/www/bpi/modules/mod_googleWeather/helper.php on line 14" tritt damit nicht mehr auf. Die 3 Iconsets wurden um ein Fragezeichenicon erweitert.
Version 1.5 bietet 3 verschiedene Iconsets an, hat neue Standardicons und individuell anpassbare Fehlermeldungen.
Version 1.4 renchnet auch in der Wettervorschau 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 wird 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, das wir als „Open Source" veröffentlichen. Wir verstehen es als Dankeschön an die Community, deren Produkte wir täglich nutzen.
Über Fehlermeldungen, Kommentare und Verbesserungsvorschläge würden wir uns freuen.
Um helfen zu können benötigen wir ein paar Informationen:
- Mit welchem Ort tritt der Fehler auf?
- Tritt der Fehler auch mit anderen Orten auf?
- Ist die aktuelle Version von unserem Plugin / Modul installiert?
- Wenn möglich bitte einen Link auf die Seite posten

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, das Ganze in ein Joomla-Plugin zu verfrachten und als „Open Source" frei zu geben.
I've tryed in two website.
I'm using Joomla 1.5.
Thanks again
Warning: modGoogleWeatherHelper::getData(): Node no longer exists in /web/htdocs/www.feelingvesuvio.com/home/modules/mod_googleWeather/helper.php on line 16 Warning: modGoogleWeatherHelper::getData(): Node no longer exists in /web/htdocs/www.feelingvesuvio.com/home/modules/mod_googleWeather/helper.php on line 16
Then... (city Napoli, IT)
-- oC
Umidità: 0%
gio 10 ⇒ 20 oC » Per lo più soleggiato «
ven 12 ⇒ 22 oC » Per lo più soleggiato «
sab 16 ⇒ 23 oC » Per lo più soleggiato -- oC
Umidità: 0%
gio 10 ⇒ 20 oC » Per lo più soleggiato «
ven 12 ⇒ 22 oC » Per lo più soleggiato «
sab 16 ⇒ 23 oC » Per lo più soleggiato
As a can see in 2.0 version you not fixed autodetecting language and weend speed or problem is on my side?
Fehlermeldung: Unable to get weather data from Google.
Service is offline.
Unter dtk-btacht.de gehts. Unter dtk-brueggen.de nicht. Alle Domains laufen unterm gleichen Verzeichnis.
do you have fix problem with autodetekting langauge and wind speed?
Haben jemand dieses Problem konfrontiert? Immer, wenn es Haze Wetter das Plugin nicht angezeigt Wind Daten und alle Text-Inhalte nach diesem Plugin erscheint in Fettschrift. Andere Wetter (Clear, Regen, Schauer und Regen) haben kein Problem so weit.
Hi Regis,
no Bug, but seams like there was a problem receiving the weather data. Looks ok now - thanks for including the link. Get back if errormessage shows again.
Ciao Joest
Warning: modGoogleWeatherHelper::getData() [modgoogleweatherhelper.getdata]: Node no longer exists in /home/www/.../www/vivreenrussie/modules/mod_googleWeather/helper.php on line 16
Please have a look here :
http://www.vivreenrussie.net/
Any chance/option/idea on how to fix it ?
Cheers,
Régis
Hi Nimets,
ja - kann sein. Ohne Link kann ich nicht helfen. Bitte ggf. die Datei mod_googleWeather.php - hier Zeile 16 entsprechend editieren. Dein Isozeichen genau wie die anderen einfügen und auf den entsprechenden Zeichensatz zeigen. Poste doch Deine Lösung ;-)
Ciao Joest
Ansonsten tolles Plugin!
Hello everybody,
sorry - we´re extremly bussy (at least we have to earn some money ;-), sorry for not takting care of your latest questions.
BUT ... please - to be able to look into you problems: What version (joomla) AND weather module / plugin are you uisng. If possible - post a link to your site. Please give us all the Information we need to help ...
Ciao Joest
Hi Aleksandr,
hmmm - will look into it, come back maybe next week. Sorry, extremly bussy here ...
Ciao Joest
Thank you for help and this so nice plugin!
Hi Lautes,
just write the name down - before you call the plugin ;-))
Ciao Joest
How to make, that the city name was displayed?
please help
Ich nutze die letzte V. 1.9.1
Hier der Link zu meiner Seite: http://www.arboretum-dreetz.de
Hi Heiko,
kann ich so nicht reproduzieren. Bei uns läuft es problemlos. Wie immmer: Welche Version nutzt Du? Welchen Ort verwendest Du (vielleicht ein kleiner Ort? Google liefert nicht konstant oder gar keine Wetterdaten für zu kleine Orte). Tritt der Fehler immer auf? Oder nur ab und zu? Wie wäre es mit einem Link?
Ciao Joest
Tritt erst seit ein paar Tagen auf und war eigentlich vor Monaten mit dem update auf die letzte version behoben.Nun ist die medlung wieder da.
Hi Zbanana,
check for option "allow-url-fopen" in your PHP.INI or for CURL-extension.
Ciao Joest
I'm having problems since I migrated my webpage to a new hosting, the module displays the message:
"Unable to get weather data from Google.
Service is offline."
And can't get it to work with any city.
I would appreciate any help you could give me.
Thanks
Hi Dovile,
sorry - didn´t check for comments for a while, to buisy here. Problem solved? If you still need help - let me know ...
Ciao Joest
first of all, thanks for so nice module google weather. I use it on various websites and it works fine. But on one of them i enabled it and it displays lithuanian letters wrong. I'm not even sure is it possible to fix it , maybe it's not Your module fault. But maybe You can check and help me. My website address:
http://www.matuizu-mokykla.lt
It shows Đ instead of Š, ë instead of ė and so on.
Restpectfully - Dovile
Hi Ralf,
eine Antwort geht noch - dann muss ich mich um andere Dinge kümmern - hektisch hier auf die letzten Meter ... In dem Verzeichnis liegen offensichtlich keine Icons. Wenn Du den Dateinamen händisch vervollständigst - kommt nüschte ... Bitte schau Dir Deine Installation noch mal genauer an. Im Pfad modules/mod_googleWeather/icons/ solltest Du die Iconsets finden.
Ciao Joest
Hallo Joest, hoffe, dass ich dich nicht zu sehr beanspruche. Du hast recht, beim Google-Iconset beginnt die URL mit /ig/..., ich habe jetzt umgestellt auf modern. Dann sieht die URL so aus http://vfen.de/modules/mod_googleWeather/icons/modern/.png, d.h. der Dateiname des Icons ist unvollständig. Sonst ist der Pfad richtig. Ich habe eure aktuelle Version 1.9 installiert.
Hallo Ralf,
hmm - merkwürdig. Hast Du den Code vom Modul verändert? Benutzt Du unsere aktuelle Version? Der Pfad zu den Icons ist falsch. Bei Dir steht Dein Domainname vorne... http://vfen.de/ig/images/weather/mostly_cloudy.gif
Für die Google Icons lautet der Pfad aber so: http://www.google.com/ig/images/weather/mostly_cloudy.gif
Was passiert wenn Du unsere Iconsets verwendest?
Ciao Joest
Danke für die schnelle Antwort.
Hier der Link:
vfen.de
Habe folgendes eingestellt
mod_googleWeather
show icon ja, iconset google, use google icons ja
Hallo Ralf,
ein Link wäre hilfreich ;-)
Bitte mal den Pfad zu den Icons überprüfen (oder in den Einstellungen einfach Iconset von Google verwenden).
Ciao Joest
zuerste einmal vielen Dank für das tolle Modul.
Habe ein kleines Problem. Bei mir werden die Icons nicht angezeigt. Es erscheint an stelle der Icons ein entsprechender Text.
Hi Heiko,
thanks for coming back and charing
;-)
Ciao Joest
Thanks for the Encoding tip, this worked, just needed to add the Simplified Chinese Encoding (GB2312) and switch off the Autodetect language and now it works...
Thanks
Heiko
Sirko
Hallo Sirko,
bitte nächstgrößeren Ort hinterlegen - für kleine Orte liefert Google nur unzufverlässig (oder keine) Daten.
Ciao Joest
ich habe die googleWetter Komponente auf meiner HP eingebaut. (www.feuerwehr-nudow.de) Da sie sehr schlicht ist gefällt sie mir besonders gut. Allerdings sind die Wetterdaten nur für jeweils einen halben Tag verfügbar. Leider lässt sich das nicht genau zeitlich festlegen. An Arbeitstagen erhate ich so ab ca. 17:00 die Anzeige "Unable to get weather data from Google. Service is offline." also die hinterlegte Fehlermeldung.
Woran kann es liegen? Die funktion ist ja grundsätzlich da. Sollten die Daten von google nicht immer zur verfügung stehen, währe es dann möglich die letzten Daten bei nichterreichbarkeit der xml zu speichern und bis zur nächsten erfolgreichen Abfrage anstelle der Fehlermeldung anzuzeigen?
Vielen Dank
Sirko
Hi Frans,
i checked with google weather api - no data for pergola ... (http://www.google.com/ig/api?weather=pergola,italy)
Try next bigger city. For smaler cities Google doesn´t provide weatherdata at all, or not all the time - sorry we can´t do anything about it.
If you use the module - you just need a few settings in your backend. Fill in city, country - thats it. Name the module as you like (if you want) - like we did on this page (top of the page, right side "Wetter in Berlin"). You just need to activate what you want, you can use just the plugin, just the module or both.
Ciao Joest
I checked on google weathers, and there is weather information on Pergola.
And, is it necessary to activate the plugin, even I make use of the googleweather module?
Please explain.
Hi Heiko,
thanx for the flowers ;-)
The Iso-Code to use should be: zh-cn. But you have to modify the mod_googleWeather.php and add your additional encoding:
'zh-CN' => 'big5' try maybe another even better encoding, experiment a little, please come back an share.
Ciao Joest
Tried also cn as code, also no luck ...
Any advice??
Thanks
Heiko
above the forecast for Male I get this error. Do you know what's wrong?
Thanks
Warning: modGoogleWeatherHelper::getData() [modgoogleweatherhelper.getdata]: Node no longer exists in /home/summeris/public_html/2011/modules/mod_googleWeather/helper.php on line 16
Warning: modGoogleWeatherHelper::getData() [modgoogleweatherhelper.getdata]: Node no longer exists in /home/summeris/public_html/2011/modules/mod_googleWeather/helper.php on line 16
--- oC
thank you very much. It's showing now.
Wonderful and thanks again for the help.
thank you for the reply, have been away for a few days that is the reason of my late reply. I willl try it tomorrow and come back to you after trying.
Thanks,
Hi Dutchybert,
try malé, maldives ;-)
(in the module you just need: city, country)
Ciao Joest
I downloaded and installed the module. Tried to get the weather info for Male, Maldives.
Checked Google weather and saw they have they info from wunderground.com and they do give information about Male.
My input: {weather Male,Maldives}
Could you please help me out
Thanks
Fehler mit den Icons können wir so nicht nachvollziehen. Welche Region wurde gesucht? Welche Icons wurden ausgewählt? Evtl. ein Rechteproblem?
Leider kann Joomla einzelne Module nicht vom Caching ausnehmen. Es gibt drei Möglichkeiten das Problem zu beheben:
1: Erweitertes Caching ausschalten. Dann werden die Module nicht mit gecached. Das sollte die Geschwindigkeit der Ladezeit kaum beeinträchtigen. 2: Standardmäßig wird der Cache nach 15 Minuten aktualisiert. Diese Zeit könnte reduziert werden. 3: Es gibt eine Komponente namens JotCache. Damit sollen sich einzelne Module vom caching ausnehmen lassen (noch nicht getestet). http://extensions.joomla.org/extensions/site-management/cache/13155
http://www.keepaneye.de/wetterdaten-aus-xml-api-verwenden/
cheerz,
Mat
eine schöne Erklärung - ich habe noch ein Beispiel gefunden, bei dem auch das Rendern einer Grafik mit den Vorschaubildern erklärt wird. Was ein Glück gibt es simplexml. :-)
Viele Grüße,
Mat
Module showed red X instead of novacom icon. Looking at XML from Google noticed that icon data was empty string. I looked at mod_googleWeather.php and found -- if (empty($icon)) -- not working, so I added test for $icon length less than 5 and this fixed it to show novacom warning icon.
Thanks.
ich habe das Plugin mal testweise installiert. Es funktioniert auch alles. Nur die Icons werden nicht angezeigt. Es steht nur der Text (bewölkt usw.) da. Hat jemand eine Idee?
Danke für eure Hilfe :-)
first i would like to thank you for having this module, its very usefull and exactly what i was looking for.
I have one question/problem, it seems that no "night icons" are being displayed. i have checked with different locations, but its always showing the daytime icons.
How can i change this? Am i doing something worng?
Thanks a lot and keep up the good work
I have some problems with it :
- sometimes, when the information gets loaded with a page - my texts on the page turn all in bold - and I see a lot of " " all around the page's html, which is weird. It does not happen always, just from time to time, and I believe it has something to do with the fetched information from Google, but don't know exactly what the problem might be. I hope you can figure it out. My location for which I show weather is Sofia, Bulgaria - if that can affect the display somehow..
- another problem is with the language. With the default options and automatic language turned on - it displays some weird unreadable symbols (my browser language is bulgarian). I also want to be able for the plugin to switch its content language, based on the web site language (Joomla), but I dont know if that is possible.
Small fix is when I edited the .php file and added this to line 109 :
'bg' => 'windows-1251','es' => 'utf-8','en' => 'utf-8',
Then if I turn the auto language on - it displays in Bulgarian, which is great, but when I switch my website language (for example - to English) it stays in Bulgarian - probably because it gets my language from my browser and not from the website (Joomla active lang) ?
das Modul ist genau das was ich für unsere Vereins-WebSite (www.fc-langen.de) gesucht habe. Danke dafür!
Leider gibt es ein Problem im Zusammenspiel mit dem Joomla-Cache. Die Daten werden immer erst nach dem explizieten löschen des Caches und erneutem Aufruf der Seite aktualisiert.
Was kann ich dagegen machen?
Freu mich auf eine kurze Nachricht!
Gruss
Götz
I am using this as a module on my site (www.novemberraincharters.com) and the weather icon is not showing up. I installed it after your last 1.9.1 update. It worked for about a month, but just recently (within the last week) stopped appearing. I have the icon settings as:
Show icon - YES
Select an icon set - GOOGLE
Use Google icons - NO
Align icon - LEFT
Even when I adjust these settings, no icon appears.
I hope you can help me resolve this. I do really like your app! Thanks very much.
Hi Wolli,
nein - Ortsangabe geht hier nur übers Backend, also nicht für "normale" Besucher.
Ciao Joest
ich habe das Plugin soweit am laufen. Ich hätte da noch eine Frage, kann man es auch so einstellen, dass die User bzw. der Gast auf der Hompage den Ort selber eingeben kann?.
Gruss Wolli
Hi Manuel,
danke - sehen wir uns an, melde mich nochmal - bitte etwas Geduld.
Ciao Joest
wenn ihr in Zeile 41 "" zu 0 ändert, dann funktioniert es:
von
if(ini_get('allow_url_fopen') != "") {
zu
if (ini_get('allow_url_fopen')!= 0) {
greetz
Manuel
Ich bin grad ein wenig weiter gekommen. Die Weiche scheint irgendwie nicht zu funktionieren. Ich habe eine neue PHP Datei angelegt mit folgendem inhalt:
// try to use alternate method if allow_url_fopen is disabled if(ini_get('allow_url_fopen') != "") { echo 'fopen'; } else if(function_exists('curl_exec')) { // try curl echo 'curl'; }
Ich habe versuchshalber auch != "" gegen == 0 ausgetauscht. Beide Male wurde jedoch fopen ausgegeben. Momentaner Workarround für mich daher, die erste if Anweisung incl. else rauslöschen und es funktioniert. Ihr bekommt das jedoch sicher sauberer hin.
LG Manuel
Ich bin auf einem VirtualManagedServer von Hosteurope und benutze die aktuelle (1.6.5) Joomla Version. cURL ist laut PHP-Informationen auf enabled.
Was kann/muss ich tun damit es funktioniert?
Hi Vincent,
hmmm - dann sollte es auch in Deutsch erscheinen ... Verwendest Du die aktuelle Version? Hastu Du autodetect auf "Nein" gesetzt?
Ciao Joest
jetzt hab ich das mit dem Forcast rausgefunden ;-)
http://www.alvearium.info/index.php/tagebuch-imkerei/89-ag41022-bienenstand
und wie klappt das ganze auf Deutsch? im Modul habe ich ein DE eingetragen?!
gruss
vincent
habe nach der Installation auch die Fehlermeldung "Unable to get weather data from Google." bekommen.
Beim 1&1 Server hilft dies:
Editor öffnen und
allow_url_fopen = on
reinschreiben. Als php.ini abspeichern und ins Hauptverzeichnis von Joomla schreibe.
Dann klappt es auch mit dem Wetter ;)
Hi Vincent,
danke für die Blumen. In der Tat eigenartig - hast Du den Ort für das Wetter exakt gleich eingebunden?
Joest
Aber amüsant es zeigt nicht immer das gleiche an!
http://www.alvearium.info/index.php/tagebuch-imkerei/89-ag41022-bienenstand
mit freundlichem gruss
vincent
vielen Dank
gruss
vincent
www.alvearium.info
Hi Wayne,
no need for a fix - the icons do show up fine ;-) as you can see on our examples on this page. to help we need more information (link to your site etc.)
Ciao Joest
Any fix yet?
Hi Vanessa,
you need to put the name of the city in the brackets. Take a look on our example on this page (weather interlaken, switzerland). To show the city for the displayed weatherdate - just ad a heading with city name ;-)
Ciao Joest
I checked previous posts but did not find any that mentioned the inability to see the city from where you're pulling the weather. I can view all of the other information (temp, humidity and wind) but unlike the Google weather, there's no location listed. I'm not sure if this problem is specific to me or if the option just isn't available.
Thanks!
vanessa
Hi Brian,
still having trouble with missing icons?
Ciao Joest
We are using the Module - really like it!
However, the weather icons are no longer displaying.
I have just downloaded 1.9.1 but no change.
Is there a solution?
Hallo U.Schmogro,
offensichtlich kurze Unpässlichkeit bei Google ... ich kann keinen Fehler (mehr?) sehen
Ciao Joest
oh, wir haben den Fehler gerade gemeinsam; Eure Anzeige:
London
Warning: modGoogleWeatherHelper::getData() [modgoogleweatherhelper.getdata]: Node no longer exists in /is/htdocs/wp1132808_T7HEG6LED9/feenders/modules/mod_googleWeather/helper.php on line 16
Idee?
MfG Uwe Schmogro
hi geert, hi raymond,
yes - looks like google changed again ... hmmm, we will update our pluging / module shortly. come back and update.
ciao joest
Yesterday they did.
I see on you site the same problem.
I've tried uninstalling it and reinstalling it, still the same. I've tried both module and plugin. Another site that i have, using ver 1.7 works fine (without the icon but fine). I think i will reinstall 1.7 and try the icon workaround.
Regards
Spy
P.S. Working or not, thanks for your module, great job. I' m sure you will figure out the bug and fix it...
hab mir jetzt mal das Modul in der aktuellen Version installiert unter Joomla 1.5.23.
Es wird mir jedoch nun seit einigen Tagen nur folgender Fehler angezeigt:
Unable to get weather data from Google.
Service is offline.
Liegts wirklich so lange an Google oder fehlts bei mir irgendwo?
Gruß,
Volkmar
Leider haben sich auch die Basisnamen einiger icons geändert. Es kann also durchaus passieren dass icons nicht gefunden werden.
Hi tintin,
danke - aber wir haben ja auch eigene Iconsets mitgeliefert. Wie gesagt - bitte noch etwas Geduld, Update kommt kurzfristig.
Ciao Joest
http://www.google.de/images/icons/onebox
It seems that only the iconnames have changed? In that case most of the work will be getting a hold on all the new names and republish the images folders of the module with the new names/missing icons.
Thanks in advance for the update!
Hi Clava,
offensichtlich hat Google seine Wetter-Api geändert ... anscheinend ganz frisch heute. Wir kümmen uns die Tage drum und überarbeiten unser Modul / Plugin.
Ciao Joest
Hi Dirk F,
am einfachsten Du wendest Dich an Deinen Provider.
Ciao Joest
heute wollte ich euer Modul auf meiner Seite einbinden. Alles klar soweit, nur dass die Meldung erscheint, der Service von Google offline ist. Auch mit Berlin, Germany als Parameter geht es nicht.
In eurer Anleitung heisst es, man solle allow-url-fopen aktivieren in der php.ini. Wo kann ich dies im myphpadmin tun bzw. wie heisst der Programmcode den ich u.U. auch in eine .htaccess.ini auf dem Server ablegen kann?
Vielen Dank im voraus fuer die schnelle Hilfe!
Gruss Dirk
Prima Modul von Euch...Danke!
Least important of all, both the xml and the php file report version 1.7 not 1.8.
Second, in mod_googleWeather.php the line:
$output = "get( 'moduleclass_sfx' )."'>\n";
Should really be like this:
$output = "\n";
and you should specify the class suffix in you xml like this:
the way you have written it, you end up with two divs that have the class suffix and that leads to problems. Also, because the class suffix get appended to the string before, you do not actually get everything as you might expect you would.
Third, after a few hours of operation I got the "Node no longer exists" error but the rest of the module was as it was supposed to be. I tried changing
$data = $node->attributes();
to
$data = (string) $node->attributes();
but then I got garbage text.
The problem went away after I disabled the forecast and the icon, saved the module and then re-enabled them, but then reappeared several hours later. Any ideas about that?
Hi Martina,
das Würmchen "lebt" auf Deinem Server ... Bitte mal checken:
"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-Datei von einer externen Quelle holen können. "
Ciao Joest
ich habe das Modul installiert und den Ort meiner Wahl eingegeben (testweise auch Berlin), nur leider funktioniert es nicht. Ich bekomme folgenden Fehler auf der Produktivseite:
"Unable to get weather data from Google.
Service is offline."
Auf Eurer Seite geht das Modul aber...
Was hab ich übersehen? -.-
Danke schon mal.
To display content plugins (like google-weather or email-cloak) in mod-custom you need a special extension.
http://extensions.joomla.org/extensions/core-enhancements/embed-a-include/6713
btw: in Joomla 1.6 the problem is not longer relevant because content plugins are displayed in the custom html module.
i can't find the solution - can you help me ?
ah, come on - take a look, a little read ... and you´ll even find some examples on this page. (no german? -> translatebutton ;-)
ciao joest
hmmm - hast Du irgendwas verändert? Dein Provider? Das sollte problemlos funktionieren - siehe unser Modul auf dieser Seite oben rechts - habe das gerade mal auf die Anzeige für Trier gesetzt ... (ab und an liefert Google keine Daten, insbesondere bei kleineren Städten kommt das mal vor. Bei Trier sollte das eigentlich nicht vorkommen)
Ciao Joest
ich benutze schon länger dieses Modul. Jedoch kann er jetzt keine Wetterdaten für die Stadt Trier in Deutschland mehr finden.
Hi Sarah, sorry for late reply ... yes of course you can add a link in the module. (Go to the main php-file) We like the idea of our google-weather-module especialy being small and clean - not showing any links or ads ;-) Ciao Joest
I was wondering if there was a way to add a link in the google weather module? I would like to add an "Extended Forecast" link at the bottom of the module, which links to weather.com. Is there a way to do that?
Thanks for your help!
Sarah
Hi Fred, sorry, can´t help you with that one. We can´t do anything about the data google is providing (GoogleWeatherApi is providing for your location: http://www.google.com/ig/api?weather=Grindelwald, Switzerland). Try another city near you. Mostly the data is fine, some - especialy smaller cities - are not, or not well covert. Ciao Joest
{weather Grindelwald, Switzerland}
In the joomla page this gives a temperature of -12 °C
On my igoogle I get 6.8°C.
I think the script in the item is getting it's readings from Jungfraujoch. Is there any way to change the source to somewhere else, like Frutigen?
Have a look at our test page here:
http://www.nextup.ch/NextUpEdit/
Cheers
Fred
sorry overlooked that one - it´s just a syntax error ...
not {weather, Interlaken, Switzerland} but
{weather Interlaken, Switzerland} and it will work fine.
See example above.
;-)
Joest
anyone?
Okay, this is the senario. I am the admin for a site and have a androi / iphoe app developed.
The site is: www.nextup.ch and it already has a weather module. I want to include the weather into the app as well but the app cannot read the module, so I need a plugin so I can link to a conten in the app and the content page shows the weather in the app. I created a k2 category and item for waether and added: {weather, Interlaken, Switzerland} into the text field of the item. This works for viedeo üplugins so it should work with your pugin.
I have contacted the hosting admin and he assured me that : allow-url-fopen was on.
But the plugin still does not work. when I click on the menu item to open the weather content all I get is : {weather, Interlaken, Switzerland}.
Any ideas on what I am doing wrong?
;-))
What do you want to do? If you just want to check configurationdetails you´re already looking in the right spot. E.G. if our module doesn´t work - check for "allow-url-fopen" for example - you´ll find that informarmation right there. Or check for "curl" ...
Joest
I went to admin panel->help->system info->php information and cannot find a php.ini.
do I have to make one?
Never done that so what do I have to put in it and where does it go?
Thank you for any ideas. I would really like to get this to work so I can intergrate into a android / iphone app.
Cheers
Fred
you re right. we never tested it with 2 or more tags in one line. It is fixed with version 1.8.
Thank you very much.
hmm - schwer zu sagen. Schalte mal den Debugger (Error-Meldungen in der Php-ini) ein um dem Fehler auf die Spur zu kommen.
Ciao Joest
ich bekomme das Wetter-Modul mit den Versionen 1.6 oder 1.7 unter Joomla 1.5 nicht zum Laufen. Sobald das Modul aktiviert ist, wird die ganze Webseite (es erscheint nur noch eine weiße Seite) nicht mehr angezeigt. Es wird auch keine Fehlermeldung ausgegeben.
Allow-url-fopen steht in der PHP.INI auf ON.
Auch die Auswahl eines anderen Templates brachte das gleiche Ergebnis.
Kennt jemand das Problem und könnte mir einen Tip geben, was ich noch tun könnte?
Besten Dank für die Unterstützung.
Viele Grüße.
Dirk
It all goes horribly wrong if an article contains more than one tag, e.g.
The weather in {weather bedford,uk} is not the same as {cambridge,uk}.
This is because the preg_match_all is greedy and matches one tag as:
{weather bedford,uk} is not the same as {cambridge,uk}
If you change line 54 in googleWeather.php to include the ? operator, it works perfectly.
preg_match_all('/\{weather (.*?)\}/',$row->text, $matches);
Best Wishes
Nick
sorry - but you have to talk to google ;-)
Google doesn´t supply weatherinformation for your locations. cyprus is covered, but thats it ... We can´t do anything about it, we just using the information google is offering ...
ciao joest
North Cyprus
Northern Cyprus
Girne,Cyrpus
Kyrenia,Cyprus
Kasiyaka,Cyprus
Hallo Jürgen,
auch bei Dir vielleicht ein Update von / bei Deinem Provider? Überprüfe die Einstellungen der php.ini bzw. sprich mit deinem Provider.
Ciao Joest
danke für einen Hinweis
mfg
Jürgen Langrock
hmm - Update vom Provider? Hast Du was verändert?
Ciao Joest
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/lacrete15690/www/plugins/content/googleWeather/googleWeather.php:117 Stack trace: #0 /home/lacrete15690/www/plugins/content/googleWeather/googleWeather.php(117): SimpleXMLElement->__construct('_getWeather(Object(stdClass), Object(JObject)) #2 [internal function]: plgContentgoogleWeather->onContentPrepare('text', Object(stdClass), Object(JObject), 0) #3 /home/lacrete15690/www/libraries/joomla/event/event.php(46): call_user_func_array(Array, Array) #4 /home/lacrete15690/www/libraries/joomla/event/dispatcher.php(115): JEvent->update(Array) #5 /home/lacrete15690/www/libraries/joomla/html/html/content.php(37): JDispatcher->trigger('onContentPrepar...', Array) #6 [internal function]: JHtmlContent::prepare('
Das Problem ist 1&1. Bei 1&1 ist allow_url_fopen grundsätzlich abgeschaltet. Damit sind ajax calls zu anderen Seiten nicht möglich. Auch curl funktioniert nicht richtig. Um das Plugin unter 1&1 zu verwenden, muss man im Wurzelverzeichnis von Joomla eine php.ini Datei anlegen mit folgendem Inhalt: allow_url_fopen = on
thank you for your bug report. Indeed the was a bug in the XML file with Jomla 1.5. I fixed it and uploaded a new Version.
Only Line 76 is for Joomla 1.5. Line 41 was correct.
You have to know, that in Joomla 1.6 all plugins are installed in their own folder (like Modules)
I modified 2 lines in googleWeather.xml:
in line 41:
directory="plugins/content/googleWeather/icons/"
I changed it to "plugins/content/icons/"
and line 76:
directory="plugins/content/googleWeather/"
I also changed that to "plugins/content/icons/"
Now everything seems to be working OK.
Best Regards,
Luc
der server ist von 1und1
ps.: hab zur zeit das wetter.com modul in verwendung, jedoch gefällt mir das google weather modul 1000 mal besser! ;-)
ciao thomas
Hi Thomas,
ja, stimmt ;-))
Im Ernst (am Ort liegt es nicht, das ist ok so) - wo liegt die Seite? Wer hostet die? Vielleicht noch ein Link auf die Seite ...
Ciao Joest
Bekomme aber immer noch die fehlermeldung:
"Unable to get weather data from Google.
Service is offline."
als ort verwende ich: "Wildenau, Upper Austria"
Danke schon im voraus!
lg Thomas
hi marchal,
thanx for your hint. Please make sure you download our new version 1.7 (compatible to joomla 1.5 & 1.6) and fixed "french-bug".
ciao joest
you must change the letter " r" (Vent : SO ŕ 21 km/h)
by the letter "à"(Vent : SO à 21 km/h)
kleiner Fehler
Sie müssen den Buchstaben " r "
durch den Charakter ändern "à"
thank you for this plugin
Für gut eine Stunde lief das einwandfrei, dann ließ sich die Seite nicht mehr laden und seitdem erhalte ich, auch wenn ich nur von einem Ort die Daten haben möchte, keine Daten mehr... Hmm, kurios ;-)
hmm - schick uns doch einen Link auf Deine Seite und sag uns mit welchem Ort Du die Fehlermeldung bekommst - sonst können wir kaum helfen ...
Ciao Joest
Warning: modGoogleWeatherHelper::getData() [modgoogleweatherhelper.getdata]: Node no longer exists in .../modules/mod_googleWeather/helper.php on line 16
Gestern war dieser Fehler nicht da aber heute habe ich es wieder.
Hat jemand eine Lösung?
Danke,
Roland
Hallo A. Lange, danke für den Hinweis. Schlamperei ... habs gerade berichtigt, die letzte Zeile ist uns da irgendwie reingerutscht, gehört da natürlich nicht hin. Danke! Ciao Joest
Parse error: syntax error, unexpected $end in …\modules\mod_googleWeather\helper.php on line 42
Nach dem entfernen der letzten Zeile in der Datei helper.php funktioniert das Modul wieder ohne Problemm.
Gruß A. Lange
Hi everybody, please make sure to download our new version 1.6. (Deinstall old version, install new version) Google doesn´t always provide complete weather data for every location in the world. In that case you did get a nasty error with our weather module ... With version 1.6 this wont happen anymore ;-) Plus Iconsets coming with an additional icon. Ciao Joest Ps.: If you like what we are doing, drop us a line and / or vote for our plugin / module on joomlaextensions ;-))
Hi Michael, there are different ways to tell your webserver what is allowed and what is not. Depending on your Webhoster - some are pretty restrictive and don´t want you to play with these things ... - you can do that via your administration backend or like cruisis hint via php.ini. Always good to have a quick look into your phpinfo ;-) If your hoster says "allow_url_fopen=on" you´ll be fine, no need for further actions. ciao joest
i also have had that obscure error "Unable to get weather data from Google. Service is offline."
I tried to play around, tried to runn the DWD-weather module but it also does not work.
Then i did the most simple thing: googling for the msg and went to the this site. What wonder ;)
Ok, i just started to try the PHP-Code solution but before i tried the PHP.INI hint from cruisi, 12.11.2010. that worked.
So, ist there any differerence between this solution and the basis setting by the hoster that says "allow_url_fopen = on"? I got that msg by phpinfo()
thanks in advance and cheers... michel
yes, that´s the plan ;-)
Thanx again. As soon as we find some spare time we will provide an update. Come back by the end of the week.
Ciao Joest
Regards
Andrea
thanx a lot! Strange that nobody posted that problem earlier ...
Ciao Joest
in the file mod_googleWeather.php
you have this line:
$output .= "".str_replace(":",":",modGoogleWeatherHelper::getData($current->wind_condition))."";
but on some locations, the "wind_condition" doesn't exist.. so just replace that line with:
if ( isset($current->wind_condition)){
$output .= "".str_replace(":",":",modGoogleWeatherHelper::getData($current->wind_condition))."";
}
Regards
Andrea
tried the link you provided, and you are right - the xml tag for condition data is blank.
Funny thing is it changes, sometimes it is 1 location the next day its another location.
Maybe a small idea if you someday makes "next version" : if condition = blank, then a special icon with a "?" instead of the "!" warning ;-)
Thanks again for sharing this plugin.
cheers
Ole
Hi Andrea,
thanx. Yes - i just tried the same. I changed location on my site to Brindisi - and got the same error. Hmmm. Will look into it, will get back to you.
Ciao Joest
the issue looks to be located to my location...
if i use the location "brindisi,italy" or just "brindisi" i have this error.. changing location, it seems to work... (for example, from brindisi,italy to bari,italy)
i'm using joomla 1.5.22
the website is:
http://janko67.dnsalias.org/bpi (click on the tab "meteo" in the menu")
i just started to work on the website since few days, but yes.. according to the old administrator, it worked fine in the past.
any way, as i wrote before, looks to be a quite common error...
http://www.google.it/search?q=Warning%3A+modGoogleWeatherHelper%3A%3AgetData%28%29+[modgoogleweatherhelper.getdata]%3A+Node+no+longer+exists+in+mod_googleWeather%2Fhelper.php+on+line+14&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:it:official&client=firefox-a
Regards
Andrea
Hi Andrea,
hmmm - first time somebody posting this error. Too small information to help ... Come back with more infos:
What environment are you using? Link to your site? Did you use the module before (without errors)? ...
Ciao Joest
Hi Ole,
thanx for coming back. Try your wanted location directly on this url (change copenhagen to your location):
http://www.google.com/ig/api?weather=copenhagen&hl=dk
For a lot of smaller cities google doesn´t deliver complete or even any data at all ... Just try next bigger city.
Ciao Joest
regarding the danish funny chars, I found it is due to the encoding, I tried to change the ISO-8859-2 to ISO-8859-1 and now got the danish "funny" letters encoded correctly.
Now I only have one "problem" outstanding, sometimes when used on certain locations it reports an "!" picture, and the weather description is replaced with "--" eg :
--- 11 oC
Humidity: 96%
Wind: SW at 6 mph
I am not sure how this occur, but looks like Google returns a value that dosnt trigger a desc. plus graphic.
cheers
Ole
Warning: modGoogleWeatherHelper::getData() [modgoogleweatherhelper.getdata]: Node no longer exists in /var/www/bpi/modules/mod_googleWeather/helper.php on line 14
how can i fix it? please help.
googleing fot that problem, lots of websites have the same issue...
Regards
Andrea
I am a very happy user of the google weather plugin, and want to thank you for making it availeble.
I have one small problem with it tho, I am using it on a danish site , and as you might know we danes are a little strange ;-) When I select danish or autodetect language, saturday (Lørdag) and Sunday (Søndag), have the letter 'ø' replaced with an "ř"
danke für Feedback - hilfreicher Tipp für viele Nutzer...
(by the way: inzwischen zählen wir knapp 35 000 (!) Downloads von unserem Wetter Modul und Plugin - und dabei zählen wir erst seit Anfang 2010 ;-)
Ciao Joest
ich habe das super Modul auch bei 1und1 installiert und eine php.ini-Datei in mein Root-Verzeichnis gelegt, die den Inhalt "allow_url_fopen = on" hat. Schwups, schon funktioniert es.
Viele Grüße,
cruisi
Thanks for finding out, seems i have to wait until Les Gets is important enough for the big G :)
Grtz
Huub
Hi Matt,
hmm - service is definitly not offline, but - for some reason your site doesn´t receive the data anymore. Check with your provider, any silent update recently? Check especialy on "allow-url-fopen" or CURL. Did you modify the code? Are you using our latest version? Come back and let us know ...
Ciao Joest
Please view at: hba86.com
What is wrong? Is there a fix?
Thanks,
Mattias
Hi Huub,
can´t see anything wrong - except ... seems like google weather data is just not complete for les gets, current_conditions is missing ...
http://www.google.com/ig/api?weather=les-gets&hl=en
Same with Morzine and other small towns. Sorry - we can´t do anything about it, talk to google ;-)
Ciao Joest
Now i see! I missed an 's' in my first comment. The website is http://www.lesgetsinfo.com.
Thanks again.
Huub
E-mail routing problem... just entered another e-mail adress.
Thanks
Huub
please check posted adress - or your site is down ;-(
to little info to help ...
Joest
Thanks for the beautiful plugin, but at this moment i get an exclamation mark in stead of the correct weather condition. What could be wrong? For an example: www.lesgetinfo.com
Kind regards,
Huub
ja - das ist sicherlich möglich. Wir wollten aber ja gerade eine möglichst schlanke und einfache Anwendung, ohne SchnickSchnack. Frontpageediting ist für unser Modul / Plugin nicht geplant.
Ciao Joest
Meine Frage ist, kann man im Plugin für den Ort auch eine Variable verwenden ?
Es gibt mehrere Orte, man wählt einen Ort und das Wetter soll für den gewählten Ort erscheinen.
also anstatt: weather, berlin - weather, ort$
wobei die Variable ort$ verschiedene Werte haben kann.
Danke !
Gruß Falch B.
Hi Bernie, hi Thierry, hi Martie,
thanx for coming back and charing ;-)
Ciao Joest
I found out why the module was giving the previous error. It was a conflict with another weather module.
Thx,
Bernie V
Fatal error: Cannot redeclare class modGoogleWeatherHelper in /home/a8163909/public_html/modules/mod_googleWeather/helper.php on line 9
What could it be?
Regards from Belgium.
Bernie V
Thanks for your response. Suva works fine! It was simple...sur i was tired !
Great plugin
Regards
Albertt
Hi Philippe, hi Exenia,
Philippe thanx for helping. To keep our module more flexible i´d rather change line 12 like this:
$encodings = array ('ru' => 'windows-1251','tr' => 'ISO-8859-9','ar' => 'ISO-8859-6','el' => 'ISO-8859-7'); to this: $encodings = array ('ru' => 'windows-1251','tr' => 'ISO-8859-9','ar' => 'ISO-8859-6','el' => 'ISO-8859-7','it' => 'ISO-8859-1','fr' => 'ISO-8859-1');
But - you´re right - in your case and for Exenia (Italy) - your modification will work just fine.
Thanx again and ciao
Joest
Change ISO-8859-2 to ISO-8859-1 and the accents wiil be ok :)
Vielen Dank für deine Antwort. Jetzt habe ich verstanden wofür das Autodetect Language gut sein soll :)
Thanks a lot for the great module and plugin.
Hi Vicki,
thanx for helping, but ...
your hack is not an option really ;-(
I´d rather leave the code, turn auto-detection off and set language manually in the module-backend to pt-pt. In your case (country) this autodetection would work with your hack, but not for most other users. For example - your hack and autodetection for my site / country (german ;-) will display the weather in english ... (joomla gives back de-DE, but google expects de). So - just try your individual combination before deciding to use your hack AND autodetection ...
e.g. http://www.google.com/ig/api?weather=lisboa&hl=pt
http://www.google.com/ig/api?weather=lisboa&hl=pt-pt
ciao joest
If you want the CSS code, do let me know.
Hi Exenia,
thanx for feedback. Will look into the accent issue - check again here.
(give us a little time so)
Ciao Joest
Just one issue: Italiabn accents do not display correctly: in fact, "ŕ" is loaded in stead of "à"!
Hi Pedro,
sorry - looks like google doesn´t speak portugese - precise: only a little bit ;-(
http://www.google.com/ig/api?weather=lisboa&hl=pt
Ciao Joest
I put pt in language name but continues to appear cloudy, sunny etc, only changes the days of the week!
Thank you
And Italian language is "IT" not "ITL"
iso code for spain is "es" and not "sp" ...
ciao joest
Just one question how do I change the lenguage to spanish??
I try on the module and plugin to put sp but nothing changes...
Greetigns
Ruben
hi albert,
nadi is probaly too small. obviously google just hasn´t nadi on the list and doesn´t supply any weather data for nadi (maybe just temporaly not - maybe worthwhile checking again later). use suva in backend, the weahter shouldn´t be that different ...
joest
I cannot perform this tool (great!) with Nadi/Fidji. Do you now why ?
best regards
Albert
Vielen Dank für diesen kleinen Plugin! :-)
Wäre es möglich, die Windgeschwindigkeit in km/h statt mph anzuzeigen?
Danke!
--Pierre
Hi Vlada,
hmmm - i recommend to change your hostingservice ;-)
Free hosting has too many limitations ...
If "allow-url-fopen" is always off check on CURL. Our module / plugin will try in your enviroment to use curl for working with the external xml-data from google, but obviously ...
ciao joest
Is there some other way to change it.
I use joomla 1.5 and module gives me error mesagge (warning.png) that I set...
If you need more information, please ask me cause I don't know what to write. I'm beginner.
Hi Vlada,
difficult to help here - no link to your site, no further information about your environment ... Make sure to read the README-file (comes with the download) ...
Ciao Joest
This module works fine on localhost, but it doesn't shows weather on live (on server).
Where could be a problem...
great module! I really like the simpleness of the output. No fancy bling-bling animations. Just plain simple text.
One question:
Would it be possible to display the observation-time aswell? (The current_date_time variable)
So the output would be like:
Observed at: 10:50
Mostly Cloudy
Wind: NW at 5 m/s
Temperature: 18 deg.
Humidity: 75 %
For a future version, it could also be great, if you from the module-administration could choose what parameters you would like to show (like: "Show humidity [YES/NO]").
But overall a great module. Thanks a lot! :-)
Regards
Peter
Denmark
Thatch
hi stig,
thanx stig
(but it would help to read a few comments on this page or at least the readme file ...)
;-))
-> backend / configuration / set language to "what ever you want" (iso-code) like "no" in your case. google provides pretty much every language on the planet ... (not our plugin or module).
http://www.google.com/ig/api?weather=oslo&hl=no
our module / plugin just takes the xml-file from google-weather-api, makes it easy to integrate in your joomla installation, gives you a few easy configuration options and delivers a nice output (which is also easy customizable via css and different icon sets).
ciao joest
This is a great weather-module. But is it possible to change the language to f.ex. norwegian? Or at least edit some files to get norwegian language?
herzlichen Dank für die Rückmeldung!
Sonnige Grüße aus Berlin
Joest Feenders
Grüße Sepp
1und1 ist nicht grundsätzlich der Buhmann ... kommt auf das gebuchte Paket an. Google-Wetter funktioniert standardmäßig NICHT mit den "normalen" Hostingpaketen bei 1&1. Möglicherweise funktioniert: ini_set('allow_url_fopen', 'on'); http://hilfe-center.1und1.de/sp-service/sofort_hilfe_faq/technische_fragen/web_hosting/scripte_cgi_php_asp_etc_/tipps__tricks/4.html
Gruß Joest Feenders
ich wollte das Modul hier einbauen:
http://garten360.de/component/content/article/2-praechtiger-rosenduft-auf-der-landesgartenschau-baden-wuerttemberg.html
Leider erscheint die o.g. Fehlermeldung. Liegst daran, dass die Seite bei 1und1 gehostet ist?
Gibt es eine Lösung?
Viele Grüße, Sepp
leider erst jetzt wieder Gelegenheit mich um Dich zu kümmern. Verwendest Du ein aktuelles Plugin von uns? Hast Du das Plugin vor der Neuinstallation deinstalliert? Hast Du den Code verändert?
Joest
danke für die sehr schnelle Anwort.
Leider brachte eine Neuinstallation keinen Erfolg. In der Tat fehlen Teile des Path. Habe darauf hin versucht in der PHP und der XML-Datei des Plugin einen direkten Path zu einem der Icon Templates zu legen - kein Erfolg. Ist schon merkwürdig - ich befürchte, da werd ich ohne die schönen Icons leben müssen...denn ich hab keine Ahnung woher der Path zu meiner Top-Domain herkommt. Hab sonst auf der gesamten Seite keine Pathprobleme. Das ist das erste Mal.
Falls jemand noch eine Lösung weis? ich wäre sehr dankbar für Hilfe
ah - endlich mal jemand der gleich einen Link postet ... Hmmm - Sprache ist ja jetzt ok bei dir - woran lag es?
Keine Icons - vergleiche mal den Quelltext von der Ausgabe unseres Plugins auf diese Seite und bei Dir. Bei Dir fehlt ja z.B. der Pfad zu den Icons. Bei Dir taucht lediglich das hier auf:
<img src="http://www.erdpunkte.de/">
das kann nicht funktionieren. Auf dieser Seite dagegen:
<img class="plg_weather" src="/plugins/content/googleWeather/modern/mist.png" alt="Leichter Regen" style="margin-right: 10px;" align="left"> (bzw. halt ein anderes Icon - je nach Wetterlage). Irgendwas ist bei Dir verquer. Ggf. noch mal deinstallieren und neu einhängen. Aktuelles Plugin benutzen. Bitte berichte doch noch mal.
Ciao Joest
Die Icons erscheinen aber nach wie vor nicht. Wer kann mit helfen?
Danke für Eure Mühe.
Peter
danke für das sehr nützliche Plugin.
Ich habe es eingebaut auf den Seiten, aber die Sprache wird sowohl mit autodetect als auch manuell nicht erkannt.
Ich habe, um Deutsch zu erhalten im Plugin-Backend sowohl "de" als auch "ger" probiert. Nichts half.
Und ich bekomme, obwohl die Funktion auf "Ja" steht keine Wetter Icons angezeigt. Wer kann helfen.
Hier ein Beispiel:
http://www.erdpunkte.de/länderdaten-indien.html
Hi Eugen_2, hi Flachi,
abhängig von Eurem verwendeten Webspace - bitte mal checken was der kann bzw. für Features hat ("allow-url-fopen", curl ...?). Evtl. müsst Ihr das einfach nur einschalten, vielleicht gibt Euer gebuchtes Paket das schlicht nicht her. Damit diese Wettergeschichte funktioniert müsst Ihr ja eine XML-Datei von einer externen Quelle holen können, einige Webhoster, bzw. gebuchte Webpakete erlauben das nicht.
Joest
Weiß jemand was zu tun ist??
Unable to get weather data from Google.
Service is offline.
*********
und bin bei lima-city, auch da funktioniert anscheinden das modul nicht, oder hat hier jemand einen tipp???
Hallo Sandra,
Google liefert die Daten - woher die ursprünglich stammen, kann ich Dir nicht sagen. In der Regel sind die Wetterdaten recht gut, aber offensichtlich ist Google doch nicht allwissend (auch irgendwie beruhigend ;-)
Joest
Haben die Forecast mal ausgeblendet... aber wäre schon schöner mit....
Hi Roland,
ähem ... http://www.google.de/search?q=texttransform+lowercase ;-)
Oder schau gleich in SELFHTML:
http://de.selfhtml.org/css/eigenschaften/schrift.htm#text_transform
Bitte schon mal selber etwas schlau machen. Sieh Dir den Download von unserem Google Wetter an. Dort gibt es auch eine weather.css und eine README (Der Name ist Program ;-)
In der weather.css findest Du einige Vorschläge für die Erweiterung Deiner CSS-Anweisungen in Deinem Template ...
Ciao Joest
erstmals vielen Dank für das Plugin!
Wo finde ich die CSS bzw. wie funktioniert das mit lowercase. Danke für deine Rückantwort.
Gruß
Roland
Hallo Roland,
unser Modul / Plugin übernimmt die entsprechenden Daten und Texte vollständig von Google - z.B. diese für Berlin
http://www.google.com/ig/api?weather=berlin&hl=de
und kümmert sich um die Ausgabe. Wie die Ausgabe erfolgt, kannst Du frei bestimmen. Wir liefern ja nur ein paar Vorschläge - z.B. mit verschiedenen Iconsets und CSS-Angaben. Per CSS kannst Du die Texte auch klein ausgeben (text-transform: lowercase;).
Ciao Joest
Ich möchte das bei google weather so ändern das auch alles klein erscheint (z.B. bewölkt etc.).
In welchem Verzeichnis finde ich die deutsche Sprachdatei?
Danke für die Hilfe.
Gruß
Roland
http://hilfe-center.1und1.de/sp-service/sofort_hilfe_faq/technische_fragen/web_hosting/scripte_cgi_php_asp_etc_/tipps__tricks/4.html
Hallo Ralf, hmmm - hab mal unser Wetter oben auf Freiburg geändert - kein Problem mit der Anzeige. 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-Datei von einer externen Quelle holen können. Bei einigen Webservern / Hostingpaketen / Hostern ist das wohl ein Problem, die handhaben das teilweise sehr restriktiv. Einfach selber mal überprüfen oder nachfragen was bei Dir genau läuft bzw. erlaubt ist. Ciao Joest
Service is offline.
Kommt bei mir.
Bin bei 1und1 Hoster.
Hab mal Freiburg, Germany eingetragen.
Egal ob Plugin oder Modul
hi martijn, thanx for the flowers! hmmm - i can´t really help without any more information. look at our examples on this page, we are showing weather conditions for two cities - no problems at all ... ciao joest
However I have problems putting two (or more) cities weathers in one article when using the plugin.
I think it has to do with the end "}". Maybe it is better to have {weather} Berlin{/weather}
Hi Axel,
hmmm, so kann ich nicht helfen. Schick doch mal einen Link auf die Seite. Ansonsten: Du nutzt das aktuelle Modul? Aktuelles Joomla?
Zu den Piktogrammen: Die Ausgabe erfolgt in einem DIV-Container mit der Klasse „plg_weather". Dadurch lässt sich die Ausgabe über das CSS-Template flexibel anpassen. Natürlich kannst du auch die Größen der Icons ändern oder vollständig austauschen ...
Ciao Joest
das Wettermodul ist ja wirklich einfach zu händeln! Vielen Dank dafür! Ich habe aber drei Bindestriche vor der aktuellen Temperaturanzeige. Wieso? Was kann ich da machen?
Kann ich auch die Größe der Pictogramme ändern?
Viele Grüße
Hallo Chris,
kein Problem - unter Parameter auf "Autodetect Language" stellen - oder manuell eine Sprache einstellen.
Gruß Joest
Zu erst ich erschulde mich fur mein Deutsche schreiben...
Ich mochte di sprache endern im "Plugin für Google-Wetterdaten "
Ist eine moglichkeit fur das?
Ich habe probiert nun geht das nicht. Immer schreibt es mir di daten auf English...
Vielen dank
hmmm - Du solltest den Hoster wechseln ;-)
Nein - im Ernst ... das sind ja externe Daten die wir einlesen. Wie willst Du das anders machen? Dein Webserver ist offensichlich sehr restriktiv und verbietet grundsätzlich Zugriff auf externe Quellen. Mir fällt da nicht wirklich was ein ...
Ciao Joest
CURL brauch ich ja nicht unbedingt, gibt es die Möglichkeit am modul etwas zu ändern das es auch ohne mbstring läuft?
Es geht um Zeile 50 in mod_googleWeather.php
Danke
dankeschön!
Google liefert die Wetterdaten nur für 5 Tage
(heute und die nächsten 4 Tage) ...
Ciao Joest
kurz und knapp, suuper easy.
aber:
da wir ein jährliches openair event anbieten, wo die Besucher die Anreise entweder mit historischem Motorrad oder im Auto planen - je nach Wetter, wäre eine weitere Vorschau (z.B. 10-Tage-wetter) ganz hilfreich. Gibt es die Möglichkeit den Blick weiter voraus zu werfen?
(ich weiß wie sicher solche Prognosen sind aber so ne Tendenz zu ahnen ist doch auch was ...)
dankeschön schonmal.
Hi Andrew,
thanx for the flowers ;-)
The module is "only" showing what google is delivering.
http://www.google.com/ig/api?weather=berlin&hl=en
http://www.google.com/ig/api?weather=berlin&hl=de
The module should detect what environment it´s running in and catch and show the right data - depending on a couple of other things (configuration joomfish, configuration joomla, your browser ...) or copy the module for each language and set it manually to designated language. come back (sitelink?) and let us know your progress.
joest
Thanks for this module... it is great!
I'm using it with a multi-language site ie. joomfish for English, German & French but Joomfish does not translate the information like (Sunny, Humidity,Wind) inside the module itself. I think Joomfish uses xml files for translations for modules? Does this module. How can I get it to work with Joomfish in German and French?
Thanks in advance for any guidance,
Andrew
welches Hostingpaket benutzt Du? Bekommst Du eine Fehlermeldung? Benutzt Du unsere aktuelle Version?
Joest
Hi an alle,
bitte aktuelle Version 1.5 benutzen. Viele Anfragen bezogen sich auf die Fehlermeldungen, wenn Google keine Wetterdaten liefert. In der aktuellen Version ist die Fehlermeldung individuell konfigurierbar.
Hi to everyone,
we still get a lot of feedback because of error message if google doesn´t deliver any weather data. make sure you´re using the latest version of our module / plugin (1.5) which allows you to customise these error messages.
joest
hi jonny dee,
you're using an old version - please make sure to use current version 1.5.
joest
PHP Notice: Undefined property: stdClass::$weather_language in
/home/account/public_html/plugins/content/googleWeather.php on line 32
Danke
One correction though: on line 76 of googleweather.php encoding for greek is
'el' => 'ISO-8859-7'
Thank you for your excellent work
Danke
http://www.ollanner-radteam.de/
Melliand
müssen wir uns wohl durchzittern !
in den Augen von Google offenbar schon ;-) Wir nutzen mit Modul und Plugin die Daten von Google:
http://www.google.com/ig/api?weather=berlin&hl=de
Wenn die mal falsch sind ... - i.d.R. funktioniert das sehr gut, aber augenblicklich sind bei denen wohl einige Rechner eingefroren ...
Joest
Anzeige: Regen
Bei -17 Grad 8-)
Sind wir ein exotischer Ort? Auch in Berlin in letzten Tagen:
Error
ja - ab und an liefert Google einfach keine Daten. Insbesondere für exotische Locations und kleinere Orte kommt das öfter mal vor - die größeren Städte sind normalerweise immer gut versorgt. Wir werden für diesen Fall die Ausgabe ändern - irgendwas wie "Zur Zeit keine Wetterdaten vorhanden" oder ähnlich, mal sehen.
Ciao Joest
so wie auch hier bei euch oben auf der Site zu sehen. Und
dies, obwohl das Modul monatelang einwandfrei funktioniert
hat ... Liegts an Google oder wie kann dies beseitigt werden ?
Alles Gute
Pèdà
Plugin und Modul sind Open Source (GPL v2) und können überall eingesetzt und beliebig verändert werden. Die Wetterdaten sind Teil der Google API. Sie stammen meistens von staatlichen meteorologischen Instituten. Google erlaubt ausdrücklich auch die Verwendung seiner Daten auf kommerziellen Webseiten.
Nun meine Frage: Darf ich das auch auf einer geschäftlich genutzten HP einbinden oder gibt das Ärger ?
Grüße Werner
Premature end of data means, that the complete XML file was not transfered. There are 2 possible issues. 1: The local php configuration was changed. 2: google delivers a corrupt xml-file for your region.
I have been using the plugin for some time and it have been working great, but yesterday I have gotten this error, Anyone have any idea what the problem can be?
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2: parser error : Premature end of data in tag html line 1 in /home/xx/public_html/plugins/content/googleWeather.php on line 81
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in /home/xx/public_html/plugins/content/googleWeather.php on line 81
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/xx/public_html/plugins/content/googleWeather.php on line 81
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/xx/public_html/plugins/content/googleWeather.php:81 Stack trace: #0 /home/xx/public_html/plugins/content/googleWeather.php(81): SimpleXMLElement->__construct('?') #1 [internal function]: plgContentgoogleWeather->onPrepareContent(Object(stdClass), Object(JParameter), 0) #2 /home/xx/public_html/libraries/joomla/event/event.php(67): call_user_func_array(Array, Array) #3 /home/xx/public_html/libraries/joomla/event/dispatcher.php(170): JEvent->update(Array) #4 /home/xx/public_html/components/com_content/views/article/view.html.php(102): JDispatcher->trigger('onPrepareConten...', Array) #5 /home/xx/public_html/libraries/joomla/cache/handler/view.php(98): ContentViewArticle->display() #6 /home/xx/public_html/libraries/joomla/application/component/controller.php(308): JCacheView->get(Object(ContentViewArticle), 'display') #7 /home/xx/public_html/components/com_content/controll in /home/xx/public_html/plugins/content/googleWeather.php on line 81
ABER beim heutigen Wetter (gefrierender Regen) möchte das Modul die Datei icy.gif anzeigen und die gibt es leider nicht.
Habe dann die "flurries" (flurries.gif) genommen.
hello roy, because many clients ask for it, I included a recalculation for the temperature to the defined unit in version 1.4. If you now choose a unit in the plugin or module configuration the desired unit will be shown regardless of the language.
thank you for your extension, I too would like celcius on the forcast temps, as I have celcius on todays.
many thanks
Roy
I am using the module and was wondering if there was any way to get the forecast temperatures in Celsius. Today's temperature is in Celsius however the forecast temps are only in Fahrenheit. I have tried all the different settings in the modules configuration with no success.
setzte euer Plugin seit ein paar Wpchen auf miener Seite ein. Hat bis jetzt immer wunderbar funktioniert. Seite heute kommt aus heiterem Himmel nur eine Fehlermeldung...
Hier kann man es sehen:
http://diomedea.de.dd6234.kasserver.com/diomedea/
was kann man da machen?
Viele Grüße,
Sebastian
hi sonya,
yes ;-)
Google is just not delivering any data for hamilton island. not too familiar with that side of the world - any bigger city around? try that under settings in the backend.
joest
Could not get weather informations for ....
I'm trying to load weather for HAMILTON ISLAND, AUSTRALIA.
Thanks so much
Sonya
Hallo Schaukn,
so - jetzt sehe ich endlich mal den Fehler bei Dir. Ähnlich wie bei Thesus (nehme ich an). Condition wird nicht angezeigt. Bitte mit Google meckern ... Wenn Du mal folgende URL aufrufst, siehst Du warum:
http://www.google.com/ig/api?weather=Guanajuato&hl=de
Condition data ist (zumindest im Augenblick mal gerade) leer, Google liefert einfach keinen Wert. Dann kann unsere Modul / Plugin natürlich auch nüscht an der Stelle ausgeben. Das Feld icon data ist ebenfalls leer ... Das Modul / Plugin verarbeitet ja nur die Angaben, die es bekommt - bekommt es nix ...
Workaround: nächst größere Stadt als Wetterdatenlieferant eingeben. Insbesondere bei kleineren oder exotischen Orten gibt es immer mal Probleme. Vielleicht erweitern wir das bei Gelegenheit noch mal um irgendeine Ausgabe wie z.B. "z.Z. keine Wetterdaten vorhanden" oder ähnliches.
Ciao Joest
wir sollen wir da helfen??? Ohne Link, ohne nähere Angaben...
Wir helfen ja gerne - aber etwas genauer brauchen wir es schon.
Ciao Joest
erstmal vielen Dank für dieses wirklich gut gelungene Modul / Plugin.
Leider bekommt man statt des Wortes Temperatur nur eine Error Warnung. Hab diesen Fehler auch bei anderen Anwendern dieses Moduls / Plugins gesehen.
Wie können wir diesen Fehler beheben ?
Mit freundlichem Gruß
Thanks for a great weather-module! I am from Sweden and I discovered that the Swedish character å doesn't display correctly. To correct it I have to put in 'sv' => 'ISO-8859-1' in mod_googleWeather.php.
Regards
Peter Almgren
schau mal hier: http://doc.claroline.net/de/index.php/Was_ist_eine_php.ini-Datei%3F_Wo_finde_ich_sie%3F
Joest
"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
Hi Sedat,
thanx for coming back and 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
Hi Andrew,
thanx for the flowers ;-)
I checked with Cartagena - no problems at all, weather shows as desired. Cartagena even works without supplementing country. sent a link for better help.
what do you mean with "third screen print"? You can easily 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
hi claudio,
thanx for posting. i´m surprised 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
Hi Reza,
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.
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 coming 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
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.
Hi Harry,
Path to the icon folder - but that´s not your problem.
Google just doesn´t supply 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.
Hi Harry,
send your client to us ;-)
Serious - did you check the path?
Send 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 too poor...
All i can see on your site - use the automatic language detection or set it to french. The module´s language education is better than mine (even so i did french at school, but - too long ago, hardly ever practiced) - module does speak french ;-)
(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.
Hi Juan, 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 an 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)
hi sushismb,
sorry - no, not really... i admit - only limited time to dive deeper into this encoding problem. still on our schedule so.
encoding problems -> japanese and cyrillic language...
anybody out there with THE helpful 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 sure you use an up-to-date xampp. Still getting errors? Please sent me your php-info via mail. I´d like a look.
Joest
mir ist aufgefallen, dass hinter dem Text z.B. Bewölkt der Doppelpunkt fehlt, was mich bei meiner Darstellung gestört hat. Lässt sich lösen wenn man im Modul die Zeile:
$output .= "".((modGoogleWeatherHelper::getData($current->condition)!="") ? modGoogleWeatherHelper::getData($current->condition) : "ERROR" )."";
mit dieser austauscht:
$output .= "".((modGoogleWeatherHelper::getData($current->condition)!="") ? modGoogleWeatherHelper::getData($current->condition) : "ERROR" ).": ";
thanks for your reply ,
I've tried what u told to me to do , but the result was the same , however i did some tests with other weather modules and I've tried plenty ,no one worked.
I'm using shape 5 city portal template
strange thing I was using your module successfully on another template and another Apache windows (xampp) server how can I inspect the cause of this problem ?
hi sushismb, hi igor, hi sedat,
sorry - too busy, no time to work on google weather, no solution so far. we´ll get back to you, promise. come back next week.
joest
Any update on the encoding problem?
sorry - missed somehow your reply. Did you try without using forecast? Still getting errors?
Joest
Hi Sedat,
welche Einstellungen verwendest Du? Hast Du unsere aktuelle Version (v1.2 vom 07.09.2009) im Einsatz? Ich habe es gerade auf unserer Seite getestet - keine Probleme mit türkischen Zeichen. Evtl. mal manuell auf "tr" als Sprache stellen.
Joest
ja den Urlaub habt Ihr auch verdient würde ich mal sagen!
Hat bei uns auch gedauert bis die neu Homepage online ging. Hier der Link.
http://www.aktifotomasyon.biz
Wenn Zeit vorhanden bitte mal nachschauen. Wir haben die Ursache immer noch nicht gefunden.
Grüsse und frohes schaffen
Sedat
hi sushismb,
setting "only celsius" effects only the current weather, not forecast (units in forecast are depending on your language). you need to change the code a little to have your forecast in celsius shown regardless what language you use: replace the code on line 76 in mod_googleWeather.php to this:
$unit ="C";
(make sure you have the latest version in use - we made a minor change today - still named version 1.2)
hmmm - japanese character problem - sounds like an encoding problem to me. will look into it.
joest
The "error on line 75" doesn't appear anymore, thanks!
By the way, even I select "only celsius" the forecast shows only F. You mentioned to comment out line 60 which I was not clear about. In the latest download, line 60 is;
switch ($params->get('temp_unit')) {
Do I comment that out with // ?
In addition, I am trying to use this module in Japanese 2 byte characters but it returns garbage. I tried to change the language to JA and even JP just to test but failed.
niels - thanx for detailed description. please download module again - we just made a minor change (no new versionnumber cause no other change than getting rid of xtrap). your error shouldn´t show up anymore.
joest
Thanks for the module! Seems to work fine except for the same error as shushismb: Undefined variable: xtrap, line 75 of the mod_googleweather.php;
- downloaded the module today (5-9-'09)
- installation and setup a breeze
- city: pescara (central Italy)
- then the error...
- checked the allow_url_fopen which is enabled (but I don't think it has anything to do with it)
- changed the forecast parameter to 'no'
- changed the auto-language detection parameter to 'no'
But no result...
Since I haven't got a clue as to the PHP code in the module, I would be gratefull for your help.
Would be gratefull for
Notice: Undefined variable: xtrap in modules/mod_googleWeather/mod_googleWeather.php on line 75
Thanks for your quick reply,
I'm using a testing local sever on windows platform, googleweather plugin is up to date,
log reporting turned to maximum in joomla admin back-end not in the plugin config
i think its some problem with foreach function it exceed 60 sec without executing
hi, thanx johan for coming back and posting your solution! we are using bigo captcha. tot ziens ;-) joest
by the way: which captcha module are you using here? nice...
sounds like an foul ie to me ;-)
seriously - a link would help. we tested in various browsers (+ browser-versions) - no problems. even ie behaved ;-))
joest
in Firefox the module show up in dutch, but in IE the module shows up in english.
Do you know the way to display the module in dutch in IE?
hi jonathan, if you want us to help - we need more information. A link would be fine. Did you use our latest version? Are you using "up to date" webserver? ... feel free to send an email if you don't want to see your infos here in public ciao joest
Notice: Undefined offset: 1 in /Applications/MAMP/htdocs/los_dev/plugins/content/googleWeather.php on line 48
Great little plugin though!
Hi Sarah,
hmmm - are you using the latest version of our plugin? when you say you turned error logs to maximum - you´re not talking about "our" errors? meaning - our plugin can show errors too if you allow to show via config. did you try that? what errors show up? please post a link to your site (if you don´t want to go public - use email)
joest
Notice: Undefined offset: 1 in docsroot\plugins\content\googleWeather.php on line 48
Do you have any idea why Im getting this ?
hi alejandro,
entschuldige - etwas lange leitung, hektisch hier ;-)
danke für deine rückmeldung zu joomfish.
katalanisch - hmmm, ich fürchte da können wir nüscht machen. google liefert kein katalanisch ;-(
joest
aber... katalanisch erkennt es nicht... was kann man tun?
http://www.altunacomunicacion.com/proyectos/cortijo/index.php/ca/
http://www.altunacomunicacion.com/proyectos/cortijo/index.php/de/
Hi alejandro,
für mehrsprachige Seiten hatte Dirk das Modul um die automatische Spracherkennung erweitert - keine weitere Konfiguration nötig.
Ciao Joest
habt ihr erfahrung wie es ist mit joomfisch sprachen ändert sich automatisch die modulsprache oder muss man ein modul für jede sprache configurieren
danke für eure arbeit
saludos aus spanien
siehe meine Antwort an Sedat - bei mir funktionieren auch türkische Zeichen. Ggf. Link posten - sonst kann ich nicht helfen.
Joest
Güneybatý yönünde 6 hýzýnda km/s
ý sollte ı sein
Yaðmur Ýhtimali
Yağmur İhtimali
Hi Sharon Arthur, after downloading and unpacking the module go to subfolder icons. just replace the pictures with the ones you like. make sure to keep the names. joest
I downloaded your google weather module and I really like it. Now, I would like to change the weather "icon image" to one of the three listed on your website. I appreciate your assistance. Thank you.
Antwort an Raubmuecke: In der aktuellen Version sollten die PHP-Warnungen nicht mehr erscheinen. Außerdem kann in den Modul- bzw. Pluginparametern auch die Fehlermeldung abgeschaltet werden.
Antwort an Lothar Wassermann: Die Sprache ist abhängig von der Sprache der Wetterdaten. Hierfür kann man eine Hauptsprache in den Parametern festlegen und die automatische Spracherkennung ausschalten. Standardmäßig wird versucht die Spache zu erkennen. Das Plugin geht noch einen Schritt weiter. Es nimmt die Spracheinstellungen des jeweiligen Contentartikels und erst danach die des Browsers.
vielen dank für dieses wunderbare plugin! leider stosse ich aber bei gelegentlichen netzwerkhängern o.ä. auf unschöne effekte wie ellenlange fehlermeldungen im frontend. wenn man die künftig optional unterdrücken oder in ein log schreiben könnte wäre fein.
Warning: file(http://www.google.com/ig/api?weather=d%C3%BCren&hl=de) [function.file]: failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in [...]/hp/modules/mod_googleWeather/mod_googleWeather.php on line 32
Could not load data from google!
In order to use google Weatherm, you must enable allow_url_fopen in php.ini.Alternatively you can install the php-curl extention.
Remember: PHP must be able to read external XML-files!
eine möglichkeit das modul vom caching auszunehmen wäre auch toll.
vielen dank! :)
Ich nutze es auf einer brasilianischen Site. Deshalb sollte ich die Begriffe übersetzen.
Können Sie mir denn erklären, wo ich den deutschen Text finde, denn dann würde ich dort einfach die Begriffe austauschen, denn hier in Brasilien brauche ich die metrischen Bezeichnungen.
Danke für das Modul und den Tipp.
Könnte Ihnen allerdings auch eine portugiesische Sprachdatei zur Verfügung stellen, wenn Sie mir erklären wie ich sie aufbaue.
Lothar Wassermann
www.piscinaecasa.com
entschuldige - etwas lange Leitung ... wir machen ein paar Tage Computerpause ;-)
Deine Fehlermeldung kann ich nicht nachvollziehen, bei mir klappt´s auch mit Izmir und türkischer Sprache ohne Probleme. Ggf. mal einen Link posten, dann lässt sich der Fehler vielleicht lokalisieren. Antwort kann etwas dauern ...
Joest
hervorragender Modul!. Wir haben den Modul installiert und als Standort izmir, Türkei angegeben.
Schauen wir uns diesen Link an "http://www.google.com/ig/api?weather=izmir,turkey&hl=tr" werden die einzelnen Daten in richtiger Codierung dargestellt. (utf-8)
Nur werden aber in diese Daten vorhanden türkische Buchstaben, nachdem sie von dem Modul separiert und verarbeitet worden sind, nicht mehr korrekt dargestellt.
Hat jemand einen Tip woran das liegen kann?
Einen Dankeschön an die Entwickler und Grüsse an Alle!
Sedat
Hi Gaetan, quick and dirty - change the "F" near the end of line 67 to a "C" - assuming you want english weather words, but Celsius to be shown. This part of the code is in charge for showing the correct units via automatic language detection (you can allow or disallow that in the backend administration of the module / you can also set manually your language - that will have effect to words and - yes, units too). The automatic language detection allows you to use that module on joomla-sites using two different languages ... With this little modification above - you can still use the automatic detection. Your module will speak your language, but will only show celsius now (in the forecast). For the current weahter - as decribed before - go to line 60 an comment that output out. joest
Thank you for the module, a true beauty.
I read one of your last posts on how to only get Celsius. It works for 'Todays weather' but not for the Three day forecast... Can we amend the code just to get Celsius ranges?
Thank you for the help. Great work!
Gaetan
habe die Zeile mit dem Inhalt Xtrap einfach gelöscht.
Danach hat es funktioniert.?!
Danke für die Mühe
Gruß
Jens
BRK Pappenheim
Hallo Schaukn, habe gerade auf Deine Seite (www.schaukn.de) geschaut - kann keinen Fehler sehen. Wie sah die fehlerhafte Darstellung aus (Screenshot)? Hast du was verändert? ¡Hasta luego! nach Mexiko ;-) Joest
danke fuer deine schnelle Antwort! Es handelt sich um die Seiten www.dekanatsjugend.com , hier ist die Darstellung korrekt und perfekt! Danke hierfuer!!!!
Aber bei der Seite www.schaukn.de habe ich ein Problem mit der Darstellung. Ich schrieb 'Guanajuato, Mexico', muss ich einen anderen Code verwenden?
Danke schon mal fuer die Unterstuetzung!
Schaukn
hmmm - was meinst Du mit "fehlerbehaftet" - wie sollen wir da helfen? Etwas mehr Informationen, vielleicht ein Link ... ggf. auch per Mail falls Du den hier nicht posten willst. Google liefert teilweise leider unvollständige Daten aus - da können wir nichts dran ändern - ist aber ohne weitere Infos so nicht bei Dir zu beurteilen ...
Joest
Danke für das super Modul. Habe lange gesucht und nichts vernünftiges gefunden, dieses ist aber super.
Habe es jetzt für zwei Seiten eingespielt. Für Budapest funktioniert es super, aber die Darstellung für Guanajuato, Mexiko ist Fehlerbehaftet. Wie bekomme ich das korrekt hin? Habt ihr ne Idee?
mfg. und Danke!
Schaukn
Hallo Jens, habe gerade noch mal auf Deiner Seite geschaut - funktioniert ja jetzt wunderbar. Woran hat es gelegen? Vielleicht hilft es dem einen oder anderen ... Melde dich noch noch mal. Joest
Vielen Dank für die Arbeit die Ihr gemacht habt
Gruß Trucker2
PS so ein Service wie hier und im Jomla Support gibt es bei vielen Bezahlprogrammen nicht . Danke
Scheinbar gibt es Orte, wie Leer in Ostfriesland, bei denen zwar Daten geliefert werden, aber einige Angaben fehlen. Das Problem ist programmiertechnisch nicht zu lösen (wenn Google unvollständige Daten liefert - können wir sie natürlich nicht herzaubern ;-). Daher wird nun ein Fehlerhinweis ausgegeben.
Zu den Darstellungsproblemen beim IE: Vieles lässt sich über Stylesheets lösen. Wenn die Modulspalte zu schmal ist, dann kann es trotzdem zu Problemen kommen. Ich habe an den wesentlichen Stellen nun Leerzeichen statt der non-breaking-spaces eingefügt. Dadurch sollte nun immer richtig umgebrochen werden.
Meine Frage , im Firefox ist alles perfekt , aber im Internet Expl. verdeckt das Wolkensymbol manchmal die Temperaturanzeige , kann man da etwas ändern ?
Danke un Gruß Trucker
thanx for joining us and pointing out the missing line ...
Joest
There is a bug in a module for geting data via curl. On file helper.php function getXMLbyCurl() is missing return statement.
After line 34: "curl_close($ch);" you should add:
return $wxml;
I do not want to enable allow_url_fopen but curl is installed and working with other extensions. Even with your plugin, but not with the module. Can somebody please have a look?
ty
Hi Alberto, don´t know why - but for some cities google does not supply proper data (sometimes - not all the times. weird ...). we can´t really do anything about it (we can´t parse data we don´t get delivered) - try with the next bigger city. Joest
2- sometimes the weather icon does not appears (looks like it can´t match the icon´s name xxxxx.gif).
Very good plugin !!!!!!!
Thanks
Alberto from Argentina
besten Dank für die Hilfe!
Habe das Modul neu heruntergeladen und installiert.
Leider kommt die Fehlermeldung "undefined variable: xtrap.... immer noch.
Schade, ich finde das Modul wirklich super!
Ansicht hier: www.brkpapp.kilu.de
Gruß
Jens
tolles module. klappt auch super bei mir, allerdings kommt das icon bei städten in US oder UK und manchen deutschen städten. bei anderen deutschen städten (hamburg, aurich, emden, leer) wird es nicht angezeigt..... woran liegt das? temperaturen und vorhersage klappen problemlos.
thx h
Hi Scotia, showing Celsius only is easy to realize. Look into mod_googleWeather.php (make sure you have the latest version, we made some changes, but didn´t change the version number). On line 60 you´ll find the output for F - just delete that or comment that line out. joest
danke für die Blumen ;-)
Modul-Klasse ist jetzt eingebaut.
Wir haben allerdings keine neue Versionsnummer vergeben - bitte einfach neu runterladen.
Joest
Wenn beim Modul noch ein Modul-Klassen-Suffix eingetragen werden könnte, wäre das super!
Grüsse: JO
Hi Jens, bitte mal neu downloaden - wir haben einige Änderungen im Modul eingebaut (ohne Änderung der Versionsnummer). Bei erneuter Fehlermeldung einfach noch mal melden. Joest
habe das Wettermodul mod-googleWeather v1.1 installiert und bekomme folgende Fehlermeldung im Modul:
"Undefined variable: xtrap in
/data/apache/users/XXX.de/brk/www/modules/
mod_googleWeather/mod_googleWeather.php on line 66"
Bin für Hilfe dankbar
mfg
Jens
Joest
aber ich habe eine vrage. Is es moglich um mit die plugin das wetter ab te geben in vorschau und night das wetter haute gibts?
Ich wil dass wetter zeigen was morgen gibts und nicht haute.
Ich hoffe, Sie verstehen, mein Deutsch ist nicht so gut
GRuB Ritchie aus Niederlander
Joest
ich glaube vom Sprung von Version 1.0 auf 1.1 ist euch ein kleiner Schönheitsfehler unterlaufen.
Die Div Container vom Modul haben jetzt das Prefix "plg_weather" anstatt "mod_weather".
Schöne Grüße!
As well, any plans on utilizing the ability to allow users to set their location in frontend and stick via cookie? - Google weather API does allow for this, ROKweather uses this - This would truly make the module complete!
Having some difficulty with Halifax,Canada - Although Sydney,Canada works fine? (does not like halifax for some reason)
Thanks for the update. Working like a charm.
RTFM ;-)
Wie in der Readme beschrieben ...
Einfach das Modul im Backend aufrufen und unter Location den gewünschten Ort eintragen, die Sprache wählen, Ausrichtung der Icons einstellen, fertig!
Joest
Könnt ihr für Einsteiger bitte mal erklären,
wie ich genau nun an die Daten für die Felder
PLZ/WORLD/WMO und Typ der Orts-ID
komme, bzw. was eingetragen werden muss?
Mit der PLZ bin ich nicht weit gekommen, leider.
Hi Maciek, try the new version (1.1) we just uploaded. Dirk included a helper. Should work now. Joest
Fatal error: Cannot redeclare getdata() (previously declared in
mod_googleWeather/mod_googleWeather.php:89) in
mod_googleWeather/mod_googleWeather.php on line 92
Can you help me with this issue?
wie sollen wir Dir so helfen??? Ein paar mehr Informationen sind schon nötig:
Link auf die entsprechende Seite, eingesetzte Joomlaversion, evtl. noch einen Link auf PHP-info etc. Einfach mailen - dann sehen wir weiter...
Joest
Woran liegt das?
Habt ihr echt klasse gemacht, ein Dank an die GPL lizenz.
ACh und ne vorschau wäre wirklich klasse... 3 tage z.b.
Wäre schön wenn ihr es auch als Modul anbieten könntet und als 3 tage vorschau. Benutze zur Zeit jweather Modul.
erstmal Danke für das Plugin, funktioniert wunderbar!
Vielleicht ein Gedankenantoß für kommende Versionen:
Zusätzlich zum aktuellen Wetter noch die 5-Tage-Vorschau
als Option miteinbauen, würde das ganze noch abrunden!
wie Dirk ja schon geschrieben hat - bitte das Plugin noch mal (von dieser Seite) neu downloaden. Die Datei thunderstorm.gif ist enthalten. Ich hab jetzt unser Beispiel mal geändert. Zeigt jetzt das Wetter in Bamako auf Mali an ...
Du kannst das Plugin beliebig oft auf einer Seite verwenden. Mail mir einen Link auf Deine Seite, dann schaue ich gerne drauf.
Joest
1) Ich meinte aber nicht, daß mir das Layout nicht gefällt. Das ist schon OK! Je nach Beitrag gibt es aber Fehlermeldungen oder ganze Texte samt Fotos verschwinden und es bleibt ein "(°F • °C)" vom Beitrag übrig. Wie gesagt, wenn ich z. B. zweimal {weather bamako,mali} in einem Beitrag verwende.
2) Zumindest beim Download von dieser Seite und bei Joomlaos ist diese Datei "s_thunderstorm.gif" leider (noch) nicht enthalten. Wo gibt es diese aktualisierte Version?
3) Danke!
4) Das wäre eine gute Lösung!
Nette Grüße
Mike
Ich hab gerade gesehen, dass auf Mali derzeit viele Unwetter "Thunderstorms" sind. Leider war das Icon falsch benannt. Ich hab eine neue Version hochgeladen. Alternativ kann man auch einfach die Datei "/plugins/content/googleWeather/s_thunderstorm.gif" in "thunderstorm.gif" umbennennen.
Hallo Mike. Leider können wir nur kurz antworten. Zu den Fragen: 1: Das Plugin macht alle Ausgaben in einem DIV mit dem Klassennamen "plg_weather". Über ein Stylesheet lässt sich die Ausgabe daher weitgehend anpassen. Ich werde versuchen die Ausgabe in der nächsten Version flexibler zu gestalten. (verschiedene iconsets usw.) 2: Ich kann mir nur vorstellen, dass das Iconset nicht komplett ist und für bestimmte Wetterbedingungen noch kein Bild vorhanden ist. 3: Die Wetterfunktion ist Teil der Gadgetapi der Google Desktops. (http://code.google.com/intl/de-DE/apis/desktop/docs/gadgetapi.html) Offizielle Dokumentation gibt es dafür nicht. Ich würde auch vermuten, dass die Wettervorhersage für exotische Orte wie Südseeinseln nicht funktioniert. Der Standard ist (ORT, LAND) oder (ZIP, Land) Da die Positionsbestimmung wahrscheinlich über die Geocoder-Funktion erfolgt, kann man über Google-Maps feststellen, ob eine Ortsangabe gültig ist. 4: In der nächsten Version wird man alternativ angeben können, ob statt der Sprache in der Konfiguration einfach die Spracheinstellung der Seite verwendet wird. Voraussetzung ist jedoch, dass Google Weather die Sprache überhaupt kennt.
habe gerade das PlugIn ausprobiert und es klappt teilweise ganz gut! Bin sehr froh, daß es kein Modul ist, da ich die Wetteranzeige im Beitrag benötige.
Probleme:
- bei mehr als einer Wetterangabe im Beitrag macht das PlugIn den ganzen Beitrag kaputt
- bei manchen Städten erscheint kein Wetter-Logo, z.B. bei {weather bamako,mali}
- woher bekommt man die erwünschte Schreibweise der Ortsangaben?
- keine Unterstützung von mehrsprachigen Webseiten (JoomFish)
Vielleicht kann man das eine oder andere Problem einfach lösen (bin Anfänger, kann das nicht wirklich beurteilen)
Nette Grüße
Mike
!!!! The download is now working.
habe gerade versucht hier das Plugin herunterzuladen, bekomme aber leider eine Fehlermeldung. Die Datei sei nicht vorhanden?
Gruß,
Volkmar
thanx for nice, clean and lean job. just what i was looking for
cay