.
[purpleair-notify.git] / README
blobbcf978f325e284f8b04080e663f6f3f5321f95c4
1 Goal is to receive push notifications through Discord when the average for ten minutes of PM2.5 density measured by one PurpleAir device crosses a threshold.
3 The Ruby script uses:
5 - Heroku Scheduler with 10' frequency
6 - Heroku Redis
7 - Discord private channel
8 - an alternate source of Temperature and Humidity values
10 Humidity (and Temperature) measured by PA sensors are inside the casing and under-estimate real value. Especially within the range of interest. Paper-based particulate filters require humidity below 70% to perform properly.
12 Discord iOS app doesn't require background activity.  Enable push in Notifications.
14 For the script to work it is necessary to:
16 - replace configuration values described with <...> with your own values 
17 - implement the Observatory module