Feedback Beta 1

Fragen zur Nutzung, Features, usw..
LutzB
Beiträge: 3508
Registriert: Di Feb 25, 2020 9:23 am

Re: Feedback Beta 1

Beitrag von LutzB »

rleidner hat geschrieben: Fr Nov 18, 2022 10:45 am Durch das Verschieben der Module in chargepoints, devices und vehicles blieben die alten Folder stehen, die jetzt nur __pycache__ enthalten.
Da wäre m.E. eine automatische Bereinigung angebracht, z.B. im atreboot.sh.
Ich habe es bei mir damit gemacht:
...
Danke für den Code! Habe es etwas überarbeitet und kommt so in den Ordner "runs":

Code: Alles auswählen

#!/bin/bash
OPENWBBASEDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)

while IFS= read -r -d '' d; do
	entries=("$d/"*)
	if ((${#entries[@]} == 1)); then
		# echo "folder: " "${entries[0]}"
		if [[ "${entries[0]}" =~ /__pycache__$ ]]; then
			echo "$d: containing only cache without sources -> will be removed"
			rm -fr "$d"
		fi
	fi
done < <(find "$OPENWBBASEDIR" -type d ! -name "__pycache__" -print0)
Aufruf kommt in die atreboot.sh mit rein.
LutzB
Beiträge: 3508
Registriert: Di Feb 25, 2020 9:23 am

Re: Feedback Beta 1

Beitrag von LutzB »

mrinas hat geschrieben: Mi Nov 23, 2022 6:57 am Wie sieht es denn mit Unterstützung fein abgestufter Ladeströme in den openWB Ladepunkten aus, ich hab' gesehen dass der ISSS kürzlich komplett überarbeitet wurde, konnte da aber erstmal keine konkreten Hinweise darauf finden. Ist das noch 'ein Ding' oder wird das auf absehbare Zeit aufgrund anderer Abhängigkeiten/Gründe erstmal nichts?
Das kommt in den "nur Ladepunkt Modus" der 2.0. Hintergrund ist, dass bei der 2.0 alle openWB-Ladepunkte einheitlich über einen Handler angesprochen werden. Unabhängig davon, ob es externe oder interne Ladepunkte sind. Wenn im Changelog auftaucht, dass lokale Ladepunkte unterstützt werden, ist dort auch die feinere Regelung aktiv.
mrinas hat geschrieben: Mi Nov 23, 2022 6:57 am Hat sich in Sachen CP-Unterbrechung in der letzten Zeit etwas getan, kann ich das mit der Ladezicke e2008 noch mal testen? Ohne CP-Unterbrechung geht da nach dem Einschlafen ja gar nichts, ähnliches bei der 1p/3p Umschaltung, hier brauchts eine 2min Pause damit das Auto einschläft um dann wieder per CP-U geweckt werden zu können.
CP-Unterbrechung sollte mit dem überarbeiteten ISSS jetzt überall funktionieren. Bitte gerne testen.
tobox
Beiträge: 114
Registriert: Do Apr 28, 2022 7:18 am

Re: Feedback Beta 1

Beitrag von tobox »

Ich habe mit der Version "2022-11-21 12:39:45 +0100 [cf8f12da]" das Problem, dass die Begrenzung des Ladestroms im Sofortladen Modus aus der GUI nicht funktioniert. Im Logfile sehe ich folgendes, ist das bekannt?

Code: Alles auswählen

2022-11-23 12:40:51,057 - {control.process:52} - {ERROR:MainThread} - Fehler im Process-Modul für Ladepunkt cp0
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/process.py", line 50, in process_algorithm_results
    modules_threads.append(self._start_charging(chargepoint))
  File "/var/www/html/openWB/packages/control/process.py", line 111, in _start_charging
    return threading.Thread(target=chargepoint.chargepoint_module.set_current,
AttributeError: 'NoneType' object has no attribute 'set_current'
Da gerade mehrere Autos laden, kann ich leider jetzt gerade nicht updaten, werde das aber heute Abend nachholen.
2x OpenWB Duo + OpenWB 2.0 Proxmox-Container
JHC
Beiträge: 78
Registriert: Fr Jun 10, 2022 8:23 am
Wohnort: Schleswig-Holstein

Re: Feedback Beta 1

Beitrag von JHC »

mrinas hat geschrieben: Mi Nov 23, 2022 6:57 am Hat sich in Sachen CP-Unterbrechung in der letzten Zeit etwas getan, kann ich das mit der Ladezicke e2008 noch mal testen? Ohne CP-Unterbrechung geht da nach dem Einschlafen ja gar nichts, ähnliches bei der 1p/3p Umschaltung, hier brauchts eine 2min Pause damit das Auto einschläft um dann wieder per CP-U geweckt werden zu können.
In der Nigthly der 1.9 wurde das CP-Problem für meinen Corsa für einen externen LP gelöst.
DIe Frage ist nur, kam die Änderung aus einer Rückportierung aus 2.0 oder nicht.
PV: 8,88 kWp, Speicher: 10 kWh, 2x openWB series2 custom, Discovergy Meter, openWB EVU + PV Kit v2 MID, openHAB, Corsa-e
tobox
Beiträge: 114
Registriert: Do Apr 28, 2022 7:18 am

Re: Feedback Beta 1

Beitrag von tobox »

tobox hat geschrieben: Mi Nov 23, 2022 12:43 pm Ich habe mit der Version "2022-11-21 12:39:45 +0100 [cf8f12da]" das Problem, dass die Begrenzung des Ladestroms im Sofortladen Modus aus der GUI nicht funktioniert. Im Logfile sehe ich folgendes, ist das bekannt?

Code: Alles auswählen

2022-11-23 12:40:51,057 - {control.process:52} - {ERROR:MainThread} - Fehler im Process-Modul für Ladepunkt cp0
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/process.py", line 50, in process_algorithm_results
    modules_threads.append(self._start_charging(chargepoint))
  File "/var/www/html/openWB/packages/control/process.py", line 111, in _start_charging
    return threading.Thread(target=chargepoint.chargepoint_module.set_current,
AttributeError: 'NoneType' object has no attribute 'set_current'
Da gerade mehrere Autos laden, kann ich leider jetzt gerade nicht updaten, werde das aber heute Abend nachholen.
Tritt auch mit 2022-11-23 09:41:51 +0100 [a981a766] auf!
2x OpenWB Duo + OpenWB 2.0 Proxmox-Container
Benutzeravatar
mrinas
Beiträge: 1910
Registriert: Mi Jan 29, 2020 10:12 pm

Re: Feedback Beta 1

Beitrag von mrinas »

Lutz, die aktualisierte Statusseite mit den Symbolen und dem Status zum Fahrzeug gefällt mir gut.

Beim Tesla wird mir der Zeitstempel in US Schreibweise (mm/dd/yy) angezeigt, wäre wünschenswert wenn wir hier auch das Zeitformat des Browsers nutzen.
Bei mir ist der Zeitstempel bereits in diesem Format im Broker vorgehalten, in den Debug-Meldungen vom SoC Modul sehe ich gar keinen Zeitstempel?

SoC Log:

Code: Alles auswählen

2022-11-25 08:28:42,847 - {soc.modules.common.store._api:26} - {DEBUG:soc_ev3} - Raw data CarState(soc=71.0, range=341.1317998, soc_timestamp=)
Broker:
openWB/chargepoint/13/get/connected_vehicle/soc

Code: Alles auswählen

{"fault_str": "Kein Fehler.", "fault_state": 0, "range_charged": 3.07, "range_unit": "km", "range": 342.950354, "soc": 71.0, "timestamp": "11/25/2022, 08:28:25"}
(Oder müsste in der Debug-Meldung auch 'soc_timestamp' und nicht 'timestamp' enthalten sein?)
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Peugeot e2008, Tesla Model Y LR.
LutzB
Beiträge: 3508
Registriert: Di Feb 25, 2020 9:23 am

Re: Feedback Beta 1

Beitrag von LutzB »

An den Zeitstempel müssen wir nochmal ran, daher sind die im UI noch nicht angepasst. Das jetzige Format ist nicht optimal, da es
  • keine Angabe zur Zeitzone enthält
  • Probleme bei der Unterscheidung Sommer-/Winterzeit gibt.
Es wird wohl auf das universelle Epoch hinauslaufen. Ich halte nicht viel von Zeitangaben in Strings, die potentiell fehleranfällig umgewandelt werden müssen.
Benutzeravatar
mrinas
Beiträge: 1910
Registriert: Mi Jan 29, 2020 10:12 pm

Re: Feedback Beta 1

Beitrag von mrinas »

klar danke. Bin bei dir.
Im System so speichern dass es für die Verarbeitung am einfachsten und 100% eindeutig ohne jegliche Interpretation ist (UTC oder epoch), in der UI dann so formatieren das wir Menschen auch etwas damit anfangen können.
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Peugeot e2008, Tesla Model Y LR.
LutzB
Beiträge: 3508
Registriert: Di Feb 25, 2020 9:23 am

Re: Feedback Beta 1

Beitrag von LutzB »

Aktuell kann es bei einem Update dazu kommen, dass der Dienst nach dem Reboot nicht läuft. Ursache ist, dass ein Python Paket fehlt, was in der atreboot.sh erst nachinstalliert wird. Leider ist der Service bis dahin bereits zu häufig abgeschmiert und der Systemd blockiert weitere Startversuche. In dem Fall hilft nur ein manueller Start des Dienstes, wenn die atreboot.sh durch ist, oder ein weiterer Reboot.

Wir prüfen, wie wir das in Zukunft abfangen können.
aiole
Beiträge: 6888
Registriert: Mo Okt 08, 2018 4:51 pm

Re: Feedback Beta 1

Beitrag von aiole »

Nach dem letzten update "2022-11-25 13:55:56 +0100 [b50f3985]" bleibt die main beim Vortag stecken. Nix geht mehr (auch keine Modusumstellungen) - reboot hilft auch nicht. Was ist zu tun?
Ist es ev. der o.g. fehlende Dienst?

main-log:

Code: Alles auswählen

atreboot.sh started
no restore pending, normal startup
cleaning obsolete python cache folders...
/var/www/html/openWB/packages/modules/sma_sunny_boy: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/openwb_bat_kit: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/powerdog: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/sungrow: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/janitza: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/enphase: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/fronius: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/siemens: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/alpha_ess: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/openwb_pv_kit: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/studer: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/sma_webbox: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/mqtt: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/solarmax: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/kostal_piko: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/batterx: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/http: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/sma_sunny_island: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/huawei: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/victron: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/openwb_flex: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/ip_evse: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/virtual: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/carlo_gavazzi: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/sunny_island: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/sunways: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/saxpower: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/external_openwb: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/openwb_pro: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/lg: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/smartwb: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/solaredge: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/evnotify: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/json: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/solax: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/tesla: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/siemens_sentron: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/vwid: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/good_we: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/byd: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/sma_modbus_tcp: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/bmw: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/openwb_evu_kit: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/sma_shm: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/discovergy: containing only cache without sources -> will be removed
/var/www/html/openWB/packages/modules/sonnenbatterie: containing only cache without sources -> will be removed
python cache cleanup done
LAN/WLAN...
apache default site...
...ok
checking required apache modules...
headers (enabled by site administrator)
headers already enabled
ssl (enabled by site administrator)
ssl already enabled
proxy_wstunnel (enabled by site administrator)
proxy_wstunnel already enabled
apt packages...
check mosquitto installation...
mosquitto.conf already up to date
mosquitto openwb.conf already up to date
mosquitto_local.conf already up to date
mosquitto openwb_local.conf already up to date
mosquitto done
python packages...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: jq==1.1.3 in ./.local/lib/python3.9/site-packages (from -r /var/www/html/openWB/requirements.txt (line 1)) (1.1.3)
Requirement already satisfied: paho_mqtt==1.6.1 in ./.local/lib/python3.9/site-packages (from -r /var/www/html/openWB/requirements.txt (line 2)) (1.6.1)
Requirement already satisfied: pymodbus==2.5.2 in ./.local/lib/python3.9/site-packages (from -r /var/www/html/openWB/requirements.txt (line 3)) (2.5.2)
Requirement already satisfied: pytest==6.2.5 in ./.local/lib/python3.9/site-packages (from -r /var/www/html/openWB/requirements.txt (line 4)) (6.2.5)
Requirement already satisfied: requests_mock==1.9.3 in ./.local/lib/python3.9/site-packages (from -r /var/www/html/openWB/requirements.txt (line 5)) (1.9.3)
Requirement already satisfied: lxml==4.7.1 in ./.local/lib/python3.9/site-packages (from -r /var/www/html/openWB/requirements.txt (line 6)) (4.7.1)
Requirement already satisfied: aiohttp==3.7.2 in ./.local/lib/python3.9/site-packages (from -r /var/www/html/openWB/requirements.txt (line 7)) (3.7.2)
Collecting schedule==1.1.0
  Downloading https://www.piwheels.org/simple/schedule/schedule-1.1.0-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: typing-extensions>=3.6.5 in ./.local/lib/python3.9/site-packages (from aiohttp==3.7.2->-r /var/www/html/openWB/requirements.txt (line 7)) (4.4.0)
Requirement already satisfied: chardet<4.0,>=2.0 in ./.local/lib/python3.9/site-packages (from aiohttp==3.7.2->-r /var/www/html/openWB/requirements.txt (line 7)) (3.0.4)
Requirement already satisfied: async-timeout<4.0,>=3.0 in ./.local/lib/python3.9/site-packages (from aiohttp==3.7.2->-r /var/www/html/openWB/requirements.txt (line 7)) (3.0.1)
Requirement already satisfied: attrs>=17.3.0 in ./.local/lib/python3.9/site-packages (from aiohttp==3.7.2->-r /var/www/html/openWB/requirements.txt (line 7)) (21.4.0)
Requirement already satisfied: yarl<2.0,>=1.0 in ./.local/lib/python3.9/site-packages (from aiohttp==3.7.2->-r /var/www/html/openWB/requirements.txt (line 7)) (1.8.1)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.local/lib/python3.9/site-packages (from aiohttp==3.7.2->-r /var/www/html/openWB/requirements.txt (line 7)) (6.0.2)
Requirement already satisfied: pyserial>=3.4 in ./.local/lib/python3.9/site-packages (from pymodbus==2.5.2->-r /var/www/html/openWB/requirements.txt (line 3)) (3.5)
Requirement already satisfied: six>=1.15.0 in /usr/lib/python3/dist-packages (from pymodbus==2.5.2->-r /var/www/html/openWB/requirements.txt (line 3)) (1.16.0)
Requirement already satisfied: iniconfig in ./.local/lib/python3.9/site-packages (from pytest==6.2.5->-r /var/www/html/openWB/requirements.txt (line 4)) (1.1.1)
Requirement already satisfied: pluggy<2.0,>=0.12 in ./.local/lib/python3.9/site-packages (from pytest==6.2.5->-r /var/www/html/openWB/requirements.txt (line 4)) (1.0.0)
Requirement already satisfied: packaging in ./.local/lib/python3.9/site-packages (from pytest==6.2.5->-r /var/www/html/openWB/requirements.txt (line 4)) (21.3)
Requirement already satisfied: toml in ./.local/lib/python3.9/site-packages (from pytest==6.2.5->-r /var/www/html/openWB/requirements.txt (line 4)) (0.10.2)
Requirement already satisfied: py>=1.8.2 in ./.local/lib/python3.9/site-packages (from pytest==6.2.5->-r /var/www/html/openWB/requirements.txt (line 4)) (1.11.0)
Requirement already satisfied: requests<3,>=2.3 in /usr/lib/python3/dist-packages (from requests_mock==1.9.3->-r /var/www/html/openWB/requirements.txt (line 5)) (2.25.1)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0,>=1.0->aiohttp==3.7.2->-r /var/www/html/openWB/requirements.txt (line 7)) (2.10)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in ./.local/lib/python3.9/site-packages (from packaging->pytest==6.2.5->-r /var/www/html/openWB/requirements.txt (line 4)) (3.0.9)
Installing collected packages: schedule
Successfully installed schedule-1.1.0
load versions...
chgrp: cannot access '/var/www/html/openWB/data/restore/*': No such file or directory
chmod: cannot access '/var/www/html/openWB/data/restore/*': No such file or directory
2022-11-25 15:57:47: boot done :-)
kill: (472): No such process
MQTT-log:

Code: Alles auswählen

A 404 is expected if running node.js dev server!
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.54 (Raspbian) Server at 192.168.110.51 Port 443</address>
</body></html>
Gesperrt