Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Python • Re: troubles using ha-mqtt-discoverable python module (BOOKWORM on Pi zero w)

$
0
0
i got it working

sudo apt install virtualenv python3-virtualenv -y
virtualenv -p /usr/bin/python3 ha_mqtt_discoverable
source ha_mqtt_discoverable/bin/activate
pip3 install ha_mqtt_discoverable
pip3 install rpi.gpio


now how do i get it activated and run a python script from inside the env on boot? assuming it can survive a reboot

Statistics: Posted by boelle — Sun Jun 01, 2025 9:38 pm



Viewing all articles
Browse latest Browse all 8041

Trending Articles