Page 2 of 2
Re:Update 4.6
Posted: Wed Jan 06, 2010 8:40 pm
by admin
Es gibt Tage, da geht der Mond nicht auf.
Re:Update 4.6
Posted: Wed Jan 06, 2010 8:45 pm
by frabey
Ach Gott bin ich bekloppt, daran hab ich natürlich gar nicht gedacht.
Ich nehm alles zurück und streue Asche, oder besser Schnee auf mein Haupt.
Danke für die flotte Antwort
Gruß Frank
Re:Update 4.6
Posted: Thu Jan 07, 2010 11:25 pm
by admin
Czech characters inside XML seems to produce a lot of trouble. Sorry for that...
I would like to keep them in there, but I have no idea, what encoding might be ok for most XML parsers. I tried UTF-8 which generates the problems you reported on. iso charsets doesn't seem to have all the needed chars and doing ampersand-based encoding ala HTML does not work, as the & again breaks XML... Any expert out there that has an idea how to solve that elegantly?
Re:Update 4.6
Posted: Sun Jan 10, 2010 1:45 pm
by wnx
This new "feature" makes quite some problems on my weather website too. Is it possible to stop Meteohub from writing the czech strings into the XML file until this problem is solved? Either a hotfix or - if it can be done by myself - a quick guide how to do this would be great.
Re:Update 4.6
Posted: Mon Jan 11, 2010 12:30 am
by wnx
ok, now i changed the crontab on the meteohub server to remove the faulty line within the xml-file at creation time. looks as if it works.
crontab file, look for this line:
Code: Select all
*/1 * * * * sleep 40; /srv/www/meteograph.cgi text allxml>/var/run/meteohub/all-sensors-xml10.txt; /srv/www/cgi-bin/stamp.cgi cp "/var/run/meteohub/all-sensors-xml10.txt" "/var/run/meteohub/perm/allsensors.xml"; /srv/www/cgi-bin/stamp.cgi mv "/var/run/meteohub/all-sensors-xml10.txt" "/var/run/meteohub/uploads/allsensors.xml"
#- "all-sensors" "*/1 * * * *" "allsensors.txt" 0
and replace with this one:
Code: Select all
*/1 * * * * sleep 40; /srv/www/meteograph.cgi text allxml>/var/run/meteohub/all-sensors-xml10.txt; /bin/grep -v unit\\=\\"cz\\" /var/run/meteohub/all-sensors-xml10.txt > /var/run/meteohub/all-sensors-xml10.temp.txt; /srv/www/cgi-bin/stamp.cgi cp "/var/run/meteohub/all-sensors-xml10.temp.txt" "/var/run/meteohub/perm/allsensors.xml"; /srv/www/cgi-bin/stamp.cgi mv "/var/run/meteohub/all-sensors-xml10.temp.txt" "/var/run/meteohub/uploads/allsensors.xml"
#- "all-sensors" "*/1 * * * *" "allsensors.txt" 0
Update 4.6 => onboot
Posted: Wed Jan 13, 2010 3:26 pm
by nikord
Hallo Boris,
ich versuche gerade aus der setup.tgz und der aktuellen Update-Datei 4.6 (03.01.2010) eine aktuelle manuelle Installation zu erstellen. Beim Abarbeiten der Datei onboot, mit der ja die neuen Dateien in die entsprechenden Ordner kopiert werden sollen, ist mir aufgefallen, dass es einige der dort aufgeführten Dateien (z.B. Zeile 19-20,22) so nicht gibt. Diese drei Datein (day, goto, hist) sollen nach /home/meteohub kopiert werden. Im Update gibt es diese Dateien aber nur mit der Endung *.cgi.
In der Version 4.5, die bei mir schon läuft, befinden sich diese drei Dateien nicht unter /home/meteohub sondern unter /srv/www/cgi-bin/.
Die drei oben genannten *.cgi Dateien wurden in meinem Lenny-Meteohub durch das Update auf die 4.5x nicht ersetzt - sie stammen vom 26.11.2008 und sind damit über 12 Monate älter als die entsprechenden Dateien aus dem - angewandten - Update 4.5x.
Auch in der VM-Version werden diese Dateien durch das aktuelle Update nicht ersetzt.
Es sieht für mich so aus, dass das Update-Skript nicht alle Dateien durch die beiliegenden neuen Versionen ersetzt. Ist das so gewollt?
Vielen Dank für deine Hilfe.
Niko