Skip to content

Commit

Permalink
Small edit, testing CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkhamLee committed Apr 12, 2024
1 parent ee90c5e commit 2e09c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IoT/sds011_air_quality_sensor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def send_threshold_alert(pm2, pm10):
# load threshold alert webhook
AIR_ALERT_WEBHOOK = os.environ['CLIMATE_ALERT_WEBHOOK']

message = (f"{SENSOR_ID} reporting air quality above threshold, open window/ventilate room. PM2_5 level: {pm2}, PM10 level: {pm10} ") # noqa: E501
# alerts for now, future plan is to link/hook into an air purifier
message = (f"{SENSOR_ID} reporting air quality above threshold, ventilate room. PM2_5 level: {pm2}, PM10 level: {pm10} ") # noqa: E501

com_utilities.send_slack_webhook(AIR_ALERT_WEBHOOK, message)

Expand Down

0 comments on commit 2e09c0b

Please sign in to comment.