openWB 1.9 with EVCC control image download

Fragen zur Nutzung, Features, usw..
courage2000
Beiträge: 57
Registriert: Fr Jun 05, 2020 10:37 pm

openWB 1.9 with EVCC control image download

Beitrag von courage2000 »

So, I like to play with my toys and I don't like to be locked out of my Linux.
I also wanted Wi-Fi access to rPi and the root password was not provided.

I like the openWB hardware but I don't like the openWB software and the German language is a barrier for enthusiasts.

I like the EVCC control software and from documentation, it can control OpenWB 1.9 (in some Wallboxes), so I got a new MicroSD card and got to play with it.

openWB runs on rPi 3b with Jessie (legacy now) and Buster Debian OS.
I've used the Debian Buster OS with all the current updates.

OpenWB install did not go as planned, as there seem to be some installer permission problems and some compatibility issues with the now deprecated Python2.

My wall box - openWB series2 standard+ has a 7-inch LCD with touch.
For this LCD to work in kiosk mode, with all the features, it was a lot of hurt to fix.

Now you can run on the LCD openWB interface or EVCC Details in the documentation.

To know:
- openWB stable 1.9.303
- EVCC 0.120
- it will try to update "chromium-browser" and "EVCC" each day
- reboot each 7 days
- webpage refresh every 6 hours (for EVCC version updates display)
- LCD standby in 10minutes
- SSH active with user pi and password raspberry
- VNC installed, but must be activated from raspi-config
- EVCC is running now in DEMO mode. You need to create your config file - etc.yaml - and when final, put it into /etc/evcc.yaml

Info do disable EVCC and use this image as openWB as default, inside docs.

Use BalenaEtcher to write the image on a minimum 32Gb MicroSD (I did not had a smaller card, sorry)

Docs and download link HERE.

P.S. Use it at your own risk!
demo_evcc.jpg
openwb_evcc.jpeg
kratan75
Beiträge: 61
Registriert: Do Jul 20, 2023 4:58 pm

Re: openWB 1.9 Display anpassen

Beitrag von kratan75 »

Hallo

Ich habe mir auf meine openWB dieses Image 1.93 installiert statt der 2.0er Version, weil ich absolut nicht zufrieden bin mit der neuen Version 2.0.
Mir fehlen 50% der Features welche die version 1.93 noch unterstützt, aber die 2.0er, Stand jetzt nicht mehr.
In meinen Fall benötige ich nicht die EVCC Option, da ich nur einen Ladepunkt habe.
Deswegen habe ich dieses Feature deaktiviert und das Theme Colors der openWB wieder aktiviert.

Das funktioniert zwar, aber irgendwie passt die Display Auflösung nicht zum Original Theme.
Das Bild ist nach Links verschoben und ein wenig zu groß.
Außerdem habe ich noch nicht gefunden wo man den Timeout 10 Minuten für das Display wieder zurücksetzt. Es sollen die Einstellungen von der Originalsoftware wieder wirken.
2023-09-25 19_35_40-openWB Einstellungen und 5 weitere Seiten - Persönlich – Microsoft​ Edge.jpg
Mir fällt auch auf, das dass Display nach 10 Minuten zwar dunkel gesteuert wird (Screensaver), die Hintergrundbeleuchtung aber weiter eingeschaltet bleibt. Das ist unötiger Stromverbrauch und schädigt auf Dauer auch das Display.
IMG_20230925_191045262.jpg
Weiß jemand wie man hier die Originaleinstellungen wieder bekommt ?

LG Andreas
courage2000
Beiträge: 57
Registriert: Fr Jun 05, 2020 10:37 pm

Re: openWB 1.9 with EVCC control image download

Beitrag von courage2000 »

Do you use the image from this thread?

For power Display management activation:

Code: Alles auswählen

sudo echo "@xset dpms" | sudo tee --append /etc/xdg/lxsession/LXDE-pi/autostart
For xscreensaver settings see here:

viewtopic.php?t=7590

Adjust the blanking minutes from

Code: Alles auswählen

sudo nano ~/.xscreensaver

Code: Alles auswählen

timeout:	0:02:00
I don't think the timer from openWB has precedence.

Code: Alles auswählen

http://openwb.local/openWB/web/settings/misc.php
Screenshot 2023-09-25 at 21.09.09.jpg

For the scrollingbars from the interface, I belive the problem is in
/etc/xdg/lxsession/LXDE-pi/autostart

Code: Alles auswählen

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
See to have this line:

Code: Alles auswählen

chromium-browser --noerrdialogs --incognito --disable-pinch --overscroll-history-navigation=0 --kiosk http://localhost/openWB/web/display.php
especially this part:
--noerrdialogs --incognito --disable-pinch --overscroll-history-navigation=0
Also comment out ALL resolutions from /boot/config.txt

Code: Alles auswählen

sudo nano /boot/config.txt

Code: Alles auswählen

#native 840x480 7 inch lcd display
#framebuffer_width=840
#framebuffer_height=480

#vnc resolutin high for settings
#framebuffer_width=1900
#framebuffer_height=1080

#VNC resolution lcd
#framebuffer_width=1680
#framebuffer_height=960

#evcc resolution lcd
#framebuffer_width=1260
#framebuffer_height=720
kratan75
Beiträge: 61
Registriert: Do Jul 20, 2023 4:58 pm

Re: openWB 1.9 with EVCC control image download

Beitrag von kratan75 »

Hello

thanks for your comment.
Now the display is off after short time and it is going on again if I touch the display. :-)
So it is working. :)

But it is still the problem that the picture is not on the right place at the display and it is a little bit to big.
I opened the config.txt, but there are still uncommented the most settings.

This settings if you post, i cannot find there.
Please see code below.

Code: Alles auswählen

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=off

[pi4]
What is wrong ?

Regards
Andreas
courage2000
Beiträge: 57
Registriert: Fr Jun 05, 2020 10:37 pm

Re: openWB 1.9 with EVCC control image download

Beitrag von courage2000 »

That is the browser scroll bar. It's disabled when you have this in the command line:

--kiosk

Code: Alles auswählen

chromium-browser --noerrdialogs --incognito --disable-pinch --overscroll-history-navigation=0 --kiosk http://localhost/openWB/web/display.php
courage2000
Beiträge: 57
Registriert: Fr Jun 05, 2020 10:37 pm

Re: openWB 1.9 with EVCC control image download

Beitrag von courage2000 »

You can also add

--hide-scrollbars

Code: Alles auswählen

chromium-browser --noerrdialogs --incognito --disable-pinch --overscroll-history-navigation=0 --kiosk --hide-scrollbars http://localhost/openWB/web/display.php
kratan75
Beiträge: 61
Registriert: Do Jul 20, 2023 4:58 pm

Re: openWB 1.9 with EVCC control image download

Beitrag von kratan75 »

Today it is to late to test it again. I will continue tomorrow.
I will give you feedback. :)

Many thanks for the hint :-) :idea:

Regards
Andreas
kratan75
Beiträge: 61
Registriert: Do Jul 20, 2023 4:58 pm

Re: openWB 1.9 with EVCC control image download

Beitrag von kratan75 »

Hello

Today I find out, the fault of wrong size resolution of display.
I forgot to comment out the line of resolution of EVCC :-) in boot config.txt

Code: Alles auswählen

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
disable_splash=1
avoid_warnings=1
dtoverlay=disable-bt

#native 840x480 7 inch lcd display
#framebuffer_width=840
#framebuffer_height=480

#vnc resolutin high for settings
#framebuffer_width=1900
#framebuffer_height=1080

#scalled for EVCC interface
###framebuffer_width=1260
###framebuffer_height=720

# openwb - begin
# openwb-version:1
# Do not edit this section! We need begin/end and version for proper updates!
[all]
gpio=4,5,7,11,17,22,23,24,25,26,27=op,dl
gpio=6,8,9,10,12,13,16,21=ip,pu
# openwb - end

Now the displayed picture is bigger and fill the complete screen, now :-)

But I find also out that the display light is after some time again not going "off" and the screen backlight is permanently on.
I find out, that you have in crontab -e three additional lines activatet after this line " #pi user, not root"

Code: Alles auswählen

# crontab -e
#pi user, not root

1 0 * * * /var/www/html/openWB/runs/cronnightly.sh >> /var/log/openWB.log 2>&1
*/5 * * * * /var/www/html/openWB/runs/cron5min.sh >> /var/log/openWB.log 2>&1
@reboot /var/www/html/openWB/runs/atreboot.sh >> /var/log/openWB.log 2>&1
* * * * * /var/www/html/openWB/regel.sh >> /var/log/openWB.log 2>&1
* * * * * sleep 10 && /var/www/html/openWB/regel.sh >> /var/log/openWB.log 2>&1
* * * * * sleep 20 && /var/www/html/openWB/regel.sh >> /var/log/openWB.log 2>&1
* * * * * sleep 30 && /var/www/html/openWB/regel.sh >> /var/log/openWB.log 2>&1
* * * * * sleep 40 && /var/www/html/openWB/regel.sh >> /var/log/openWB.log 2>&1
* * * * * sleep 50 && /var/www/html/openWB/regel.sh >> /var/log/openWB.log 2>&1

#refresh evcc interface each 6 hours
#* */6 * * * DISPLAY=:0 /home/pi/crontabrefresh.sh >/dev/null 2>&1
#* * * * * DISPLAY=:0 /home/pi/crontabrefresh.sh >/dev/null 2>&1


For what are this crontab lines ?
Are this lines neccessary to switch of the display light ?
If i comment out, the screen is permanently on without screensaver. Also the light is permantly on and never get off.

In LXDE-pi/autostart are the following lines.

Code: Alles auswählen

#@lxpanel --profile LXDE-pi
#@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@/home/pi/chromium_start.sh
@chromium-browser --noerrdialogs --incognito --disable-pinch --overscroll-history-navigation=0 --kiosk http://localhost/openWB/web/display.php
#@chromium-browser --noerrdialogs --incognito --disable-pinch --overscroll-history-navigation=0 --kiosk --hide-scrollbars http://localhost/openWB/web/display.php
@xset dpms

@xset dpms
Have you a further hint for me ?

Regards
Andreas
courage2000
Beiträge: 57
Registriert: Fr Jun 05, 2020 10:37 pm

Re: openWB 1.9 with EVCC control image download

Beitrag von courage2000 »

Code: Alles auswählen

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
this should be the content:

Code: Alles auswählen

#@lxpanel --profile LXDE-pi
#@pcmanfm --desktop --profile LXDE-pi
@xset dpms
@xscreensaver -no-splash
sleep 50
@chromium-browser --noerrdialogs --incognito --disable-pinch --overscroll-history-navigation=0 --kiosk http://localhost/openWB/web/display.php
@xscreensaver -no-splash = activate screensaver
@xset dpms = activate power display management
sleep 50 = wait 50s for the browser to start, in order to not have errors (openWB is not yet started)
@chromium-browser = start the browser in kiosk mode

If you've run the installed multe times, you have problems in:

/etc/sudoers.d/010_pi-nopasswd

sudo nano /etc/sudoers.d/010_pi-nopasswd

Check to have only ONE line of:

Code: Alles auswählen

www-data ALL=(ALL) NOPASSWD: ALL
kratan75
Beiträge: 61
Registriert: Do Jul 20, 2023 4:58 pm

Re: openWB 1.9 with EVCC control image download

Beitrag von kratan75 »

Hello

Unfortunately this hint not solve the problem.
The display backlight is not going off, only the screensaver is coming (Black Screen) after maybe 10 minutes.

The settings in Wallbox itself has no any effekt to the time for Backlight OFF

What I can see is after restart a green button which I must press to load the COLORS screen.
(Press to load Interface)
IMG_20230926_211228873.jpg

Is this maybe part off problem ?
Antworten