This application continuously reads atmospheric CO2 levels in ppm and checks to
see whether the current CO2 levels are cause for concern. When an alarm event is
triggered, then an alarm is sounded and a Twilio message is generated to warn
employees and/or patrons of dangerous CO2 levels. Periodic samples of
atmospheric CO2 are recorded and synced to Notehub
via a Notecard.
co2 is the detected CO2 concentration in parts per million. temp is the
temperature of the MCU on the Notecard. The temperature is impacted by the
utilization of the MCU, but it can still provide a coarse grained representation
of the ambient air temperature. voltage is the power measured on V+, which
is provided to the CO2 sensor and speaker.
alarm_threshold: This is the ppm value where the alarm should trigger.
wifi_ssid: The Notecard WBNAW has a built-in Wi-Fi antenna. It will connect
via cellular out of the box, but if Wi-Fi ssid and password are provided, then
it will prefer to connect over Wi-Fi. You are able to test and deploy this
device in separate locations without having to recompile the firmware.
wifi_password: The Wi-Fi password used to update the current configuration.
To change these values, go to your Notehub project, find the device you wish to
update. Click into the device detail page, then click the Environment tab. Now,
enter your desired values and click Apply Changes:
The next time data is synced to the Notecard, the environment variables will
update on the Notecard.
To see the data.qo Notes on Notehub, navigate to your project page and click
the Events tab on the left-hand side. Here, you should see data.qo Notes with
their speeds and timestamps in the Body column.