Open BKeyport opened 1 month ago
Hi,
as there had been a lot of problems between user installed libs and the system installed python libraries it is not supported to install Python libs system wide anymore (there is a force option but it might be a bad idea to use it. The easiest way will be to setup a Python virtual environment for my module an run the scripts within this venv. Even if I switch to CircuitPython Libs this step will be necessary. I will try to write a wrapper which can be used to call the scripts. The wrapper then can activate the venv before the call of the real script. If there is time left I will take a look at CircuitPython. As the protocol of the sensors did not change there is no real need to update the libs.
Hi,
i released version 0.0.8 of the module a couple of minutes ago which now contains a wrapper to call the python scripts in a virtual environment. The Readme in the scripts folder contains updated instructions of how to use the script.
Please give me feedback if it is working for you.
Edit: As it only was a little more work I changed the Htu21 script to use the circuitpython Lib instead of the old one
It appears your directions to install the HTU21 is out of date. (https://github.com/Tom-Hirschberger/MMM-CommandToNotification/blob/main/scripts/README.md#temperaturehtu21)
Your instructions fail here:
Adafruit hasn't updated that module in years at this point.
Rather, they've gone to https://learn.adafruit.com/adafruit-htu21d-f-temperature-humidity-sensor/python-circuitpython
Maybe it's time to update your scripts to adjust?