Program based on RiskLevel, use mongoDB to store risk region information from offical website, and send notice email to specific addresss.
passwd.py
is the config file contain mail sending account and receiving address:
# sending config
account = '[email protected]'
passwd = 'PASSWORD'
# receiver info
receiver = '[email protected]'
Email are sending using zmail moudule, so stmp server are parsed automaticly, only mail account and password are needed.
- mongoDB
- python3
- pymongo
- schedule
- zmail
- pandas
- requests
Please notice that zmail
is only available through pip
- Clone this project
- Install the requirements
- Create
passwd.py
, and config the sending account and reciving account - Start mongoDB
- Start
risk_region.py
- A CUI to config mail infomation and start the service
- Automatic database init process, this should to be done using
insert.py
manually now - Simple plotly app to display the risk region trend or something
- A more decent
config.py