Docker version of project turing-smart-screen-python
7.3K
Source code: https://codeberg.org/waazaa/turing-smart-screenā
This repository provides a Docker image to easily run the turing-smart-screen-python project without installing Python or dependencies on the host system. The application displays various system information (temperature, CPU load, weather, etc.) on a Turing Smart Screen connected via USB.
docker run --name turing-smart-screen \
-e VERSION="3.9.0"
-e COM_PORT="AUTO" \
-e THEME="3.5inchTheme2" \
-e HW_SENSORS="AUTO" \
-e ETHERNET_INTERFACE="eth0" \
-e WLO="" \
-e CPU_FAN="AUTO" \
-e PING="8.8.8.8" \
-e WEATHER_API_KEY="" \
-e WEATHER_LATITUDE=45.75 \
-e WEATHER_LONGITUDE=4.85 \
-e WEATHER_UNITS="metrics" \
-e WEATHER_LANGUAGE="en" \
-e REVISION="A" \
-e BRIGHTNESS="20" \
-e DISPLAY_REVERSE="false" \
--device="/dev/ttyACM0" \
-v $PWD:/app \
waazaafr/turing-smart-screen:latest
services:
turing-smart-screen:
image: waazaafr/turing-smart-screen:latest
container_name: turing-smart-screen
environment:
VERSION: "3.9.0"
COM_PORT: "AUTO"
THEME: "3.5inchTheme2"
HW_SENSORS: "AUTO"
ETHERNET_INTERFACE: "eth0"
WLO: ""
CPU_FAN: "AUTO"
PING: "8.8.8.8"
WEATHER_API_KEY: ""
WEATHER_LATITUDE: 45.75
WEATHER_LONGITUDE: 4.85
WEATHER_UNITS: "metric"
WEATHER_LANGUAGE: "en"
REVISION: "A"
BRIGHTNESS: "20"
DISPLAY_REVERSE: "false"
devices:
- "/dev/ttyACM0:/dev/ttyACM0"
volumes:
- ./app:/app
restart: unless-stopped
| Variable | Description | Default / Example |
|---|---|---|
VERSION | Defines which version of the project to run. Can be: ⢠a version number (e.g. 3.9.0)⢠the keyword source to use the GitHub source directly⢠branch:<branch-name> to use a specific branch from the original repository | 3.9.0 |
COM_PORT | Serial port for the Turing Smart Screen (AUTO for auto-detect) | AUTO |
THEME | Graphic theme used by the display | 3.5inchTheme2 |
HW_SENSORS | Enables hardware sensors (temperature, fans, etc.) | AUTO |
ETHERNET_INTERFACE | Name of the Ethernet network interface | eth0 |
WLO | Name of the Wi-Fi interface (if used) | (empty) |
CPU_FAN | CPU fan sensor to use | AUTO |
PING | IP or domain used for connectivity test | 8.8.8.8 |
WEATHER_API_KEY | OpenWeather API key | (required for weather) |
WEATHER_LATITUDE | Latitude for weather location | 45.75 |
WEATHER_LONGITUDE | Longitude for weather location | 4.85 |
WEATHER_UNITS | Weather units (metric or imperial) | metric |
WEATHER_LANGUAGE | Language for weather descriptions | en |
REVISION | Hardware revision of the screen (A, B, etc.) | A |
BRIGHTNESS | Screen brightness (0ā100) | 20 |
DISPLAY_REVERSE | Rotate display 180° |
| `false` |
Fixed version
VERSION="3.9.0" ā Downloads and runs version 3.9.0 of the official project.
GitHub source
VERSION="source" ā Clones and runs the original repository source code:
https://github.com/mathoudebine/turing-smart-screen-pythonā
Specific branch
VERSION="branch:dev" ā Clones the dev branch from the official repository.
The screen must be accessible by the container via /dev/ttyACM0.
Ensure your Docker user has the required permissions, or run the command with sudo.
The mounted volume (-v $PWD:/app) allows:
Saving local configuration
Accessing logs and generated files
You can change the path as needed.
This Docker project is not the official source code repository. The original project can be found here: š https://github.com/mathoudebine/turing-smart-screen-pythonā
⦠Docker Maintainer: Waazaa
Made with ā¤ļø for Docker community
================================================================
Discord: https://discord.gg/p9xkjEw8tsā
Buy me coffee:
Content type
Image
Digest
sha256:e754c7390ā¦
Size
180.6 MB
Last updated
11 months ago
docker pull waazaafr/turing-smart-screen