Docs: Add usage instructions to screen.py
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user