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.
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.