A dockerfile containing lcd4linux and serdisplib for use with various LCD-displays.
- lcd4linux-0.11 (build with python-plugin)
- serdisblib-2.01
- supports Alphacool LCD-displays
- Attach your Display to the computer
- Use lsusb from usbutils-package to indentify the port your display uses. (Example: Alphacool-lcd has VENDOR-ID: 060c and Device-ID: 04eb)
$ lsusb |grep 060c:04eb
Bus 003 Device 006: ID 060c:04eb EEH Datalink GmbH
- Ok, our lcd is on Bus 003 Device 006. Edit last line in in docker-compose.yml-file to reflect your bus and device numbers.
$ vi docker-compose.yml
version: '3'
services:
driver:
image: kaergel/lcd4linux
volumes:
- ./lcd4linux.conf:/lcd4linux.conf
- ./get_measuring_value.py:/get_measuring_value.py
- /etc/hostname:/etc/sysname
restart: always
environment:
- PYTHONPACKAGES="py-cpuinfo"
devices:
- "/dev/bus/usb/003/006:/dev/bus/usb/003/006"
- Edit lcd4linux.conf-file to reflect your display and adapt your lcd screen layout.
$ vi lcd4linux.conf
...
Display SerDispLib {
Driver 'serdisplib'
Port 'USB:060C/04EB'
Model 'ALPHACOOL'
Font '6x8'
Backlight '1'
Rotate '0'
Options ''
}
...
- Start the container
# docker-compose up -d