Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config variables in site.conf and merge with ffac version #5

Closed
rubo77 opened this issue May 26, 2017 · 4 comments
Closed

config variables in site.conf and merge with ffac version #5

rubo77 opened this issue May 26, 2017 · 4 comments

Comments

@rubo77
Copy link

rubo77 commented May 26, 2017

Add conf variables definable in site.conf:

  • minutes - after haw many minutes it may be set to offline
  • first - the first run, where it will be set to offline
  • tq - merge from ffac, if set, then the tq to the next gateway is taken into account
  • disable

All of these variables should be stored via uci as well

closes #3

@rubo77
Copy link
Author

rubo77 commented Jun 1, 2017

suggestion for the config section in site.conf:

ssid_changer = {
  switch_timeframe = 1,   -- only once every timeframe (in minutes) the SSID will change to OFFLINE 
                          -- set to 1440 to change once a day
                          -- set to 1 minute to change every time the router gets offline
  first = 5,              -- the first few minutes directly after reboot within which an Offline-SSID always may be activated
  prefix = 'FF_OFFLINE_', -- use something short to leave space for the nodename (no '~' allowed!)
  suffix = 'nodename',    -- generate the SSID with either 'nodename', 'mac' or to use only the prefix: 'none'
  
  tq_limit_enabled = 0,   -- if false, the offline SSID will only be set if there is no gateway reacheable
                          -- upper and lower limit to turn the offline_ssid on and off
                          -- in-between these two values the SSID will never be changed to prevent it from toggeling every minute.
                          -- TODO: enabled=1 still has to be implemented
  tq_limit_max = '55',    -- upper limit, above that the online SSID will be used
  tq_limit_min = '45'     -- lower limit, below that the offline SSID will be used
}

@rubo77
Copy link
Author

rubo77 commented Jun 7, 2017

This works already in the branch ''configurable".

successful tests:

  • flash without ssid-changer installed with default settings
  • changed settings are kept after sysupgrade
  • flash without ssid-changer installed with other settings than default in site.conf

todo

  • tq einbauen

@rubo77
Copy link
Author

rubo77 commented Jun 7, 2017

strange, the new config doesn't land in /lib/gluon/site.json on the router, so the upgrade script cannot read it.

I Committed the new ssid-changer branch in our site.conf

@rubo77
Copy link
Author

rubo77 commented Jun 8, 2017

now the variables from site.conf are taken successfully

@rubo77 rubo77 closed this as completed Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant