Thingiverse
COVID-19 Tracker
von h8tebringer
0
Downloads
1
Likes
0
Makes
COVID-19 Tracker for At-a-glance : https://youtu.be/viHVAZqpwsI
C - Cases
R - Recovered
D - Deaths
Holes 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 flasing LEDs:
```python
import requests
import json
import RPi.GPIO as GPIO
from time import sleep
import threading
CURRENT_DATA = dict()
ACTIVE_PINS = {"cases": 22, "recovered": 18, "deaths": 17}
CHANGE_INDICATOR_ENABLE = False
DATA_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
C - Cases
R - Recovered
D - Deaths
Holes 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 flasing LEDs:
```python
import requests
import json
import RPi.GPIO as GPIO
from time import sleep
import threading
CURRENT_DATA = dict()
ACTIVE_PINS = {"cases": 22, "recovered": 18, "deaths": 17}
CHANGE_INDICATOR_ENABLE = False
DATA_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
Hast du dieses Modell gedruckt? Einloggen und dein Make teilen!
Melde dich an, um einen Kommentar zu hinterlassen
AnmeldenNoch keine Kommentare – sei der Erste!