Skip to content

A dockerfile with serdisplib and lcd4linux for use with various LCD-displays

License

Notifications You must be signed in to change notification settings

kaergel/docker-lcd4linux

Repository files navigation

docker-lcd4linux

A dockerfile containing lcd4linux and serdisplib for use with various LCD-displays.

Features

  • lcd4linux-0.11 (build with python-plugin)
  • serdisblib-2.01
  • supports Alphacool LCD-displays

Getting started

  1. Attach your Display to the computer
  2. 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 
  1. 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"
  1. 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 ''
}
...
  1. Start the container # docker-compose up -d

About

A dockerfile with serdisplib and lcd4linux for use with various LCD-displays

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published