Keep up to date with the COVID 19 pandemic using an IoT Dashboard and Raspberry Pi. Seeing all the pandemic data at once can be slightly overwhelming, and perhaps you just want to know what’s happening in your own country rather than everywhere else.
While there are many monitoring projects for COVID 19, I wanted to make my own that I could customize and have access to online.
This program takes data from https://www.worldometers.info/coronavirus/ and sends it to the IoT platform, uBeac. From there, the user can pick and choose which data they would like to see and display it on a customized dashboard. Just run the code provided below on a Raspberry Pi, your PC, or any device that can run Python.
Code ExplainedIn the code below, you can adjust the frequency of sending each HTTP response. I resend data to uBeac every 15 minutes, but you can decide how often you want your data updated.
The program sends the data from all the affected countries in JSON format. Various stats including total cases, total recovered, and total tests are collected straight from the website. Other stats are calculated, such as a country's cases compared to the rest of the world as a percent.
Use uBeacTo learn how to use uBeac, just follow the post on OS Monitoring where I provided more in-depth instructions on how to use uBeac.
TLDR:
- Make a free uBeac account
- Create a team
- Create a Gateway and paste the URL from the Gateway into the code below
- Run the program, then make your dashboard!
It's that easy!
If you have any questions about the program, feel free to leave them in the comments. Stay safe and happy connecting from a safe distance!
Comments