PV Leistung wird nicht korrekt angezeigt

Antworten
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

PV Leistung wird nicht korrekt angezeigt

Beitrag von Sethach »

Meine PV Leistung wird über eine Text Datei unter der Adresse
http://192.168.0.158/eHomeVisu/OpenWB0-11-16.txt
zur Verfügung gestellt, und ist somit den Moduleinstellungen unter
„Vollständige URL für die Wechselrichter Watt
Gültige Werte vollständige URL. Die abgerufene URL muss eine reine Zahl ergeben“
Die Abfrage liefert im Moment im Browser z.B. 270

In OpenWB hab ich immer 119.

Im log seh ich folgendes:
Traceback (most recent call last):
File "/var/www/html/openWB/modules/soc_leafs1/soc.py", line 17, in <module>
leaf = Leaf(sys.argv[1], sys.argv[2])
File "/var/www/html/openWB/modules/soc_leafs1/leaf.py", line 14, in __init__
self.custom_sessionid, self.VIN = login(username, password)
File "/var/www/html/openWB/modules/soc_leafs1/auth.py", line 28, in login
r.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 893, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://gdcportalgw.its-mo.com/api_v180 ... equest.php
Mi 2. Jan 16:05:53 CET 2019
pvwatt 119 ladeleistung 7525 llalt 12 nachtladen 0 nachtladen 0 minimalA 10 maximalA 21
lla1 10 llas11 0 llas21 mindestuberschuss 1800 abschaltuberschuss 5 lademodus 0
lla2 10 llas12 0 llas22 sofortll 12 wattbezug 8149 uberschuss -8149
lla3 10 llas13 0 llas23 soclp1 40 soclp2 0
evua 1 0 2 0 3 0
Sofort ladung Ladepunkt 1 erreicht bei 12 A
Sofort ladung Ladepunkt 2 bei minimal A 10 Ladeleistung zu gering
Traceback (most recent call last):
File "/var/www/html/openWB/modules/soc_leafs1/soc.py", line 17, in <module>
leaf = Leaf(sys.argv[1], sys.argv[2])
File "/var/www/html/openWB/modules/soc_leafs1/leaf.py", line 14, in __init__
self.custom_sessionid, self.VIN = login(username, password)
File "/var/www/html/openWB/modules/soc_leafs1/auth.py", line 28, in login
r.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 893, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://gdcportalgw.its-mo.com/api_v180 ... equest.php

Wo ist mein Fehler?
openWB
Site Admin
Beiträge: 7960
Registriert: So Okt 07, 2018 1:50 pm

Re: PV Leistung wird nicht korrekt angezeigt

Beitrag von openWB »

Nabend,

Was im Modul passiert:
wattwr=$(curl --connect-timeout 10 -s $wr_http_w_url)

re='^-?[0-9]+$'

if ! [[ $wattwr =~ $re ]] ; then
wattwr="0"
fi
echo $wattwr
echo $wattwr > /var/www/html/openWB/ramdisk/pvwatt
Die URL wird abgefragt und im Anschluss geprüft ob der Wert nur aus Zahlen besteht.
Wenn dem so ist, wird er in die Ramdisk geschrieben.
Die URL stimmt definitiv?
GGf. mal händisch in:
reinschauen ob wr_http_w_url= die richtige URL enthält.
Supportanfragen bitte NICHT per PN stellen.
Hardwareprobleme bitte über die Funktion Debug Daten senden mitteilen oder per Mail an support@openwb.de
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Re: PV Leistung wird nicht korrekt angezeigt

Beitrag von Sethach »

Ja, die Adresse in der conf stimmt, und liefert einen Wert zurück.
wr_http_w_url='http://192.168.0.158/eHomeVisu/OpenWB0-11-16.txt'

Wenn ich den Code richtig interpretiere, dann müsste bei ungültigem Wert eine „0“ angezeigt werden.
Ich hab da Konstant 119 W, das ist das seltsame.
Antworten