Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blackbbc/tongji-electricity-fare-query
https://github.com/blackbbc/tongji-electricity-fare-query
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/blackbbc/tongji-electricity-fare-query
- Owner: blackbbc
- Created: 2014-11-04T06:43:46.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-08T08:33:37.000Z (over 9 years ago)
- Last Synced: 2024-04-16T12:16:54.698Z (8 months ago)
- Language: Python
- Size: 152 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#同济电费提醒
##更新:
更新API
##配置环境
- Ubuntu 14.10##使用说明
1. 将`query.py`和`sendmail.py`放到任意一个文件夹
2. 周期性工作
`crontab -e`进入vim编辑器,最后一行添加
```
0 12 * * * python path/to/query.py
```
每天中午12点服务器会查询电费,小于10度电就会发邮件
PS:`crontab`是Linux下例行性工作调度的命令