airq-dev / hazebot

Building the 411 for air quality in the United States: a texting platform accessible to all, that provides actionable local information to protect your and your community.
https://www.hazebot.org/
MIT License
9 stars 1 forks source link

Allow US EPA conversion #214

Closed ianhoffman closed 3 years ago

ianhoffman commented 3 years ago

This PR is a great example (if I may say so) of the strategy pattern, of delegation and of dependency injection:

Anyway.

There aren't a lot of tests here, which is a bit unfortunate. But I sort of just want to merge this down and let people start playing with it. We should all set our Hazebot alerting to frequent (maybe once an hour instead of the default once every six hours) and set the threshold to Good instead Medium. And then finally select the US EPA conversion strategy.