Switched from JSON to ini files for configuration, lots of code adds, refactoring and even many design changes.

This commit is contained in:
Johannes Findeisen 2022-09-24 22:34:53 +02:00
commit 779c2f0b48
58 changed files with 1227 additions and 649 deletions

View file

@ -1,9 +0,0 @@
{
"type": "uplink",
"interval": 60,
"notification": "sms",
"host": "192.168.0.1",
"user": "USERNAME",
"password": "PASSWORD",
"info": "Cable Provider"
}

View file

@ -0,0 +1,14 @@
[main]
; identifiers must be unique in the whole configuration so maybe it is better to create a random string for this
; dynamically.
identifier = cable
type = fritzbox
interval = 60
# default delimiters '=' and ':' should be changed to ',' to be more native
notifications = sms:email
email_receivers = admin@example.com:fallback@example.com
sms_receivers = +329084320984:+39804932409
host = 192.168.0.1
user = USERNAME
password = PASSWORD
info = Cable Provider

View file

@ -1,9 +0,0 @@
{
"type": "uplink",
"interval": 60,
"notification": "sms",
"host": "192.168.1.1",
"user": "USERNAME",
"password": "PASSWORD",
"info": "DSL Provider"
}

View file

@ -0,0 +1,12 @@
[main]
identifier = dsl
type = fritzbox
interval = 60
# default delimiters '=' and ':' should be changed to ',' to be more native
notifications = sms:email
email_receivers = admin@example.com:fallback@example.com
sms_receivers = +329084320984:+39804932409
host = 192.168.1.1
user = USERNAME
password = PASSWORD
info = Cable Provider