FHEM Forum

FHEM => Frontends => SVG / Plots / logProxy => Thema gestartet von: hre1 am 09 Januar 2014, 17:45:56

Titel: Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: hre1 am 09 Januar 2014, 17:45:56
Im Forumsbereich Anfängerfragen, gibt es Probleme bei der Darstellung der Plots (siehe http://forum.fhem.de/index.php/topic,18503.0.html). Kann das noch jemand nachvollziehen, oder vielleicht besser: eine Lösung dafür anbieten? :)

Schonmal herzlichen Dank!
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: rudolfkoenig am 09 Januar 2014, 18:02:56
Der verlinkte Artikel ist reichlich verwirrend. Welche FHEMWEB Attribute wurden gesetzt?
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: hre1 am 09 Januar 2014, 22:42:50
Danke für deine schnelle Antwort Rudolf! Vielleicht gelingt es mir ja mit dem Auszug aus meiner fhem.cfg die Verwirrung etwas aufzulösen. ;)


root@alix:~# cat /etc/fhem.cfg
attr global autoload_undefined_devices 1
attr global logfile /usr/share/fhem/log/fhem-%Y-%m.log
attr global modpath /usr/share/fhem
attr global motd SecurityCheck:\
\
WEB,WEBphone,WEBtablet has no basicAuth attribute.\
telnetPort has no password/globalpassword attribute.\
Running with root privileges.\
Restart fhem for a new check if the problem is fixed,\
or set the global attribute motd to none to supress this message.\

attr global statefile /usr/share/fhem/log/fhem.save
attr global uniqueID /usr/share/fhem/FHEM/FhemUtils/uniqueID
attr global userattr Gaszaehlerstandoffset Geschirroffset Herdoffset Serverschrankoffset Waschmaschineoffset Wasserzaehleroffset devStateIcon devStateStyle fm_type icon sortby webCmd


# Logfileoutput Normal = 3
# Logfileoutput Debuging = 5
attr global verbose 3
##attr global verbose 5

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global
attr WEB HTTPS 1
attr WEB refresh 180
attr WEB stylesheetPrefix dark

define WEBphone FHEMWEB 8084 global
attr WEBphone HTTPS 1
attr WEBphone refresh 180
attr WEBphone stylesheetPrefix smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet HTTPS 1
attr WEBtablet refresh 180
attr WEBtablet stylesheetPrefix touchpad

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog /usr/share/fhem/log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate autosave 1
attr autocreate device_room %TYPE
attr autocreate filelog /usr/share/fhem/log/%NAME-%Y.log
attr autocreate weblink 1
attr autocreate weblink_room Plots

# Disable this to avoid looking for new USB devices on startup
##define initialUsbCheck notify global:INITIALIZED usb create

include /etc/fhem/OW_test.cfg
include /etc/fhem/HMLAN.cfg
include /etc/fhem/SolarLog.cfg
include /etc/fhem/Presence.cfg
include /etc/fhem/Alarm.cfg
include /etc/fhem/IPCAM.cfg
include /etc/fhem/Notify.cfg

define DS2450_4DB814000000 OWDevice 20.4DB814000000 60
attr DS2450_4DB814000000 model DS2450
attr DS2450_4DB814000000 room OWDevice

define Fhemobile dummy

root@alix:~#



Wie schon beschrieben kann ich mittels der prev/net-Pfeilsymbole (die jetzt in irgendeinem Plot erscheinen sonst aber immer im ersten Plot zu sehen waren) nicht mehr in der Plothistorie vor oder zurückgehen. Ich lande nach dem Click auf eines der Symbole immer auf der FHEM-Startseite. Leider kann ich trotz attr global verbose 5 keine Fehlermeldung im fhem-Logfile sehen. Ich bin also etwas ratlos woran es nun genau liegen könnte... :-[ Ich würde dich natürlich gern unterstützen wenn du noch mehr Informationen benötigen solltest, um den genauer Fehler einkreisen zu können.
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: rudolfkoenig am 09 Januar 2014, 22:57:08
versuch mal die refresh attribute zu loeschen
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: Xguide am 09 Januar 2014, 23:16:02
Die refresh attribute hatte ich als erstes gelöscht, hat bei mir die Situation leider nicht verändert.
Können es irgendwelche Ordner/Datei Berechtigungen sein?

Das Fehlverhalten habe ich bereits im verlinkten Thread beschrieben. Was mir allerdings aufgefallen ist, beim Öffnen eines Plots über den Textlink "Plot", der beim Setzen des Attributs logtype (z.B. logtype temp4:Plot,text) in einer Filelog Definition erzeugt wird, funktioniert der Plot mit allen Features. Keine unnötigen refreshs, Historie und Zoom verfügbar.

Jedoch spinnen bei mir alle über SVG, bzw. weblink fileplot, integrierten Trends.

Leider gerade mobil unterwegs, deswegen kein Screenshot zur Erklärung.
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: hre1 am 10 Januar 2014, 10:28:29
Hallo Rudolf,

auch bei mir erfolgt leider keine keinerlei Verbesserung, wenn ich dir refresh Attribute entferne. Gleiches Verhalten wie bereits im Fehlerbild beschrieben...

Kannst du mir vielleicht sagen vom welchem Modul die Darstellung gehandelt wird (FHEMWEB.pm, SVG.pm ...)? Ich würde dann mal versuchen aus einem älteren Backup die Module wiederherzustellen und zu schauen,  ab wann es nicht mehr funktioniert. Wenns hilft...
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: rudolfkoenig am 10 Januar 2014, 10:52:37
Dann baut mal bitte ein kleines+komplettes Beispiel mit allen drum und dran, damit ich es nachvollziehen kann.
Oder ihr testet das Ganze mit der Demo-Konfig (fhem.cfg.demo), und verdreht ihn solange, bis es kaputt ist :)
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: hre1 am 10 Januar 2014, 13:06:45
Ich habe mal ein kleines Minimalpaket mit entsprechenden Dateien geschnürt. Ich hoffe es reicht dir für die Analyse des Problems. GGf. must du noch die Pfade anpassen... Wenn du auf "0.Carport"  oder "Plots" gehst, kannst du das von mir beschriebene Problem nachvollziehen.

Hier die Ausgabe von version:

# $Id: fhem.pl 4565 2014-01-05 22:17:37Z rudolfkoenig $
# $Id: 01_FHEMWEB.pm 4586 2014-01-07 11:48:46Z rudolfkoenig $
# $Id: 92_FileLog.pm 4574 2014-01-06 14:12:42Z rudolfkoenig $
# $Id: 99_SUNRISE_EL.pm 4537 2014-01-03 08:28:59Z rudolfkoenig $
# $Id: 98_SVG.pm 4503 2013-12-29 18:38:50Z rudolfkoenig $
# $Id: 99_Utils.pm 3595 2013-08-05 05:38:48Z tobiasfaust $
# $Id: 98_autocreate.pm 4234 2013-11-17 10:19:41Z rudolfkoenig $
# $Id: 98_dummy.pm 3738 2013-08-18 14:13:59Z rudolfkoenig $
# $Id: 98_telnet.pm 3738 2013-08-18 14:13:59Z rudolfkoenig $


Danke schon mal und wenn noch was fehlen sollte, immer her damit  ;)
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: rudolfkoenig am 10 Januar 2014, 13:13:50
2014.01.10 13:12:52 1: Cannot read ./www/gplot/my_Einspeisung.gplot
2014.01.10 13:12:52 1: Cannot read ./www/gplot/my_Solarplot.gplot

Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: hre1 am 10 Januar 2014, 13:20:03
Na das fängt ja schon gut an... Entschuldigung! :) Dann hier nochmal das ergänzte Gesamtpaket.
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: Xguide am 10 Januar 2014, 13:25:20
Hallo Rudolf, kannst Du daraus was ableiten?
Sollte doch prinzipiell alles sein was man für den Betrieb von einem Gerät benötigt, oder?

Auszug der FHEM.cfg

attr global autoload_undefined_devices 1
attr global room 10_System
attr global group !FHEM
attr global latitude 51.427009
attr global longitude 7.200310
attr global modpath /opt/fhem
attr global title HomeAutomation-RaPi
attr global userattr webCmd....etc
###Global Paths & Parameter
attr global backupdir /media/RAPI-FHEM/FHEM_Backup
attr global logdir /media/RAPI-FHEM/FHEM_LogFile
attr global logfile %L/fhem-%Y-%m.log
attr global statefile /media/RAPI-FHEM/FHEM_StateFile/fhem.save
attr global uniqueID /opt/fhem/FHEM/FhemUtils/uniqueID
##### Verbose level
##0 - server start/stop
##1 - error messages or unknown packets
##2 - major events/alarms.
##3 - commands sent out will be logged.
##4 - you'll see whats received by the different devices.
##5 - debugging
attr global verbose 1
###add miliseconds to FileLog
#attr global mseclog 5

##Autocreate related definitions
define autocreate autocreate
attr autocreate autosave 1
attr autocreate device_room %TYPE
attr autocreate filelog %L/%NAME-%Y.log
attr autocreate group !FHEM
attr autocreate room 10_System
attr autocreate weblink 1
attr autocreate weblink_room Plots

###---Definition for the FHEM Frontend---####
##Browser
define WEB FHEMWEB 8083 global
attr WEB group !FHEM
attr WEB iconPath fhemSVG:openautomation:default:icons_small
attr WEB refresh 60
attr WEB room 10_System
attr WEB stylesheetPrefix dark

define HMLAN1 HMLAN 192.168.XXX.XXX:1000
attr HMLAN1 group !HomeMatic
attr HMLAN1 hmId XXXXXX
attr HMLAN1 hmLanQlen 1_min
attr HMLAN1 hmProtocolEvents 3
attr HMLAN1 room 10_System
attr HMLAN1 wdTimer 25

##Definition for the HomeMatic-LAN Adapter - HM-environment
define HMLAN2 HMLAN 192.168.XXX.XXX:1000
attr HMLAN2 group !HomeMatic
attr HMLAN2 hmId XXXXXX
attr HMLAN2 hmLanQlen 1_min
attr HMLAN2 hmProtocolEvents 3
attr HMLAN2 room 10_System
attr HMLAN2 wdTimer 25

##Definition for the HomeMatic-LAN pseudo Adapter - HM-environment
define CUL_HM1 CUL_HM 000000
attr CUL_HM1 actCycle 30
attr CUL_HM1 actStatus alive
attr CUL_HM1 event-on-change-reading .*
attr CUL_HM1 expert 2_full
attr CUL_HM1 group !HomeMatic
attr CUL_HM1 peerIDs 1
attr CUL_HM1 room 10_System





Einbindung eines Differenztemperatur Sensors, mit FileLog und Plot - Auszug....


##Definition of a HM-WDS30-OT2-SM - Temperature Difference Sensor
define FloorHeating_DeltaT CUL_HM XXXXX
attr FloorHeating_DeltaT .devInfo 010500
attr FloorHeating_DeltaT .stc 70
attr FloorHeating_DeltaT actCycle 000:10
attr FloorHeating_DeltaT actStatus alive
attr FloorHeating_DeltaT autoReadReg 4_reqStatus
attr FloorHeating_DeltaT expert 2_full
attr FloorHeating_DeltaT firmware 1.1
attr FloorHeating_DeltaT group FloorHeating
attr FloorHeating_DeltaT model HM-WDS30-OT2-SM
attr FloorHeating_DeltaT peerIDs
attr FloorHeating_DeltaT room 06_Temperature
attr FloorHeating_DeltaT serialNr XXXXXXXXXX
attr FloorHeating_DeltaT subType THSensor
attr FloorHeating_DeltaT webCmd getConfig

#Definition of a HM-WDS30-OT2-SM - Chanel 01
define FloorHeating_DeltaT_Ch01 CUL_HM XXXXXXX
attr FloorHeating_DeltaT_Ch01 expert 1
attr FloorHeating_DeltaT_Ch01 group FloorHeating
attr FloorHeating_DeltaT_Ch01 model HM-WDS30-OT2-SM
attr FloorHeating_DeltaT_Ch01 peerIDs
attr FloorHeating_DeltaT_Ch01 room 06_Temperature

-->Chanel 2-5 analog

##Definition of a HM-WDS30-OT2-SM - Temperature Difference Sensor - FileLog
define FileLog_FloorHeating_DeltaT FileLog %L/FloorHeating_DeltaT-%Y.log FloorHeating_DeltaT:T:.*
attr FileLog_FloorHeating_DeltaT logtype temp4:Plot,text
attr FileLog_FloorHeating_DeltaT room 06_Temperature
attr FileLog_FloorHeating_DeltaT group FloorHeating

##Definition for a delta T trend
define Plot_DeltaTMeasurement SVG FileLog_FloorHeating_DeltaT:temp4:CURRENT
attr Plot_DeltaTMeasurement alias Delta T - Heating
attr Plot_DeltaTMeasurement label "Delta T Measurement Floorheating"
attr Plot_DeltaTMeasurement group FloorHeating
attr Plot_DeltaTMeasurement room 06_Temperature


Herzlichen Dank für jegliche Antwort


Update: Oh, ich habe zu lange für die Zusammenstellung benötig - aber vielleicht kanst du auch mal bei mir reingucken.
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: kennstewayne am 10 Januar 2014, 14:03:16
Hallo erst mal,

also ich habe vom Prinzip her das selbe Problem.
Habe mir die Seite mal mit Firebug angeschaut.
vllt hilft das weiter.

Scheint so als würden die "Buttons" nicht "on Top" gesetzt sondern immer unten in einer Gruppe.

<tbody>
<tr class="odd">
<td colspan="2" informid="SVG_CUL_FHTTK_f2766c">
</tr>
<tr class="even">
<td colspan="2" informid="SVG_HZG_Bad_EG">
</tr>
<tr class="odd">
<td colspan="2" informid="SVG_HZG_Kueche">
</tr>
<tr class="even">
<td colspan="2" informid="SVG_HZG_schlafen">
</tr>
<tr class="odd">
<td colspan="2" informid="SVG_HZG_Wohn">
<a href="/fhem?room=&pos=zoom=qday;off=0">
<a href="/fhem?room=&pos=zoom=week;off=0">
<a href="/fhem?room=&pos=zoom=0;off=-1">
<br>
<div class="SVGplot">


Im Bild sieht man den markierten Bereich vom letzten Plot. Hier sind die Pfeile drüber gesetzt.
Erkennbar am
<a href="/fhem?room=&pos=zoom=qday;off=0">
<a href="/fhem?room=&pos=zoom=week;off=0">
<a href="/fhem?room=&pos=zoom=0;off=-1">

Sorry wenn das dazugehörige Bild etwas groß geraten ist.

Gruß
Daniel
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: rudolfkoenig am 10 Januar 2014, 15:36:30
@hre1: es wurde ausgeloest durch "attr SVGName group PV" (workaround: Attribut entfernen), ich meine ich habe es aber auch gefixed, da es bei mir jetzt auch mit group Attribut funktioniert. Habs eingecheckt, update, wie ueblich, ab morgen.
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: hre1 am 10 Januar 2014, 16:14:24
Danke Rudolf!!! Ich hab die group Attribute auch mal probehalber entfernt und siehe da, es funktioniert wieder (auch wenns ohne Gruppierungsrahmen und Farbunterscheidung der einzelnen Plot-Zeilen nicht so "schnieke" aussieht).  :)

Dann war es wohl ein grundsätzliches Problem mit dem group-Attribut und der Darstellung? Aber ich freue mich schon auf die neue Version morgen... und nochmals herzlichen Dank, für deine schnelle Hilfe!
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: koldomon am 10 Januar 2014, 16:32:52
Danke, jetzt ist wieder alles supi mit den Plots
Titel: Antw:Probleme bei der Darstellung von Plots (SVG) in FHEMWeb
Beitrag von: Xguide am 11 Januar 2014, 08:53:21
Herzlichen Dank Rudolf, das Update hat das Problem gelöst!  :)