Tutorial - Install openwb 1.9 in 2023

Fragen zur Nutzung, Features, usw..
derNeueDet
Beiträge: 4385
Registriert: Mi Nov 11, 2020 7:16 pm
Has thanked: 1 time
Been thanked: 12 times

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von derNeueDet »

Bullseye und V1.9 ist ne schlechte Idee. Bullseye hat kein Python2 an Bord. V1.9 basiert aber teilweise noch auf Python 2.
Buster ging früher ohne Probleme zu installieren, aber ich glaub seit die Pakete ins Archiv verschoben wurden muss man das anpassen.

Wenn du ne Kaufbox hast, dann kannst du aber ne neue SD beim Support anfordern
10kWp PV mit SMA Tripower 10000TL-10 (PE11 mit SDM72V2); 2,4kWp mit Solis 2.5 G6 (EE11 mit SDM120). OpenWB Standard+. EVU EM540 an einem Raspi mit Venus OS. BEV Mercedes EQA 250 (07/2023) und EQA 300 (06/2024)
smithloo
Beiträge: 2
Registriert: Di Feb 20, 2024 3:12 pm
Kontaktdaten:

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von smithloo »

Ich starte es erneut, warte 2 Minuten, aber das Ergebnis ist das gleiche.
Auf dem Display wird nur der Linux-Desktop angezeigt.
besuche unsere Webseite Backlink seo company
dawansch
Beiträge: 2
Registriert: Mo Feb 26, 2024 1:40 pm

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von dawansch »

Habe auch massive Probleme und bekomme 1.9 mit Buster nicht zum laufen.
Das Log wirft folgenden Fehler aus

Code: Alles auswählen

Traceback (most recent call last):
  File "runs/mqttpub.py", line 31, in <module>
    main()
  File "runs/mqttpub.py", line 17, in main
    client = mqtt.Client("openWB-python-bulkpublisher-" + str(os.getpid()))
  File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 767, in __init__
    "Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details"
ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details
Anscheinend wurde das Paho Interface geändert, laut: https://stackoverflow.com/questions/779 ... sion-error

Und ließe sich fixen mit:

Release 2.0.0 of the Paho Python MQTT includes breaking changes; this means that code written for v1.x will not work without some (minimal) modifications. As v2.0.0 was only released a few days ago (11th Feb 2024) most examples, including the one you reference, will not work.

The changes required are documented here (or here); in your case it's likely that the only change needed is add a single parameter changing:

client = mqtt_client.Client(client_id)

to:

client = mqtt_client.Client(mqtt_client.CallbackAPIVersion.VERSION1, client_id)

This will configure the library to use the v1 callback API (as used with older versions of the library). I would recommend reading the document linked above and planning to migrate to CallbackAPIVersion.API_VERSION2.

An alternative option would be to install a v1 release (v1.6.1 is the latest; pip install "paho-mqtt<2.0.0" will install this). V2 does include quite a few fixes/enhancements so it is worth considering using that version.
Ich habe versucht paho-mqtt>2 zu installieren. Installation lief auch durch aber das Log zeigt weiterhin den Fehler an. Vermute es liegt an den verschiedenen Python2/Python3 Environments und ich bin zu blöd das besser hinzubekommen.
Ist irgenjemand anderes auch über das Problem gestolpert?
Thomas Braunhofer
Beiträge: 10
Registriert: Do Jul 22, 2021 5:02 pm

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von Thomas Braunhofer »

Kann mir hier jemand weiterhelfen welches System ich installieren muss für OpenWB 1.9 auf einem PI 3 B+?

Vielen Dank!
LutzB
Beiträge: 3706
Registriert: Di Feb 25, 2020 9:23 am
Been thanked: 4 times

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von LutzB »

Einfach mal den Anfang dieses Beitrags lesen. ;)
dawansch
Beiträge: 2
Registriert: Mo Feb 26, 2024 1:40 pm

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von dawansch »

ich bin am verzweifeln. bekomme es irgendwie nicht installiert...

wenn ich der anleitung folge (nicht ganz klar ob bullseye geht oder zwingend buster installiert werden muss, habe beides probiert aber leider ohne erfolg)
Mit direktem Image über den genannten flasher kann ich mich per ssh gar nicht einloggen da wohl der standarduser/pw nicht mehr von raspbian auf pi gesetzt wird.
Über den Image Konfigurator (raspberry pi imaging utility) kann man das PW setzten (user pi und pw) und darüber dann auch flashen. Alle weiteren Schritte gehen und werfen keine Fehler aber die OpenWB Webseite ist dann nicht erreichbar. Also es scheint gar kein http server zu starten.
Irgendwer eine Idee?
tonschmied72
Beiträge: 2
Registriert: Do Mai 16, 2024 5:59 am

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von tonschmied72 »

Ich kann mich der Bitte um eine aktualisierte Anleitung nur anschließen. Egal ob Buster oder Bullseye, das Installationsscript läuft auf Fehler auf, sodass keine funktionierende Installation möglich ist.
Die Software 2.x scheint mit meiner Hardware nicht klarzukommen (sieht EVSE und/oder Zähler nicht), so bin ich auf 1.9 angewiesen und der Pi2, der das bisher regelt ist dann doch in die Jahre gekommen. Als Ersatz liegt seit dem Winter ein Pi4 hier, auf dem mein 1.9er Image, mangels Unterstützung der Hardware, nicht läuft.
DIY-Wallbox mit openWB
1x8,4kWp Fronius WR mit 10kW BYD-Speicher
1x4,4kWp Fronius WR
Tesla Model 3 LR
Zero SR/F
openWB
Site Admin
Beiträge: 8321
Registriert: So Okt 07, 2018 1:50 pm
Been thanked: 12 times

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von openWB »

Die Software 2.x scheint mit meiner Hardware nicht klarzukommen (sieht EVSE und/oder Zähler nicht),
Ich vermute mit minimalen Anpassungen wird das. Dann wärst du up2date!
Supportanfragen bitte NICHT per PN stellen.
Hardwareprobleme bitte über die Funktion Debug Daten senden mitteilen oder per Mail an support@openwb.de
Freed
Beiträge: 7
Registriert: Sa Aug 24, 2024 1:19 pm

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von Freed »

courage2000 hat geschrieben: Do Sep 21, 2023 8:45 am The official github page has old info, so the latest Rpi OS Buster installer does not work.


Install OpenWB on Rpi with Bullseye, step by step:

1. Write this official Bullseye image with BalenaEtcher on microSD
2. To activate ssh, Create an empty text file called ssh into the boot partition.
3. Insert the MicroSD card into Rpi and boot.
4. Login via SSH with Terminal or Putty

Code: Alles auswählen

user: pi
password: raspberry
Not working - bullseye has no default ssh-user (pi is working,but no password) for this you need the Raspi Image Creator where you can choose an user and set a password, set the hostname and activate ssh (no need for the ssh file).
courage2000 hat geschrieben: Do Sep 21, 2023 8:45 am
4.1 in ssh run raspi-config

Code: Alles auswählen

sudo raspi-config
- set the hostname to openwb
- activate wait for network on boot
- extend the file system on microsd
- automatically boot on the desktop as pi user
[/quote}
->it needs (and ask for) a reboot
courage2000 hat geschrieben: Do Sep 21, 2023 8:45 am
5. Run those commands via ssh, logged as pi user (not root):

Code: Alles auswählen

sudo apt update
suto apt upgrade -y -q
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo restart

Code: Alles auswählen

sudo apt update
sudo apt upgrade -y -q
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo reboot
wäre der funktionierende code

courage2000 hat geschrieben: Do Sep 21, 2023 8:45 am


6. Create the script to install OpenWB (modified from the original)

Code: Alles auswählen

sudo nano /home/pi/openwb-install.sh
Paste the content of the attached openwb-install.sh.txt

openwb-install.sh.txt

Save with Ctrl+x
Hier sind etliche Fehler drinnen.
So sind viele Packages nicht erreichbar. Angefangen mit python-pip.
dafür gibt es die Lösung (gefunden auf https://www.askpython.com/python/exampl ... -candidate):
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Then run it with sudo:
sudo python get-pip.py

Dann noch:
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
sudo apt install php php-mysql php-curl php-json php-cgi libapache2-mod-php^C

hier hab ich jetzt mal ausgesetzt, weil es in meinen augen schon ziemlich krass viel nervkram ist. dafür bin ich auch nicht tief genug in dem thema drinnen. mit der stretch hat es ja halbwegs funktioniert, nun probiere ich noch bustian aus.


also... don´t do it xD
Freed
Beiträge: 7
Registriert: Sa Aug 24, 2024 1:19 pm

Re: Tutorial - Install openwb 1.9 in 2023

Beitrag von Freed »

Also... es läuft wie folgt mit einer raspi 3b+ (aktuell):

Download von stretch:
https://downloads.raspberrypi.org/raspb ... tretch.zip
Download von balena etcher (mit dem image writer von raspberry funzt es nicht)
https://objects.githubusercontent.com/g ... tet-stream

dann noch die start, fix und boot-dateien von bullseye (funktioniert sonst nicht mit den neuen 3b+-boards):
https://uploadnow.io/f/rtBhy14 (ssh-datei ist auch schon dabei)
wenn der download down ist, kann man auch einfach die neuste bullseye runterladen und die dateien rausziehen : https://www.raspberrypi.com/software/operating-systems/
danach dann natürlich noch selber eine ssh - datei erstellen (für win: win+r, cmd und dann "fsutil file createnew ssh 1024"

die raspbian entzippen(wichtig!) und dann mit balena auf microsd flashen. danach nochmal einstecken (wird nach dem flash ausgeworfen in windoof) und die 10 dateien:
bootcode.bin, fixup.dat, fixup_cd.dat, fixup_db.dat, fixup_x.dat, fixupstart\start.elf, start_cd.elf, start_db.elf, start_x.elf, ssh

einfügen
*nachtrag* noch das hier in putty eingeben:
pip3 install paho-mqtt python-etcd

danach sollte man eigentlich der normalen anleitung weiterkommen. hat zumindest bei mir funktioniert, obwohl die
https://raw.githubusercontent.com/snapt ... install.sh nicht so ganz aktuell ist und fehler produziert.


https://openwb.de/main/wp-content/uploa ... nWB_v2.pdf


hoffe das hat geholfen.
Antworten