Closed rubo77 closed 7 years ago
If you want to run the skript only every n minutes, hours or days, you should just change the usr/lib/micron.d file in this repo.
I think it wasn't clear, what I want to achieve here:
This PR just checks every X minutes if it should set the SSID OFFLINE. still every minute the cron job runs and sets it back online every minute if the connection is back.
so this PR would give you the possibility to not to set the SSID OFFLINE everytime there is a short glitch.
Changing the cronjob to less often in /usr/lib/micron.d is not desireable, because then the node wouldnt switch back online directly when the connection is back
The standard is 1 Minute, so nothing changes to the default behaviour.
So please reopen this PR.
Okay, by putting it back online every minute the functionality is much better than I first thought.
But short glitches are already caught by the Schmitt-Trigger.
This way it would be okay for me, but I would like it much better if it would store the number of tries with a low connection quality. That way you could choose to switch to the offline ssid after some tries and trigger a reboot after even more tries.
good Idea, that could be implemented additionally to this PR independently in another PR. so If there is nothing wrong with this PR, this could already be merged?
closes #26