Version fix and added a new line...
This commit is contained in:
parent
ea22a979f3
commit
af62c76817
2 changed files with 5 additions and 4 deletions
2
uplink
2
uplink
|
|
@ -32,7 +32,7 @@ from threading import Thread
|
||||||
from uplink import Uplink
|
from uplink import Uplink
|
||||||
|
|
||||||
# Version format: MAJOR.FEATURE.FIXES
|
# Version format: MAJOR.FEATURE.FIXES
|
||||||
__version__ = "0.5.0-development"
|
__version__ = "0.5.1-development"
|
||||||
|
|
||||||
# TODO: CHECK ALL ERROR HANDLING!!!
|
# TODO: CHECK ALL ERROR HANDLING!!!
|
||||||
# TODO: IDEA: Implement a small webserver inline to get statistics and graphs over the network?
|
# TODO: IDEA: Implement a small webserver inline to get statistics and graphs over the network?
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,8 @@ class Uplink(Daemon):
|
||||||
|
|
||||||
def fetch_data(self, config, inc):
|
def fetch_data(self, config, inc):
|
||||||
try:
|
try:
|
||||||
# TODO: Think about using a DB ORM (SQLAlchemy?) to make this program supporting different databases like
|
# TODO: Think about using a DB ORM (SQLAlchemy?) to make this program supporting
|
||||||
# sqlite and Postgres
|
# different databases like sqlite and Postgres
|
||||||
con = pymysql.connect(host=config["database_host"],
|
con = pymysql.connect(host=config["database_host"],
|
||||||
user=config["database_user"],
|
user=config["database_user"],
|
||||||
password=config["database_password"],
|
password=config["database_password"],
|
||||||
|
|
@ -65,7 +65,8 @@ class Uplink(Daemon):
|
||||||
self.time = time.strftime("%H:%M:%S", local_time)
|
self.time = time.strftime("%H:%M:%S", local_time)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fc = FritzStatus(address=config["uplinks"][inc]["ip"], password=config["uplinks"][inc]["password"])
|
fc = FritzStatus(address=config["uplinks"][inc]["ip"],
|
||||||
|
password=config["uplinks"][inc]["password"])
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logger.error(str(str(err) + " on device with ip: " + config["uplinks"][inc]["ip"]))
|
logger.error(str(str(err) + " on device with ip: " + config["uplinks"][inc]["ip"]))
|
||||||
# TODO: Fix to long lines and make the SQL statement more readable
|
# TODO: Fix to long lines and make the SQL statement more readable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue