Thingiverse
COVID-19 Tracker
di h8tebringer
0
Download
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
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!