| Total Complexity | 0 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | myems_system_db = { |
||
| 2 | 'user': 'root', |
||
| 3 | 'password': '!MyEMS1', |
||
| 4 | 'host': '127.0.0.1', |
||
| 5 | 'database': 'myems_system_db', |
||
| 6 | 'port': 3306, |
||
| 7 | } |
||
| 8 | |||
| 9 | myems_energy_db = { |
||
| 10 | 'user': 'root', |
||
| 11 | 'password': '!MyEMS1', |
||
| 12 | 'host': '127.0.0.1', |
||
| 13 | 'database': 'myems_energy_db', |
||
| 14 | 'port': 3306, |
||
| 15 | } |
||
| 16 | |||
| 17 | myems_historical_db = { |
||
| 18 | 'user': 'root', |
||
| 19 | 'password': '!MyEMS1', |
||
| 20 | 'host': '127.0.0.1', |
||
| 21 | 'database': 'myems_historical_db', |
||
| 22 | 'port': 3306, |
||
| 23 | } |
||
| 24 | |||
| 25 | # indicates in how many minutes to normalize energy consumption |
||
| 26 | # 30 for half hourly |
||
| 27 | # 60 for hourly |
||
| 28 | minutes_to_count = 60 |
||
| 29 | |||
| 30 | # indicates within how many minutes to allow myems-cleaning service to clean the historical data |
||
| 31 | minutes_to_clean = 30 |
||
| 32 | |||
| 33 | # indicates from when (in UTC timezone) to calculate if the energy data is empty or were cleared |
||
| 34 | # format string: '%Y-%m-%d %H:%M:%S' |
||
| 35 | start_datetime_utc = '2019-12-31 16:00:00' |
||
| 36 | |||
| 37 | # the number of worker processes in parallel for meter and virtual meter |
||
| 38 | # the pool size depends on the computing performance of the database server and the analysis server |
||
| 39 | pool_size = 5 |
||
| 40 | |||
| 41 | # indicates the project's time zone offset from UTC |
||
| 42 | utc_offset = '+08:00' |
||
| 43 | |||
| 44 |