I'm a complete newbie to using Python & Portainer, so here's a little explanation on my use case before I ask my question.
I run a Pi4 as a Home Automation Server running Homebridge, and I'm planning on upgrading to the Pi5, and will run Homebridge/Scrypted as Docker Containers via Portainer.
On my Pi4, I also run a Python Script (via a Cron job) that takes the temperature reading of its environment via a DHT22 Module connected via GPIO, and I plan to run this via a Python Container under Portainer to run this script in my new setup on the Pi5.
My question - Do I need to do anything differently for the Python script to be able to access the GPIO pins so it can read the temperature/humidity and then store the results in a Database that is running on my NAS.
I run a Pi4 as a Home Automation Server running Homebridge, and I'm planning on upgrading to the Pi5, and will run Homebridge/Scrypted as Docker Containers via Portainer.
On my Pi4, I also run a Python Script (via a Cron job) that takes the temperature reading of its environment via a DHT22 Module connected via GPIO, and I plan to run this via a Python Container under Portainer to run this script in my new setup on the Pi5.
My question - Do I need to do anything differently for the Python script to be able to access the GPIO pins so it can read the temperature/humidity and then store the results in a Database that is running on my NAS.
Statistics: Posted by Lightingman — Tue Jul 30, 2024 10:58 am — Replies 2 — Views 29