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.
Adds a new preferences column to the clients model. Then takes a first stab at creating a fairly generic way to define client preferences and set them via a new flow:
Option (3) will now show a menu of all prefs.
Selecting a pref will show the options for that pref, along with its current value.
Choosing the pref value will set the pref.
The only pref I've added so far is Alerting Threshold, defined as follows:
AQI category below which Hazebot won't send alerts.
For example, if you set this to MODERATE, Hazebot won't send alerts when AQI transitions from GOOD to MODERATE or from MODERATE to GOOD.
I can foresee us adding new preferences like "Conversion Factor" (examples: LRAPA, USEPA) and "Schedule" (to control when you get alerts).
Adds a new
preferences
column to the clients model. Then takes a first stab at creating a fairly generic way to define client preferences and set them via a new flow:The only pref I've added so far is
Alerting Threshold
, defined as follows:I can foresee us adding new preferences like "Conversion Factor" (examples: LRAPA, USEPA) and "Schedule" (to control when you get alerts).
Here are some screenshots of the new flow: