Switched from JSON to ini files for configuration, lots of code adds, refactoring and even many design changes.
This commit is contained in:
parent
1797c37a1d
commit
779c2f0b48
58 changed files with 1227 additions and 649 deletions
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"type": "uplink",
|
||||
"interval": 60,
|
||||
"notification": "sms",
|
||||
"host": "192.168.0.1",
|
||||
"user": "USERNAME",
|
||||
"password": "PASSWORD",
|
||||
"info": "Cable Provider"
|
||||
}
|
||||
14
etc/monipy/monitors/network1/gateway.ini
Normal file
14
etc/monipy/monitors/network1/gateway.ini
Normal 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
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"type": "uplink",
|
||||
"interval": 60,
|
||||
"notification": "sms",
|
||||
"host": "192.168.1.1",
|
||||
"user": "USERNAME",
|
||||
"password": "PASSWORD",
|
||||
"info": "DSL Provider"
|
||||
}
|
||||
12
etc/monipy/monitors/network2/gateway.ini
Normal file
12
etc/monipy/monitors/network2/gateway.ini
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue