Skip to content

Script that sends text alerts on changes in air quality level, as measured by a specified Purple Air sensor.

Notifications You must be signed in to change notification settings

rg/purple-air-horn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purple-air-horn

Script that sends text alerts on changes in air quality level, as measured by a specified Purple Air sensor.

Designed to be run via cron job, one per Purple Air sensor ID, configured by ENV variables. Example:

PURPLE_AIR_SENSOR_ID=12345
CONVERSION='AQandU'
PHONE_NUMBERS='+15551234567'
* * * * * /path/to/ruby /home/purple-air-horn/air_horn.rb >> /home/log/sensor.${PURPLE_AIR_SENSOR_ID}.log 2>&1

About

Script that sends text alerts on changes in air quality level, as measured by a specified Purple Air sensor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages