RebootJeff / cowGoesMoo

If only CVS and Walgreens built wait lists for the COVID vaccine
GNU General Public License v3.0
11 stars 3 forks source link

[feat] [chore] Improve the checker/notifications for Vaccine Spotter #38

Open RebootJeff opened 3 years ago

RebootJeff commented 3 years ago

The future of CowGoesMoo might be to simply rely on the Vaccine Spotter API rather than using Puppeteer to browse various websites. My only hesitation is that the API is "very beta". But if I were to take CowGoesMoo into this new direction, there are a couple of things to address...

[chore] Checker

The initial version of the Vaccine Spotter checker doesn't do any caching, so if there are multiple cities in the search config that are in the same state, the state-specific endpoint will be requested over and over even though it probably hasn't changed yet (i.e., CowGoesMoo will run through each city faster than Vaccine Spotter API's once-per-minute update speed).

[feat] Notification

When the Vaccine Spotter checker was first added to CowGoesMoo, there wasn't much tweaking to the notifications. Ideally, the CowGoesMoo uses the details in the Vaccine Spotter API data to provide more useful info in the CowGoesMoo notifications. For example, the email notification could show a list of vaccine providers (with availability) broken down by location.