MakerWorld
Electronics
Go to Model
COVID-19 Tracker
0
Downloads
1
Likes
0
Makes
SummaryCOVID-19 Tracker for At-a-glance : https://youtu.be/viHVAZqpwsIC - CasesR - RecoveredD - DeathsHoles are intended for standard 5mm LEDs, and should fit snug with proper tolerance. If not, a quick blast with a lighter on the standoffs should allow the LED to fit in.Rough example of code that runs the flashingLEDs:import requestsimport jsonimport RPi.GPIO as GPIOfrom time import sleepimport threadingCURRENT_DATA = dict()ACTIVE_PINS = {"cases": 22, "recovered": 18, "deaths": 17}CHANGE_INDICATOR_ENABLE = FalseDATA_API_URL = "https://coronavirus-19-api.herokuapp.com/all"def get_data(): """ THis method should obtain from a reputable source the current data for COVID-19 The Return should be a JSON payload in the format of {"cases":n, "recovered":n, "deaths":n} Should this not match, the above reference GPIO in ACTIVE_PINS should be adjusted. This matches for the indicator lites based on the GPIO pin for each led. :retu
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!