button + led for wifi on/off - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: button + led for wifi on/off (/showthread.php?tid=696) |
button + led for wifi on/off - Jonny - 2017-08-19 Sorry, I don't mean to bombard folks with questions. I'm just trying to get everything setup. To conserve power I am trying to create a button that will turn off and on the wifiAP. Someone with python 3 knowledge showed me how to and created this code: Code: import subprocess However it seems to always think the AP is off and thus the button always tries to turn it on. I assume this is something to do with how OpenPlotter turns on AP. Though I am not ruling out a different error in the code. Any help to get this working would be great. RE: button + led for wifi on/off - PaddyB - 2017-08-19 (2017-08-19, 08:24 PM)Jonny Wrote: Sorry, I don't mean to bombard folks with questions. I'm just trying to get everything setup. There's a "turn off Wifi access point" in the actions options in openplotter, you might be able to assign a GPIO pin as a digital input and toggle the access point using actions. RE: button + led for wifi on/off - Jonny - 2017-09-27 Sorry for bringing up an old post. I just wanted to say thank you! While I wasn't able to work out how to use it as a toggle action, I did manage to set up two different buttons to do the job. Thanks again! P.S. Sorry for the delay, I've been working on my boat 24/7 at the moment. I've been planing a big sail but the boat I'm rather behind and freaking out |