kmcnellis / covid-vaccine-notifier

A Firebase and Twilio-powered sms notification service for finding a COVID Vaccine. Powered by vaccinespotter.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SMS notifications for Vaccine Appointments

About

Uses the api from https://www.vaccinespotter.org to load the avalible appointments every minute. When the appointments_available_all_doses state changes to true, it will notify all subscribers within the specified radius.

Currently only enabled for Colorado and California.

Subscribe

curl --request POST -H "Content-Type:application/json"  -d '{"state": "<CO|CA>, "vaccine":"any", "phone":"<PHONE NUMBER>", "distance":<DISTANCE IN MILES>,"zip":"<YOUR ZIP CODE", "threshold":<Apointements needed per location before notifying>}'   https://vaccine-notifier.web.app/subscribe

Run yourself

Setup

$ firebase use <project>
$ firebase functions:config:set twilio.phone="<number purchased from twilio"
$ firebase functions:config:set twilio.sid="<twilio sid>"
$ firebase functions:config:set twilio.key="<twilio api key>" twilio.secret="<twilio api secret>"
$ firebase functions:config:set maps.key="<google maps geocode api key>"
$ firebase target:apply hosting main <site-id>

Local

$ firebase functions:config:set hosting.url="http://localhost:5001"
$ functions:config:get > .runtimeconfig.json
$ firebase emulators:start

Deploy

$ firebase functions:config:set hosting.url="<real hosting url>"
$ firebase deploy

About

A Firebase and Twilio-powered sms notification service for finding a COVID Vaccine. Powered by vaccinespotter.org


Languages

Language:TypeScript 60.4%Language:HTML 28.6%Language:JavaScript 11.0%