GUI / covid-vaccine-spotter

https://www.vaccinespotter.org
MIT License
506 stars 136 forks source link

Add notifications #9

Open GUI opened 3 years ago

GUI commented 3 years ago

Letting people signup for notifications (either e-mail or text) would obviously be even better than making people refresh the page. Already in progress in #1.

iandees commented 3 years ago

Hey @GUI, I was getting started writing this based on detecting changes to the API endpoints and found this ticket while poking around. It's probably a better idea to implement it on the site itself. Do you have any ideas in mind for how you'd want to implement it?

kmarekspartz commented 3 years ago

I've implemented notifications for a specific bounding box using a Google Forms to signup/unsubscribe, and a bash script to scrape both the Forms and the Spotter API for my state, and pass results along to Twilio. If it helps, I can extract my secret keys as ENV variables and share the script here.

patrickdemers6 commented 3 years ago

I created this script for a hackathon. It automatically grabs appointments and if they match the specified criteria, sends a text using Twilio. Here's the link if it can help with this at all--not that it's very complicated.

https://github.com/patrickdemers6/usa-vaccine-alerter

michaelaltmann commented 3 years ago

I wonder if this could be done with RSS. Are there RSS readers that support filtering (appointment by zipcode) and on-phone notification? That would avoid being in the business of managing the SMS output stream.

michaelaltmann commented 3 years ago

Maybe https://feedbin.com/notifier

michaelaltmann commented 3 years ago

As an alternative, we could publish separate RSS feeds for different areas of the US. Maybe roughly 50 mile radius circles.