Head on over to your flow account and search under projects for the following project. At the time of writing V002 is the current version. You'll want to clone this project into your own workspace.
Once cloned, head over to the first workspace/tab entitled App Config and Setup and scroll to the top where you will find the main configuration node. Double click to edit the contents.
In the config node there are a number of properties that need to be set. At the top the nodes are related to SafeSound configuration and include the email addresses and phone numbers of vendor and client. Beneath this are default values for various trigger settings. There are three separate trigger settings.
- The input and output levels (in voltage) for sending a message to the vendor. Set these for the lowest desired warning levels. When the input or output level in either channel exceeds these settings a message will be sent to the vendor.
- The input and output levels (in voltage) for sending a message to the client. Set these a medium desired warning levels. When the input or output level in either channel exceeds these settings a message will be sent to the client. Both the vendor and client settings include a reset component and will send another message when the level drops back below the reset level. The reset level is defined as a proportion of the input/output level by additional configuration settings.
- The input and output dim/disconnect levels (in voltage) for either dimming the input circuits or disconnecting the output circuits. This level should be set at the highest possible levels as it will actually interact with the hardware.
The settings can be configured once and forgotten for fixed systems, if they need to be changed there is a crude web application that provides a form to change these levels. At the current time there is no security so anyone with the URL would be able to change the operation of SafeSound.
In addition to setting the parameters for SafeSound, it is necessary to follow the same procedure used for the example app to configure M2X by setting the M2X id other network parameters as described in the ATT howto guide that comes with the IOT kit.
Once you have configured the various ID parameters use the same procedure described in the IOT kit to have the safe sound create the streams and triggers in M2X. You should have a total of six streams and 12 triggers. The streams track input and output voltage as well as temperature and humidity as measured from the Cell Modem board. The triggers capture input and output voltages for each of the three trigger targets described above. There are two triggers for each target condition, one for each channel. Either trigger sets the trigger condition. At the present time, the dim/disconnect signal for either channel triggers the dim/disconnect for both channels. However, this changed by copying the disconnect/dim nodes in the Sensors/Triggers page.