paviro / MMM-FRITZ-Box-Callmonitor

This an extension for the MagicMirror. It provides a callmonitor for FRITZ!Box users alerting them about incoming calls.
28 stars 22 forks source link

Activate Monitor via relay on incoming call ? #34

Closed AWSW-de closed 2 years ago

AWSW-de commented 5 years ago

Hello, first of all thanks for this module. Works fine so far. :)

I am searching for a solution to turn on my monitor on an incoming call. The monitors power is already switched on and off with an relay combined with an PIR sensor with these commands within an .py-script:

ON: subprocess.call("gpio export 21 out", shell=True)

OFF: subprocess.call("gpio export 21 in", shell=True)

How can I use these commands to activate the monitor when a call comes in and deactivate it again when the call ends?

Thanks in advance.

Kind Regards :)

BoraSchninsky commented 5 years ago

very interesting!!!! any solution for this????

AWSW-de commented 2 years ago

Just for info... I solved this in the end by using NODE RED...