log to /dev/shm and add a requirements.txt file for screen_sub #17

Merged
ben merged 3 commits from ben-patch-1 into main 2023-09-15 11:04:05 +00:00
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,6 @@
inkyphat
pillow
inky[rpi,fonts]
python-dateutil
pyzmq
loguru

View File

@ -47,6 +47,11 @@
# pip install "inky[rpi,fonts]"
#
# apt-get install libopenjp2-7
#
#
# user needs to be in the gpio group
# $ ls -l /dev/gpiomem
# crw-rw---- 1 root gpio 246, 0 Sep 15 12:49 /dev/gpiomem
import argparse
from datetime import datetime, timedelta, timezone
@ -59,7 +64,7 @@ import zmq
from loguru import logger
logger.remove()
logger.add("/tmp/screen_sub.log")
logger.add("/dev/shm/screen_sub.log")
try:
from PIL import ImageFont