Skip to content

raspberry-pi-org/weather

raspi-env
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 1 commit ahead of GoogTech:raspi-env.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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

  1. Then open the config.py file and add your Baidu API and ServerChan configuration information into it.

  2. Finally run it.

$ python3.7 weather.py

Bug fixed

Thanks

About

🌈 Get the weather information then ouput voice prompt and send it to your WeChat on the specified time.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%