Seite 1 von 1

PV - Graph OK, Anzeige ohne Wert

Verfasst: So Mär 08, 2020 7:46 am
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

Re: PV - Graph OK, Anzeige ohne Wert

Verfasst: So Mär 08, 2020 7:51 am
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
        ]
      ]
    },

Re: PV - Graph OK, Anzeige ohne Wert

Verfasst: So Mär 08, 2020 8:26 am
von okaegi
Den Pv Leistung wird negativ angezeigt. Ich würde ein Vorzeichenproblem bei der pv leistung vermuten.
Gruss Oliver

Re: PV - Graph OK, Anzeige ohne Wert

Verfasst: So Mär 08, 2020 8:32 am
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.

Re: PV - Graph OK, Anzeige ohne Wert

Verfasst: So Mär 08, 2020 11:41 am
von ChristianM
der Wert in /openWB/ramdisk/pvwatt ist auch Positiv, aktuell: 5712

Re: PV - Graph OK, Anzeige ohne Wert

Verfasst: So Mär 08, 2020 12:03 pm
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.

Re: PV - Graph OK, Anzeige ohne Wert

Verfasst: So Mär 08, 2020 12:39 pm
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

Re: PV - Graph OK, Anzeige ohne Wert

Verfasst: Mo Mär 09, 2020 7:06 am
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.