If you change line 25 in my dht11 script from except: to finally: you should see the whole error.
But make sure to revert the change after the problem is fixed.
If you change line 25 in my dht11 script from except: to finally: you should see the whole error.
But make sure to revert the change after the problem is fixed.
@com1cedric
Hi. No problem. If I have time it try to help.
It looks like there will installed two additional python libs in the venv in the tutorial you shared.
Maybe one of the libs is missing in the virtual environment my script creates.
You can add them to the venv with:
cd ~/MagicMirror/modules/MMM-Temperature/scripts
./venvWrapper.py --venv-name py-venv --install-libs lgpio RPi.GPIO
Hi,
I do not use a DHT11 at the moment but my MMM-Temperature should still work
https://github.com/Tom-Hirschberger/MMM-Temperature
Just checked the install process on a Debian Bookworm and it works fine.
@sdetweil Hi sam. My wrapper script will use the python binary in the virtual environment folder. This way the environment will be activated automatically.
@lif
That’s strange…Can you try to start with a new, fresh virtual python environment and install the needed libs again?
Remove old virtual environment:
rm -rf /home/pi/MagicMirror/modules/MMM-Temperature/scripts/py-venv
Install the needed system libs:
sudo apt -y update && sudo apt -y install python3-venv libgpiod2
Re-Create the virtual environment:
cd ~/MagicMirror/modules/MMM-Temperature/scripts
./venvWrapper.py --verbose --venv-name py-venv --create
Re-Install the libs:
cd ~/MagicMirror/modules/MMM-Temperature/scripts
./venvWrapper.py --venv-name py-venv --install-libs adafruit-circuitpython-dht
Run the test again:
cd ~/MagicMirror/modules/MMM-Temperature/scripts
./venvWrapper.py --venv-name py-venv --run ./dht22
If it fails again. Can you please provide the output of
cd ~/MagicMirror/modules/MMM-Temperature/scripts
source py-venv/bin/activate
pip freeze
deactivate
The output should look something like:
Adafruit-Blinka==8.66.1
Adafruit-Blinka-Raspberry-Pi5-Neopixel==1.0.0rc2
adafruit-circuitpython-busdevice==5.2.13
adafruit-circuitpython-connectionmanager==3.1.5
adafruit-circuitpython-dht==4.0.9
adafruit-circuitpython-requests==4.1.13
adafruit-circuitpython-typing==1.12.2
Adafruit-PlatformDetect==3.83.2
Adafruit-PureIO==1.1.11
binho-host-adapter==0.1.6
lgpio==0.2.2.0
pyftdi==0.57.1
pyserial==3.5
pyusb==1.3.1
rpi-ws281x==5.0.0
RPi.GPIO==0.7.1
sysv-ipc==1.1.0
typing_extensions==4.15.0
@lif Hi. Great you want to try one of my modules.
Can you try installing a additional python system package with
sudo apt install python3-rpi-lgpio
I tried the scripts on my newly installed system with Bookworm and everything worked as expected.
Maybe the missing package had been installed with something else I installed on my system.
Hi and sorry for my late replay.
First of all… Please take care that the answer of @sophiasteck contains some misleading information as the array is called cams and not cameras and the module only supports referencing the cameras by their name and Not their ids. Additionall there exists no flag showStream.
The cams array contains objects which need at least the name defined.
According to the logs you posted your config should look something like…
{
module: "MMM-SynologySurveillance",
position: "middle_center",
config: {
debug: true,
ds: [
{
protocol: "https",
host: "x.x.x.x",
port: "xxxx",
user: "xxxx",
password: "xxxxxx",
cams: [
{ name: "Back Doors" },
{ name: "Pool Cam"},
{ name: "Indoor Kitchen"}
],
},
],
},
},
@joey Great you like the module.
Just to clear out some things.
Most of the work did Sam not me. I only hit the merge button. So big thank you to him.
@Cr4z33
Hi and sorry fir the late reply…
Your config of the MQTT module is still missing a “debug: true”. The messages only get logged if debugging is enabled.
{
module: 'MMM-MQTTbridge',
disabled: false,
config: {
debug: true,
mqttServer: "mqtt://:@ipaddress:port",
mqttConfig:
{
listenMqtt: true,
interval: 500,
},
notiConfig:
{
listenNoti: true,
ignoreNotiId: ["CLOCK_MINUTE", "NEWS_FEED"],
ignoreNotiSender: ["system", "NEWS_FEED"],
},
// set "NOTIFICATIONS -> MQTT" dictionary at /dict/notiDictionary.js
// set "MQTT -> NOTIFICATIONS" dictionary at /dict/mqttDictionary.js
},
}
@Cr4z33 Sorry, but I am very busy at the moment.
Did you find any response of the MQTT module in your logs of MagicMirror if you enable the debug option of it?