Hi @randpop,
I’m running this plugin together with the fix by wunderbear and a Unitymedia-Fritzbox 6490 with FritzOS 7.02
fritz_access.py does also work an gives a reasonable output.
Regards
Hi @randpop,
I’m running this plugin together with the fix by wunderbear and a Unitymedia-Fritzbox 6490 with FritzOS 7.02
fritz_access.py does also work an gives a reasonable output.
Regards
I’m just cutting the power of the backlight with a relais and MMM-PIR-Sensor. This way the screen is really black and invisible while it’s up immediatly if the sensor detects motion.
@sdetweil I used your script
fixuppm2.sh
when I set up the mirror
Now I modified ~/MagicMirror/installers/mm.sh to
#!/bin/bash
# This file is still here to keep PM2 working on older installations.
cd ~/MagicMirror
source venv/bin/activate
DISPLAY=:0 npm start
but that doesn’t work, error occures again because node_helper doesn’t seem to use the venv.
@sdetweil Thanks, so it should look like this?
#!/bin/bash
# This file is still here to keep PM2 working on older installations.
cd ~/MagicMirror
export PYTHONPATH="/home/pi/venv/bin/python"
DISPLAY=:0 npm start
@xIExodusIx that’s due to changes in the handling of the python packages. I installed “fritzconnection” in a virtual environment:
python -m venv venv
source venv/bin/activate
python -m pip install fritzconnection
to make the Callmonitor use the fritzconnection, I edited the nodehelper.js (in ~/MagicMirror/modules/MMM-FritzBox-Callmonitor-py3) in line 212 to look like this (user is “pi”, must be adapted if you use another user):
pythonPath: '/home/pi/venv/bin/python',
Don’t know if it’s the best solution, but it works.
@ichel For me it also stopped working, but I’m unsure if it’s due to the module or due to a changed configuration on school’s side. Respective issue.
MMM-DWD-WarnWeather is now fixed.
@sdetweil Hi Sam, I deleted the package-lock.json, after that npm install still fails with the same error message. npm install electron rebuild also doesn’t help…
I wiped the module folder and reinstalled it from github, now it works.
I have the same error. Atteached the console output. Logfile can be found here.
An unhandled error occurred inside electron-rebuild
Could not detect abi for version 6.1.7 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
Error: Could not detect abi for version 6.1.7 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
at Object.getAbi (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-abi/index.js:30:9)
at new Rebuilder (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:122:28)
at rebuildWithOptions (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:393:23)
at Object.doRebuild [as rebuild] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:400:16)
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:115:33)
at Generator.next (<anonymous>)
at fulfilled (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:5:58)
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall: `electron-rebuild -e ../../node_modules/electron`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-04-02T08_25_32_202Z-debug.log
processing complete for module MMM-PIR-Sensor
I’ve changed to MMM-TomTomTraffic which works correctly. But I’m still wondering why MMM-TomTomTrafficincidents doesn’t.