Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 848 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 848 Bytes

WeatherCN

This script will check weather.com.cn every 15 minutes with your location and if it is going to rain, the script will speak in chinese that when it is going to rain. The script will wait until the Weather changed.

Requirement

  1. GPS device (optional)
  2. Download WhereAmI and put the executable binary file to your path This is important if you want to use GPS in macOS
  3. mpg123 sudo apt-get install mpg123 or brew install mpg123
  4. lxml pip install lxml
  5. gtts pip install gtts
  6. urllib3 pip install urllib3 (maybe you have already installed)

Usage

Recommanded

You can use this script in tmux directly

tmux new -s WeatherCN
python3 main.py
<C-b d>

Or in background:

nohup python3 main.py &