From 6791d662ff40e7b53b60c3747c9b366220081143 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 15 Sep 2023 10:42:36 +0000 Subject: [PATCH 1/3] log to /dev/shm --- sudoisbot/screen/screen_sub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sudoisbot/screen/screen_sub.py b/sudoisbot/screen/screen_sub.py index 18cc0c1..9190877 100755 --- a/sudoisbot/screen/screen_sub.py +++ b/sudoisbot/screen/screen_sub.py @@ -59,7 +59,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 -- 2.40.1 From 6ec926eed8a7e63a2322fc858b237c7357455c2e Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 15 Sep 2023 10:47:43 +0000 Subject: [PATCH 2/3] Add sudoisbot/screen/requirements.txt --- sudoisbot/screen/requirements.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sudoisbot/screen/requirements.txt 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 -- 2.40.1 From 7a9773b0e9804af904bab0f65c29f1f9981db4c1 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 15 Sep 2023 11:00:24 +0000 Subject: [PATCH 3/3] note about permissions for gpio --- sudoisbot/screen/screen_sub.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sudoisbot/screen/screen_sub.py b/sudoisbot/screen/screen_sub.py index 9190877..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 -- 2.40.1