ffac / gluon-ssid-changer

Original source of the ssid-changer. Now maintained by eulenfunk - so the package from there is used
Other
6 stars 29 forks source link

add timeframe option to change SSID only every recursion of that timeframe #29

Closed rubo77 closed 7 years ago

rubo77 commented 7 years ago

closes #26

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

rubo77 commented 7 years ago

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.

mmalte commented 7 years ago

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.

rubo77 commented 7 years ago

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?