mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-09 01:50:06 +01:00
preload variables
This commit is contained in:
parent
6efb781309
commit
40d45538db
24
boswatch.py
24
boswatch.py
|
|
@ -120,6 +120,19 @@ try:
|
|||
print "Verbose Mode!"
|
||||
print ""
|
||||
|
||||
#variables pre-load
|
||||
log("pre-load variables")
|
||||
fms_id = 0
|
||||
fms_id_old = 0
|
||||
fms_time_old = 0
|
||||
|
||||
zvei_id = 0
|
||||
zvei_id_old = 0
|
||||
zvei_time_old = 0
|
||||
|
||||
useMySQL = 0
|
||||
useHTTPrequest = 0
|
||||
|
||||
#ConfigParser
|
||||
log("reading config file")
|
||||
try:
|
||||
|
|
@ -148,16 +161,7 @@ try:
|
|||
|
||||
except:
|
||||
log("cannot read config file","error")
|
||||
|
||||
#variables pre-load
|
||||
log("pre-load variables")
|
||||
fms_id = 0
|
||||
fms_id_old = 0
|
||||
fms_time_old = 0
|
||||
|
||||
zvei_id = 0
|
||||
zvei_id_old = 0
|
||||
zvei_time_old = 0
|
||||
|
||||
|
||||
if useMySQL: #only if MySQL is active
|
||||
log("testing MySQL connection")
|
||||
|
|
|
|||
Loading…
Reference in a new issue