https://github.com/googtech/weather
🌈 Get the weather information then ouput voice prompt and send it to your WeChat on the specified time.
https://github.com/googtech/weather
baidu-aip python37 raspberry-pi serverchan voice-prompt weather
Last synced: 10 months ago
JSON representation
🌈 Get the weather information then ouput voice prompt and send it to your WeChat on the specified time.
- Host: GitHub
- URL: https://github.com/googtech/weather
- Owner: GoogTech
- Created: 2020-12-20T06:51:27.000Z (about 5 years ago)
- Default Branch: raspi-env
- Last Pushed: 2020-12-27T11:33:28.000Z (about 5 years ago)
- Last Synced: 2025-02-12T05:13:34.224Z (12 months ago)
- Topics: baidu-aip, python37, raspberry-pi, serverchan, voice-prompt, weather
- Language: Python
- Homepage: https://raspi.website
- Size: 133 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather Voice Prompt
🌈 Get The Weather INFO Then Ouput Voice Prompt And Send It To Your WeChat
## OS
* `Raspberry Pi 4B 4GB`
## Env
* `Python 3.7`
* `urllib`
* `apscheduler`
* `baidu-aip`
* `Baidu AIP SDK( aip-python-sdk-2.2.15 )`
## How To Run On RasPi 4B
1. Firstly you need to install some dependencies.
> $ pip3 install apscheduler
> $ cd aip-python-sdk-2.2.15
> $ pip3 install baidu-aip
> $ python3.7 setup.py install
2. Then open the `config.py` file and add your `Baidu API` and `ServerChan` configuration information into it.
3. Finally run it.
> $ python3.7 weather.py
## Bug fixed
* [ImportError no module named 'xxx'. . .](https://stackoverflow.com/questions/62154632/importerror-no-module-named-playsound)
* [ValueError: Namespace Gtk not available. . .](https://www.e-learn.cn/topic/3787817)
## Thanks
* [ServerChan](http://sc.ftqq.com/3.version)
* [Baidu AI of voice technology](https://ai.baidu.com/ai-doc/SPEECH/)
* [Weather voice prompt by python](https://www.cnblogs.com/daniumiqi/p/12171186.html)
* [How to Text To Speech by baidu AI](https://blog.csdn.net/weixin_44897649/article/details/103173247)