Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gluon SSID Changer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
Gluon SSID Changer
Commits
d307ba97
Commit
d307ba97
authored
8 years ago
by
rubo77
Browse files
Options
Downloads
Patches
Plain Diff
add site.conf validy check
parent
8ee33e0f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+12
-11
12 additions, 11 deletions
README.md
gluon-ssid-changer/check_site.lua
+11
-0
11 additions, 0 deletions
gluon-ssid-changer/check_site.lua
with
23 additions
and
11 deletions
README.md
+
12
−
11
View file @
d307ba97
...
...
@@ -40,6 +40,7 @@ Adapt and add this block to your site.conf:
```
ssid_changer = {
enabled = true,
switch_timeframe = 30, -- only once every timeframe (in minutes) the SSID will change to the Offline-SSID
-- set to 1440 to change once a day
-- set to 1 minute to change every time the router gets offline
...
...
@@ -47,11 +48,11 @@ ssid_changer = {
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
tq_limit_enabled =
false,
-- 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.
tq_limit_max =
'
45
'
, -- upper limit, above that the online SSID will be used
tq_limit_min =
'
35
'
-- lower limit, below that the offline SSID will be used
tq_limit_max = 45,
-- upper limit, above that the online SSID will be used
tq_limit_min = 35
-- lower limit, below that the offline SSID will be used
},
```
...
...
This diff is collapsed.
Click to expand it.
gluon-ssid-changer/check_site.lua
0 → 100644
+
11
−
0
View file @
d307ba97
if
need_table
(
'ssid_changer'
,
nil
,
false
)
then
need_boolean
(
'ssid_changer.enabled'
,
false
)
need_number
(
'ssid_changer.switch_timeframe'
,
false
)
need_number
(
'ssid_changer.first'
,
false
)
need_string
(
'ssid_changer.prefix'
,
false
)
need_string
(
'ssid_changer.suffix'
,
false
)
if
need_boolean
(
'ssid_changer.tq_limit_enabled'
,
false
)
then
need_number
(
'ssid_changer.tq_limit_max'
,
false
)
need_number
(
'ssid_changer.tq_limit_min'
,
false
)
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment