| Total Complexity | 0 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # definition of the database |
||
| 2 | myems_system_db = { |
||
| 3 | 'user': 'root', |
||
| 4 | 'password': '!MyEMS1', |
||
| 5 | 'host': '127.0.0.1', |
||
| 6 | 'database': 'myems_system_db', |
||
| 7 | 'port': 3306, |
||
| 8 | } |
||
| 9 | |||
| 10 | myems_historical_db = { |
||
| 11 | 'user': 'root', |
||
| 12 | 'password': '!MyEMS1', |
||
| 13 | 'host': '127.0.0.1', |
||
| 14 | 'database': 'myems_historical_db', |
||
| 15 | 'port': 3306, |
||
| 16 | } |
||
| 17 | |||
| 18 | # indicates how long analog values and digital values will be kept in database |
||
| 19 | # the longer days the more memory and disc space needed. |
||
| 20 | live_in_days = 365 |
||
| 21 | # note: By default, energy values in historical db will never be deleted automatically. |
||
| 22 | |||
| 23 | # indicates if the program is in debug mode |
||
| 24 | is_debug = False |
||
| 25 |