mask out all clear password into encrypted ones for myems-modbus.

pull/67/MERGE
winnerineast 2021-10-01 19:05:48 +08:00
parent 84abff5455
commit 808addf1ec
3 changed files with 12 additions and 4 deletions

View File

@ -1,14 +1,20 @@
from decouple import config
userID = config('userID', default='root')
password = config('password', default='')
myems_system_db = {
'user': 'root',
'password': '!MyEMS1',
'user': userID,
'password': password,
'host': '127.0.0.1',
'database': 'myems_system_db',
'port': 3306,
}
myems_historical_db = {
'user': 'root',
'password': '!MyEMS1',
'user': userID,
'password': password,
'host': '127.0.0.1',
'database': 'myems_historical_db',
'port': 3306,

View File

@ -1,3 +1,4 @@
mysql-connector
modbus_tk
schedule
python-decouple

1
myems-modbus-tcp/run.sh Normal file
View File

@ -0,0 +1 @@
python main.py