Docs: Add usage instructions to screen.py

This commit is contained in:
PaulVua
2026-02-17 12:28:58 +01:00
parent 248732bac9
commit f1d716d900

View File

@@ -1,4 +1,26 @@
# Screen Control Script (Kivy)
#
# This script displays a simple "Bonjour" message on the HDMI screen using Kivy.
# It is designed to be run on a device without a desktop environment (headless/framebuffer).
#
# HOW TO RUN (CLI):
# -----------------
# 1. Ensure Kivy is installed (python3-kivy).
# 2. You may need to set the DISPLAY environment variable if running from SSH or outside a graphical session:
# export DISPLAY=:0
# 3. Run the script:
# python3 /home/aircarto/nebuleair_pro_4g/screen_control/screen.py
#
# HOW TO RUN (BACKGROUND):
# ------------------------
# nohup python3 /home/aircarto/nebuleair_pro_4g/screen_control/screen.py > /dev/null 2>&1 &
#
# HOW TO STOP:
# ------------
# pkill -f "screen_control/screen.py"
#
import os import os
os.environ['KIVY_GL_BACKEND'] = 'gl' os.environ['KIVY_GL_BACKEND'] = 'gl'
from kivy.app import App from kivy.app import App