Totally refactored. Split everything in classes. Integrated HTTP server support for a status page. bottle, celery and pyramid supported but I will choose only one. Currently cherrypy looks perfect. Writing results to a database will become optionally and will use SQLAlchemy in the next days. This all is a work in progress and the code should not really be used. I am refreshing my Python skills and I hope the next release will be modular and usable for everybody... stay tuned
This commit is contained in:
parent
3c4aa09bf1
commit
a14fccfb71
16 changed files with 780 additions and 167 deletions
24
etc/config.example.json
Normal file
24
etc/config.example.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"interval": 60,
|
||||
"database_name": "uplink",
|
||||
"database_host": "127.0.0.1",
|
||||
"database_user": "USER",
|
||||
"database_password": "PASSWORD",
|
||||
"httpserver_host": "0.0.0.0",
|
||||
"httpserver_port": 8080,
|
||||
"httpserver_framework": "cherrypy",
|
||||
"mode": "cron",
|
||||
"log_level": "info",
|
||||
"uplinks": [
|
||||
{
|
||||
"provider": "Cable Provider",
|
||||
"ip": "192.168.0.1",
|
||||
"password": "1234"
|
||||
},
|
||||
{
|
||||
"provider": "DSL Provider",
|
||||
"ip": "192.168.1.1",
|
||||
"password": "1234"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue