PV - Graph OK, Anzeige ohne Wert

Fragen zur Nutzung, Features, usw..
Antworten
ChristianM
Beiträge: 150
Registriert: Di Okt 22, 2019 9:42 am

PV - Graph OK, Anzeige ohne Wert

Beitrag von ChristianM »

Guten Morgen Zusammen,

seit heute lese ich meine PV mit dem vzlogger aus und greife über die OpenWB auf den Wert zu. Der Graph stimmt, aber in der Anzeige steht als Wert immer nur 0. Hat jemand eine Idee woran es liegen kann?
Bildschirmfoto 2020-03-08 um 08.40.41.png
(268.6 KiB) 463-mal heruntergeladen
openWB Version: 1.7.010Stable
openWB Variante: Duo Series2
Browser Cache gelöscht?: ja
Welches Theme?: standard
Welches PV Modul / Welcher Wechselrichter: vzzloger
Welches EVU Modul: vzlogger

Viele Grüße,
Christian
ChristianM
Beiträge: 150
Registriert: Di Okt 22, 2019 9:42 am

Re: PV - Graph OK, Anzeige ohne Wert

Beitrag von ChristianM »

Wenn ich den vzlogger mit curl abfrage, bekomme ich für die PV folgendes angezeigt (1854.4 ist die aktuelle Leistungswert der PV in W):

Code: Alles auswählen

{
      "uuid": "410fdf80-60bb-11ea-b279-0dced274bd86",
      "last": 1583653579347,
      "interval": 60,
      "protocol": "exec",
      "tuples": [
        [
          1583653579347,
          1854.4
        ]
      ]
    },
okaegi
Beiträge: 2278
Registriert: Fr Mär 08, 2019 1:57 pm

Re: PV - Graph OK, Anzeige ohne Wert

Beitrag von okaegi »

Den Pv Leistung wird negativ angezeigt. Ich würde ein Vorzeichenproblem bei der pv leistung vermuten.
Gruss Oliver
Entwickler- openWB (ehrenamtlich) / Feedback zu Funktionen immer erwünscht..
Smarthomeprobleme siehe hier (update :!: ): viewtopic.php?f=14&t=5923
ChristianM
Beiträge: 150
Registriert: Di Okt 22, 2019 9:42 am

Re: PV - Graph OK, Anzeige ohne Wert

Beitrag von ChristianM »

vzlogger liefert positive Werte, sieht man ja an der curl abfrage. Im Volkszähler wird es auch positiv dargestellt und im OpenWB kann ich kein Vorzeichen angeben.
ChristianM
Beiträge: 150
Registriert: Di Okt 22, 2019 9:42 am

Re: PV - Graph OK, Anzeige ohne Wert

Beitrag von ChristianM »

der Wert in /openWB/ramdisk/pvwatt ist auch Positiv, aktuell: 5712
ChristianM
Beiträge: 150
Registriert: Di Okt 22, 2019 9:42 am

Re: PV - Graph OK, Anzeige ohne Wert

Beitrag von ChristianM »

und hier noch der Auszug aus dem Logfile. Eine Meldung sticht mir ins Auge:
"Ganzzahliger Ausdruck erwartet"
vzlogger liefert aber eine Zahl mit Nachkommastelle, könnte das das Problem sein?

Code: Alles auswählen

Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
    print(rq.registers[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
Traceback (most recent call last):
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 118, in <module>
    llw2 = struct.unpack('>f',struct.pack('>HH',*resp.registers))[0]
AttributeError: 'ModbusIOException' object has no attribute 'registers'
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
    print(rq.registers[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
loadvars.sh: Zeile 67: [: : Ganzzahliger Ausdruck erwartet.
Traceback (most recent call last):
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 85, in <module>
    print(rq.registers[0])
    voltage = struct.unpack('>f',struct.pack('>HH',*resp.registers))[0]
AttributeError: AttributeError: 'ModbusIOException' object has no attribute 'registers''ModbusIOException' object has no attribute 'registers'

loadvars.sh: Zeile 67: [: : Ganzzahliger Ausdruck erwartet.
Traceback (most recent call last):
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 91, in <module>
    lla1 = float(struct.unpack('>f',struct.pack('>HH',*resp.registers))[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
    print(rq.registers[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
loadvars.sh: Zeile 67: [: : Ganzzahliger Ausdruck erwartet.
Traceback (most recent call last):
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 97, in <module>
    print(rq.registers[0])
    AttributeErrorlla2 = float(struct.unpack('>f',struct.pack('>HH',*resp.registers))[0])
: 'ModbusIOException' object has no attribute 'registers'AttributeError
: 'ModbusIOException' object has no attribute 'registers'
loadvars.sh: Zeile 67: [: : Ganzzahliger Ausdruck erwartet.
Traceback (most recent call last):
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 97, in <module>
    lla2 = float(struct.unpack('>f',struct.pack('>HH',*resp.registers))[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
    print(rq.registers[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
loadvars.sh: Zeile 67: [: : Ganzzahliger Ausdruck erwartet.
kill: (17600): Kein passender Prozess gefunden
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
    print(rq.registers[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
    print(rq.registers[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
    print(rq.registers[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
loadvars.sh: Zeile 67: [: : Ganzzahliger Ausdruck erwartet.
Traceback (most recent call last):
  File "runs/readmodbus.py", line 21, in <module>
    print(rq.registers[0])
AttributeError: 'ModbusIOException' object has no attribute 'registers'
loadvars.sh: Zeile 67: [: : Ganzzahliger Ausdruck erwartet.
ChristianM
Beiträge: 150
Registriert: Di Okt 22, 2019 9:42 am

Re: PV - Graph OK, Anzeige ohne Wert

Beitrag von ChristianM »

Auch nach Umwandlung von float zu int trat das Problem immer noch auch. Per Script füge ich für vzlogger nun ein Minuszeichen hinzu. Im Volkszähler stimmt der Wert nun nicht mehr, aber in OpenWB passt es nun. Auch Einspeisung und Hausverbrauch werden nun richti angezeigt. Das kann doch nur ein Bug in der OpenWB Software sein, oder?
Bildschirmfoto 2020-03-08 um 13.35.03.png
(336.52 KiB) 431-mal heruntergeladen
openWB
Site Admin
Beiträge: 8092
Registriert: So Okt 07, 2018 1:50 pm

Re: PV - Graph OK, Anzeige ohne Wert

Beitrag von openWB »

In der openWB bzw. im Unterbau ist alles positive Bezug (EVU, Ladeleistung) und alles negative Erzeugung (PV, Einspeisung). Daher muss PV negativ sein.
Folgt im fix im Modul für den vzlogger das bei positiv *-1 gerechnet wird.
Supportanfragen bitte NICHT per PN stellen.
Hardwareprobleme bitte über die Funktion Debug Daten senden mitteilen oder per Mail an support@openwb.de
Antworten