From 11e5b3635da54f9b8c9655936b409c85252e1b3e Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Tue, 26 Dec 2023 14:28:58 +0100 Subject: [PATCH] update raspi notes --- content/notes/raspberry-pi/index.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/content/notes/raspberry-pi/index.md b/content/notes/raspberry-pi/index.md index 58528de..def1761 100644 --- a/content/notes/raspberry-pi/index.md +++ b/content/notes/raspberry-pi/index.md @@ -81,6 +81,31 @@ $ sudo apt full-upgrade $ sudo reboot ~~~ +### Python 3 + +#### Installing non-packaged modules + +I could not find `aprslib` as a package, so I had to install this myself. +Debian did not allow the installation as it did before, so I had to create +a virtual environment. And it went like this: + +~~~console +$ python -m venv ~/.env +$ source ~/.env/bin/activate +$ pip install aprslib +$ deactivate +~~~ + +I now have a similar line in my crontab: + +~~~crontab +3 * * * * /home/dominic/.env/bin/python /home/dominic/bin/aprs_sendstatus.py +~~~ + +We could also create virtual environments per application, module, package etc. + + + ## Raspberry Pi 3 ## Raspberry Pi 2