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.
- GPS device (optional)
- Download WhereAmI and put the executable binary file to your path This is important if you want to use GPS in macOS
- mpg123
sudo apt-get install mpg123
orbrew install mpg123
- lxml
pip install lxml
- gtts
pip install gtts
- urllib3
pip install urllib3
(maybe you have already installed)
You can use this script in tmux directly
tmux new -s WeatherCN
python3 main.py
<C-b d>
nohup python3 main.py &