A Twilio-powered SMS service that returns COVID-19 stats for zipcode, state, and city. Powered by Flask. Coded for the Twilio Hackathon. Hackathon submission post at Dev.to here.
Screenshots of the COVID-19 SMS Update Service in action for various requests.
The COVID-19 SMS Update Service can be used by texting +1(231) 774-2545 with a zipcode, a City, State Code (such as Chicago, IL), or a state (such as IL or Ohio) to get the latest COVID-19 updates for that area. One can call +1(231) 774-2545 to get these instructions read out loud.
- Text +1(231) 774-2545 a zipcode
Input:
77001
Output:
04/13 COVID-19 SMS Update:
Harris County, Texas:
Confirmed Cases: 3629
Deaths: 44
Source: New York Times. Thanks for using COVID-19 SMS Update!
- Text +1(231) 774-2545 a city, state Code
Input:
Kansas City, MO
Output:
04/13 COVID-19 SMS Update for Kansas City, MO:
Platte County, Missouri:
Confirmed Cases: 25
Deaths: 0
Jackson County, Missouri:
Confirmed Cases: 213
Deaths: 7
Clay County, Missouri:
Confirmed Cases: 48
Deaths: 1
Source: New York Times. Thanks for using COVID-19 SMS Update!
- Text +1(231) 774-2545 a state
Input:
WA
Output:
04/13 COVID-19 SMS Update for Washington:
Confirmed Cases: 10411
Deaths: 511
Source: New York Times. Thanks for using COVID-19 SMS Update!
- Call +1(231) 774-2545
See for yourself!
The SMS and voice routes are hosted on the Heroku repo above.
- Clone Repository
git clone https://github.com/ShreyRavi/covid-19-sms.git
- PIP install requirements
pip install -r requirements.txt
- Run Flask app and open browser to
http://localhost:5000/
python3 app.py
- Use
ngrok
and Twilio to configure webhooks for your Twilio account.
The COVID-19 data is sourced from the New York Times's public GitHub repository CSV of COVID-19 data, from here.
- More intelligent request handling
- Efficiency improvements
- Multiple data sources
- More granular reports
- Regular subscription to reports