This program in order to pay close attention to the current number of people infected with Corona-Virus, which displays the current statistics on the display. Datasource Data used in this project came from this Website. BeautifulSoup was used to extract the data. Make it work If you just want to print the informations on the terminal, you may just run the fetch_print.py To display it on the LCD2...
Why do this?
Sometimes we face the problem that how can I get the Raspberry Pi's IP address without a screen and unable to view the IP through the router?
This is really a big problem, especially for the newbies. For people who are very familiar with the Raspberry Pi or other embedded systems, they would use the serial port to see the ip address. However, there's not always a USB-TTL serial tools. So, what should we do? For both the newbies and the masters?
Generally, most of us have earphones. So, why not let the Raspberry Pi say its IP address?
Here, I wrote a tool named PiSpeak to do this. You can download it in GitHub.
git clone https://github.com/YuanGao-NAU/PiSpeak.git
This Repo contains one file and one folder.
There are the audio files of the character set used in IP address (number 0~9 and "."). I downloaded them from google translate. They are in English. If you want to change them to your own language, you can replace the files in this folder.
Here's a post about how to download audio files from Google Translate.
You need to install mpg123, so that you can play the video files. Actually, there are sereval softwares to play audio files on Raspberry Pi. However, some of them can not play the files normally. I guess that's because some of the audios are short. So, in order to play the audios normally, I highly recommend you to install the software mpg123.
sudo apt-get install mpg123 -y
Execute after booting
We need to make this program be executed automatically after booting.
- Change the permissions of the file
chmod 777 speak_ip.py
- Add this file path to the file /etc/rc.local before exit 0
After doing these things, you can reboot your Raspberry Pi and use earphones or speakers to listen to the IP address.