PierreGode / MMM-PhoneDetect

Detect if phones or devices are in network and turns on and off mirror display.
MIT License
6 stars 2 forks source link

Module repeatedly tries to turn the tv on #6

Open dani4ko03 opened 3 months ago

dani4ko03 commented 3 months ago

The module sends the on command repeatedly which leads to the HDMI1 message in the corner of the TV. My Javascript is not as strong and I can't do it myself but I think it would be better if the module only sends the command once to turn it on and once to turn it off. The PI can still be scanning the network every 5 seconds. I tried to implement it but failed. Please let me know what you think of this and if you would be able to help with this or if I need to start learning some more javascript. 20240712_192639

PierreGode commented 1 month ago

I Will check the code so it won't sent the command all the time.