31 lines
723 B
Python
31 lines
723 B
Python
from decouple import config
|
|
|
|
|
|
userID = config('userID', default='root')
|
|
password = config('password', default='')
|
|
|
|
myems_system_db = {
|
|
'user': userID,
|
|
'password': password,
|
|
'host': '127.0.0.1',
|
|
'database': 'myems_system_db',
|
|
'port': 3306,
|
|
}
|
|
|
|
myems_historical_db = {
|
|
'user': userID,
|
|
'password': password,
|
|
'host': '127.0.0.1',
|
|
'database': 'myems_historical_db',
|
|
'port': 3306,
|
|
}
|
|
|
|
# indicates how long analog values and digital values will be kept in database
|
|
# the longer days the more memory and disc space needed.
|
|
live_in_days = 365
|
|
|
|
# NOTE: By default, energy values in historical db will never be deleted automatically.
|
|
|
|
# indicates if the program is in debug mode
|
|
is_debug = False
|