diff --git a/sudoisbot/screen/requirements.txt b/sudoisbot/screen/requirements.txt new file mode 100644 index 0000000..f14ef30 --- /dev/null +++ b/sudoisbot/screen/requirements.txt @@ -0,0 +1,6 @@ +inkyphat +pillow +inky[rpi,fonts] +python-dateutil +pyzmq +loguru \ No newline at end of file diff --git a/sudoisbot/screen/screen_sub.py b/sudoisbot/screen/screen_sub.py index 18cc0c1..bae2c29 100755 --- a/sudoisbot/screen/screen_sub.py +++ b/sudoisbot/screen/screen_sub.py @@ -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