Test openWB 2 auf Debian 12 / RPI OS Bookworm

Fragen zur Nutzung, Features, usw..
Basti
Beiträge: 51
Registriert: Di Feb 21, 2023 3:28 pm

Test openWB 2 auf Debian 12 / RPI OS Bookworm

Beitrag von Basti »

!!! use @ your own Risk, Benutzung auf eigene Gefahr, das hier ist nur ein Test und stellt die theoretische Möglichkeit vor. !!!

openWB2 Fork als Machbarkeitsstudie

Hier der Fork

Code: Alles auswählen

https://github.com/Xerolux/openwb-bookworm
Bookworm auf RPI mit dem RPI Imager oder Debian in der VM installieren, user = openwb anlegen und den link unten in der Shell eingeben.
Ich halte den Fork syncron mit dem Master von OpenWB und Ihr könnt damit ganz normal Updates durchführen.

Hier der Link zum installieren

Code: Alles auswählen

curl -s https://raw.githubusercontent.com/Xerolux/openwb-bookworm/master/openwb-install.sh | sudo bash

Viel Spaß beim Testen. Bei Fragen gerne fragen.

PoC = Proof of Concept
use @ your own Risk, Benutzung auf eigene Gefahr, das hier ist nur ein Test und stellt die theoretische Möglichkeit vor.
Ich übernehme keine Haftung auf Schäden oder sonstiges.
Zuletzt geändert von Basti am Sa Dez 16, 2023 10:27 am, insgesamt 8-mal geändert.
Basti
Beiträge: 51
Registriert: Di Feb 21, 2023 3:28 pm

Re: Test openWB 2 auf Debian 12 Proof of Concept

Beitrag von Basti »

hier die Anleitung mit Python 3.11.7. bei Debian 12 oder Ihr nehmt Anleitung 3 mit Standard Python RPI / Debian ist da gleich und Ihr müsste es nicht erst bauen
Schritt 1

Code: Alles auswählen

apt install sudo
adduser openwb
usermod -aG sudo openwb
reboot
Schritt 2
* ab hier noch noch mit dem user openwb arbeiten *

Code: Alles auswählen

sudo apt install curl
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev pkg-config -y
wget https://www.python.org/ftp/python/3.11.7/Python-3.11.7.tar.xz
tar -xf Python-3.11.7.tar.xz
sudo mv Python-3.11.7 /usr/local/share/python3.11
cd /usr/local/share/python3.11
./configure --enable-optimizations --enable-shared --with-ensurepip=install
make
sudo make altinstall
sudo ldconfig /usr/local/share/python3.11
python3.11 --version
sudo apt install python3-venv
python3.11 -m venv /home/openwb/openwb-venv
source /home/openwb/openwb-venv/bin/activate
Schritt 3

Code: Alles auswählen

nano /var/www/html/openWB/requirements2.txt
*foglendes einfügen in die neue Datei*

Code: Alles auswählen

jq
paho_mqtt
pymodbus==2.5.2
pytest
requests_mock
lxml
aiohttp
schedule
PyJWT
ipparser
bs4
pkce
# skodaconnect==1.3.4
evdev
#telnetlib3==2.0.2
cryptography
msal
python-dateutil
umodbus
pysmb
Wichitg: Bei der Shell muss jetzt vor dem User openWB openwb-venv stehen !!

Code: Alles auswählen

curl -s https://raw.githubusercontent.com/openWB/core/master/openwb-install.sh | sudo bash
das openwb install script wird am Schluss bei pip meckern, einfach ignorieren und weiter machen im Text
su -
echo "upload_max_filesize = 300M" > /etc/php/8.2/apache2/conf.d/20-uploadlimit.ini
echo "post_max_size = 300M" >> /etc/php/8.2/apache2/conf.d/20-uploadlimit.ini
exit
cd /var/www/html/openWB
pip3 install -r requirements2.txt
Schritt 4
Startdatei on openWB ändern

Code: Alles auswählen

sudo nano /etc/systemd/system/openwb2.service 
*Zeile ändern in wie folgt:*
ExecStart=/home/openwb/openwb-venv/bin/python3 /var/www/html/openWB/packages/main.py
*Zeile 315 ändern in wie folgt:*

Code: Alles auswählen

nano /var/www/html/openWB/runs/atreboot.sh
if /home/openwb/openwb-venv/bin/pip3 install -r "${OPENWBBASEDIR}/requirements2.txt"; then

sudo reboot



use @ your own Risk, Benutzung auf eigene Gefahr, das hier ist nur ein Test und stellt die theoretische Möglichkeit vor.
Ich übernehme keine Haftung auf Schäden oder sonstiges.
Zuletzt geändert von Basti am Mo Dez 11, 2023 7:22 am, insgesamt 7-mal geändert.
Basti
Beiträge: 51
Registriert: Di Feb 21, 2023 3:28 pm

Re: Test openWB 2 auf Debian 12 Proof of Concept

Beitrag von Basti »

Hier für den RPI, Backup einspielen funktioniert, Systemänderungen müssen danach wieder neu geändert werden damit alles läuft. Laden nicht getestet. So jetzt ist Schluss mit testen und probieren, ausser das interesse steigt.
RPI Imager Bookworm 32Bit lite

Code: Alles auswählen

sudo apt update
sudo apt upgrade
SU Passwort vergeben

Code: Alles auswählen

sudo su
passwd
exit
openwb-venv erzeugen

Code: Alles auswählen

sudo apt install python3-venv
python3 -m venv /home/openwb/openwb-venv
source /home/openwb/openwb-venv/bin/activate
ab jetzt sollte die Console so aussehen " (openwb-venv) openwb@wb1:~ $ "

Code: Alles auswählen

curl -s https://raw.githubusercontent.com/openWB/core/master/openwb-install.sh | sudo bash

Code: Alles auswählen

su -
echo "upload_max_filesize = 300M" > /etc/php/8.2/apache2/conf.d/20-uploadlimit.ini
echo "post_max_size = 300M" >> /etc/php/8.2/apache2/conf.d/20-uploadlimit.ini
exit
Pip Pakete installieren

Code: Alles auswählen

nano /var/www/html/openWB/requirements2.txt
bitte folgendes einfügen

Code: Alles auswählen

jq
paho_mqtt
pymodbus==2.5.2
pytest
requests_mock
lxml
aiohttp
schedule
PyJWT
ipparser
bs4
pkce
# skodaconnect==1.3.4
evdev
#telnetlib3==2.0.2
cryptography
msal
python-dateutil
umodbus
pysmb
typing-extensions
RPi.GPIO

Code: Alles auswählen

cd /var/www/html/openWB
pip3 install -r requirements2.txt
openwb Startdatei ändern

Code: Alles auswählen

sudo nano /etc/systemd/system/openwb2.service
Zeile ändern in wie folgt:
ExecStart=/home/openwb/openwb-venv/bin/python3 /var/www/html/openWB/packages/main.py

Code: Alles auswählen

sudo nano /var/www/html/openWB/runs/atreboot.sh
Zeile 315 ersetzen
if /home/openwb/openwb-venv/bin/pip3 install -r "${OPENWBBASEDIR}/requirements2.txt"; then
sudo reboot

Code: Alles auswählen

sudo nano /etc/systemd/system/openwbRemoteSupport.service
ExecStart=/home/openwb/openwb-venv/bin/python3 /var/www/html/openWB/runs/remoteSupport/remoteSupport.py

Fehler bei mir
- Display nicht getestet
- Remotedienst funktioniert nicht
--> Fehler :

Code: Alles auswählen

A 404 is expected if running node.js dev server!
404 Not Found: http://192.168.178.155/openWB/ramdisk/remote_support.log
use @ your own Risk, Benutzung auf eigene Gefahr, das hier ist nur ein Test und stellt die theoretische Möglichkeit vor.
Ich übernehme keine Haftung auf Schäden oder sonstiges.
Zuletzt geändert von Basti am Mi Dez 13, 2023 10:02 pm, insgesamt 6-mal geändert.
hyper2910
Beiträge: 62
Registriert: So Okt 25, 2020 8:47 pm
Wohnort: Stolberg

Re: Test openWB 2 auf Debian 12 / RPI OS Bookworm

Beitrag von hyper2910 »

Habe die Anleitung 3 befolgt.

Aber da ist irgendwo ein Haken.

Bekomme immer,
Bei der Installation der benötigten Python-Bibliotheken ist ein Fehler aufgetreten! Bitte die Logdateien prüfen.

Und openWB ist noch nicht bereit
Der Systemstart ist noch nicht abgeschlossen.

Bitte warten...
OpenWB Standard+ VWId4 TibberPulse, Deye WR, APSystems WR
Basti
Beiträge: 51
Registriert: Di Feb 21, 2023 3:28 pm

Re: Test openWB 2 auf Debian 12 / RPI OS Bookworm

Beitrag von Basti »

Wurden die Pakete alle im openwb-venv installiert? Hast du das system Script geändert ?
Das hier ist der wichtigste Schritt :
source /home/openwb/openwb-venv/bin/activate
danach mit pip die *.txt installieren .

Schreibe die Anleitung morgen mal schöner und vielleicht mit Bilder
P.S. am Anfang sind immer Fehlermeldungen vorhanden , nur das Warten muss weg sein.
Basti
Beiträge: 51
Registriert: Di Feb 21, 2023 3:28 pm

Re: Test openWB 2 auf Debian 12 / RPI OS Bookworm

Beitrag von Basti »

Bin gerade die Anleitung 3 Schritt für Schritt durchgegangen und es läuft bei mir. Wenn bräuchte ich mehr infos.

Hier der Bootlog als Nachweiß :-)

Code: Alles auswählen

no factory reset pending, normal startup
atreboot.sh started
checking init in /boot/config.txt...
watchdog for atreboot.sh on pid 490 started, waiting for 900s
already up to date
Group membership...
Final group membership: openwb : openwb adm dialout cdrom sudo audio video plugdev games users input render netdev spi i2c gpio
Network...
Wait for connection...RTNETLINK answers: Network is unreachable
.RTNETLINK answers: Network is unreachable
.RTNETLINK answers: Network is unreachable
.RTNETLINK answers: Network is unreachable
.RTNETLINK answers: Network is unreachable
.RTNETLINK answers: Network is unreachable
.
my primary IP: 192.168.178.159
my primary interface: eth0
running as primary, enabling plug'n'play network
apt configuration already up to date
install required packages with 'apt-get'...
Hit:1 http://raspbian.raspberrypi.com/raspbian bookworm InRelease
Hit:2 http://archive.raspberrypi.com/debian bookworm InRelease
Reading package lists...
W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists...
Building dependency tree...
Reading state information...
vim is already the newest version (2:9.0.1378-2).
bc is already the newest version (1.07.1-3).
jq is already the newest version (1.6-2.1).
socat is already the newest version (1.7.4.4-2+rpi1).
sshpass is already the newest version (1.09-1).
sudo is already the newest version (1.9.13p3-1+deb12u1).
ssl-cert is already the newest version (1.1.2).
mmc-utils is already the newest version (0+git20220624.d7b343fd-1).
apache2 is already the newest version (2.4.57-2).
libapache2-mod-php is already the newest version (2:8.2+93).
php is already the newest version (2:8.2+93).
php-gd is already the newest version (2:8.2+93).
php-curl is already the newest version (2:8.2+93).
php-xml is already the newest version (2:8.2+93).
php-json is already the newest version (2:8.2+93).
git is already the newest version (1:2.39.2-1.1).
mosquitto is already the newest version (2.0.11-1.2+deb12u1).
mosquitto-clients is already the newest version (2.0.11-1.2+deb12u1).
python3-pip is already the newest version (23.0.1+dfsg-1+rpt1).
xserver-xorg is already the newest version (1:7.7+23+b1).
x11-xserver-utils is already the newest version (7.7+9).
openbox-lxde-session is already the newest version (0.99.2-4).
lightdm is already the newest version (1.26.0-8+rpt3).
lightdm-autologin-greeter is already the newest version (1.0-5).
accountsservice is already the newest version (22.08.8-6).
chromium is already the newest version (111.0.5563.110-1).
chromium-l10n is already the newest version (111.0.5563.110-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
done
openwb.cron already up to date
openwb2.service definition is already a symlink
openwbRemoteSupport.service already up to date
no restore pending, normal startup
cleaning obsolete python cache folders...
python cache cleanup done
display setup...
autologin configured
mouse cursor configured
lxde session autostart already configured
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
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
install required python packages with 'pip3'...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: paho_mqtt in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 1)) (1.6.1)
Requirement already satisfied: pymodbus==2.5.2 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 2)) (2.5.2)
Requirement already satisfied: pytest in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 3)) (7.4.3)
Requirement already satisfied: requests_mock in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 4)) (1.11.0)
Requirement already satisfied: lxml in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 5)) (4.9.3)
Requirement already satisfied: aiohttp in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 6)) (3.9.1)
Requirement already satisfied: schedule in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 7)) (1.2.1)
Requirement already satisfied: PyJWT in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 8)) (2.8.0)
Requirement already satisfied: ipparser in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 9)) (1.0.2)
Requirement already satisfied: bs4 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 10)) (0.0.1)
Requirement already satisfied: pkce in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 11)) (1.0.3)
Requirement already satisfied: evdev in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 13)) (1.6.1)
Requirement already satisfied: cryptography in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 15)) (41.0.7)
Requirement already satisfied: msal in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 16)) (1.26.0)
Requirement already satisfied: python-dateutil in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 17)) (2.8.2)
Requirement already satisfied: umodbus in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 18)) (1.0.4)
Requirement already satisfied: pysmb in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 19)) (1.2.9.1)
Requirement already satisfied: typing-extensions in /home/openwb/openwb-venv/lib/python3.11/site-packages (from -r /var/www/html/openWB/requirements2.txt (line 20)) (4.9.0)
Requirement already satisfied: six>=1.15.0 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from pymodbus==2.5.2->-r /var/www/html/openWB/requirements2.txt (line 2)) (1.16.0)
Requirement already satisfied: pyserial>=3.4 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from pymodbus==2.5.2->-r /var/www/html/openWB/requirements2.txt (line 2)) (3.5)
Requirement already satisfied: iniconfig in /home/openwb/openwb-venv/lib/python3.11/site-packages (from pytest->-r /var/www/html/openWB/requirements2.txt (line 3)) (2.0.0)
Requirement already satisfied: packaging in /home/openwb/openwb-venv/lib/python3.11/site-packages (from pytest->-r /var/www/html/openWB/requirements2.txt (line 3)) (23.2)
Requirement already satisfied: pluggy<2.0,>=0.12 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from pytest->-r /var/www/html/openWB/requirements2.txt (line 3)) (1.3.0)
Requirement already satisfied: requests<3,>=2.3 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from requests_mock->-r /var/www/html/openWB/requirements2.txt (line 4)) (2.31.0)
Requirement already satisfied: attrs>=17.3.0 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from aiohttp->-r /var/www/html/openWB/requirements2.txt (line 6)) (23.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from aiohttp->-r /var/www/html/openWB/requirements2.txt (line 6)) (6.0.4)
Requirement already satisfied: yarl<2.0,>=1.0 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from aiohttp->-r /var/www/html/openWB/requirements2.txt (line 6)) (1.9.4)
Requirement already satisfied: frozenlist>=1.1.1 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from aiohttp->-r /var/www/html/openWB/requirements2.txt (line 6)) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from aiohttp->-r /var/www/html/openWB/requirements2.txt (line 6)) (1.3.1)
Requirement already satisfied: dnspython in /home/openwb/openwb-venv/lib/python3.11/site-packages (from ipparser->-r /var/www/html/openWB/requirements2.txt (line 9)) (2.4.2)
Requirement already satisfied: beautifulsoup4 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from bs4->-r /var/www/html/openWB/requirements2.txt (line 10)) (4.12.2)
Requirement already satisfied: cffi>=1.12 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from cryptography->-r /var/www/html/openWB/requirements2.txt (line 15)) (1.16.0)
Requirement already satisfied: pyasn1 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from pysmb->-r /var/www/html/openWB/requirements2.txt (line 19)) (0.5.1)
Requirement already satisfied: tqdm in /home/openwb/openwb-venv/lib/python3.11/site-packages (from pysmb->-r /var/www/html/openWB/requirements2.txt (line 19)) (4.66.1)
Requirement already satisfied: pycparser in /home/openwb/openwb-venv/lib/python3.11/site-packages (from cffi>=1.12->cryptography->-r /var/www/html/openWB/requirements2.txt (line 15)) (2.21)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from requests<3,>=2.3->requests_mock->-r /var/www/html/openWB/requirements2.txt (line 4)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from requests<3,>=2.3->requests_mock->-r /var/www/html/openWB/requirements2.txt (line 4)) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from requests<3,>=2.3->requests_mock->-r /var/www/html/openWB/requirements2.txt (line 4)) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from requests<3,>=2.3->requests_mock->-r /var/www/html/openWB/requirements2.txt (line 4)) (2023.11.17)
Requirement already satisfied: soupsieve>1.2 in /home/openwb/openwb-venv/lib/python3.11/site-packages (from beautifulsoup4->bs4->-r /var/www/html/openWB/requirements2.txt (line 10)) (2.5)
done
load versions...
chgrp: cannot access '/var/www/html/openWB/data/restore/*': No such file or directory
chgrp: cannot access '/var/www/html/openWB/data/data_migration/*': No such file or directory
chmod: cannot access '/var/www/html/openWB/data/restore/*': No such file or directory
chmod: cannot access '/var/www/html/openWB/data/data_migration/*': No such file or directory
2023-12-11 08:16:03: boot done :-)
RolandT
Beiträge: 21
Registriert: Di Nov 13, 2018 7:54 pm

Re: Test openWB 2 auf Debian 12 / RPI OS Bookworm

Beitrag von RolandT »

Hallo Basti,

ich habe die Version 2 (Bookworm 64 bit mit Python 3.11) installiert und es läuft sehr gut. Nach einem Update und anschließenden Boot hatte ich jedoch wieder einige Python Fehlermeldungen. Deshalb habe ich im Script "atreboot.sh" vor dem pip Befehlt noch das Source Komanto eingefügt um das Python Env wieder zu setzen. Ebenfalls habe ich den Link für das openwb2.service Script gelöscht und die Datei direkt in das system Verzeichnis kopiert und dort modifiziert, sonst wird es bei einem Update ebenfalls überschrieben. Jetzt läuft es rund. Was ich noch nicht verstehe: Warum wird bei einem Update das ganze System neu gestartet, es würde doch genügen den Service "openwb2" zu stopen und wieder neu zu starten ?

Gruß
Roland
Basti
Beiträge: 51
Registriert: Di Feb 21, 2023 3:28 pm

Re: Test openWB 2 auf Debian 12 / RPI OS Bookworm

Beitrag von Basti »

Hi,

Das freut mich das es läuft. Ja das mit atreboot stimmt. Das hatte ich zuerst nicht in der Anleitung mit Zeile 315. Sollte aber seit ein paar Tagen drin sein ( hoffentlich in allen drei :D ). Das mit dem Start Script stimmt, dann überlebt es auch ein Update , daran habe ich nicht gedacht .
Du solltest noch in der openwbRemoteSupport.service die venv setzen, dann sollte auch die Cloud funktionieren .

Das mit dem Update schau ich mir morgen mal an . Werde morgen mal auf der WB Live testen mit arm 64
Basti
Beiträge: 51
Registriert: Di Feb 21, 2023 3:28 pm

Re: Test openWB 2 auf Debian 12 / RPI OS Bookworm

Beitrag von Basti »

so arm64 auf dem RPI funktioniert mit Display und Cloud + Backup einspielen funktioniert auch.
Wichtig, nach dem Backup einspielen sind folgende Änderungen wieder weg.

Code: Alles auswählen

sudo nano /etc/systemd/system/openwb2.service
Zeile ändern in wie folgt:
ExecStart=/home/openwb/openwb-venv/bin/python3 /var/www/html/openWB/packages/main.py

Code: Alles auswählen

sudo nano /var/www/html/openWB/runs/atreboot.sh
Zeile 315 ersetzen
if /home/openwb/openwb-venv/bin/pip3 install -r "${OPENWBBASEDIR}/requirements2.txt"; then
Wer Cloud nutzen möchte muss das hier ändern.

Code: Alles auswählen

sudo nano /etc/systemd/system/openwbRemoteSupport.service
Zeile ändern in wie folgt:
ExecStart=/home/openwb/openwb-venv/bin/python3 /var/www/html/openWB/runs/remoteSupport/remoteSupport.py

Laden nicht getestet bis jetzt !! Hier der Log interner Ladepunkt

Code: Alles auswählen

2023-12-13 08:44:07,844 - {modules.internal_chargepoint_handler.clients:143} - {ERROR:Internal Chargepoint} - LP0 Device: /dev/ttyUSB0
2023-12-13 08:44:08,014 - {modules.common.evse:57} - {DEBUG:Internal Chargepoint} - FW-Version: 18
2023-12-13 08:44:08,016 - {modules.internal_chargepoint_handler.clients:49} - {ERROR:Internal Chargepoint} - Modbus-ID der EVSE an LP0: 1
2023-12-13 08:44:09,084 - {modules.internal_chargepoint_handler.clients:63} - {ERROR:Internal Chargepoint} - Verbauter Zähler: <class 'modules.common.sdm.Sdm630'> mit Modbus-ID: 105
2023-12-13 08:44:09,245 - {modules.common.evse:57} - {DEBUG:Internal Chargepoint} - FW-Version: 18
2023-12-13 08:44:09,453 - {modules.common.evse:57} - {DEBUG:Internal Chargepoint} - FW-Version: 18
2023-12-13 08:44:09,596 - {modules.common.evse:65} - {DEBUG:Internal Chargepoint} - Angabe der Ströme in 0,01A-Schritten ist aktiviert.
2023-12-13 08:44:09,741 - {modules.common.evse:65} - {DEBUG:Internal Chargepoint} - Angabe der Ströme in 0,01A-Schritten ist aktiviert.
2023-12-13 08:44:09,757 - {modules.common.fault_state:55} - {ERROR:Internal Chargepoint} - Interner Ladepunkt 0: FaultState 2, FaultStr <class 'NameError'> name 'GPIO' is not defined, Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 163, in __init__
    self.init_gpio()
  File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 166, in init_gpio
    GPIO.setwarnings(False)
    ^^^^
NameError: name 'GPIO' is not defined
RolandT
Beiträge: 21
Registriert: Di Nov 13, 2018 7:54 pm

Re: Test openWB 2 auf Debian 12 / RPI OS Bookworm

Beitrag von RolandT »

Das Laden habe ich heute Nacht probiert, funktioniert problemlos. Ich habe allerdings noch einen Bausatz ohne Erweiterungsplatine, die GPIO Pins werden bei mir nicht benutzt. Die Änderungen in den Shell Scripten habe ich separat gesichert und werden im reboot.sh Script wieder über die Orignale kopiert. Die Bookworm Installation sieht gut aus und ich werde mal damit arbeiten.
Antworten