7 Email Auto-sending
DeviceBit platform also provides function of Email auto-sending. The real-time measuring value of your sensor can be automatically sent to Twitter, or emailed to the specified email address. An example of Email auto-sending will be illustrated below. Setting steps: Step 1 Set up variables. Click on IOT applications on the top, go to the menu on the left, and click on Variables Settings. Different email message is defined according to different system variables or the measured value range of the sensor.

Pic.1 Variable Settings
First, edit different text, Good morning, Good afternoon or Good evening according to the system variable Hour. Click on Add A Variable, and fill in the information as follows:

Pic.2 Hour Settings
Note the select System Variables for Type. The system variables including the hour, date and time. Select Hour here. Decimal Places leave blank, for decimal is not involved here. Tick Yes for Enable text output. Then, click on Test, we can see that the current time is 22 o’clock, and the text is Good Night (For the time is at the range 20-24)

Pic.3 Test For Hour
Next, set up Date in the same way. Settings for date are very simple. Ignore Enable text output for there is no need to set it. The settings and test results are as follows:

Pic.4 Settings &Test For Date
Finally, set the Twitter text according to different measured humidity values. Here, select Sigle Sensor for Type, select My Device and Humidity for Reference Value . Since all the values are integers, the decimal places do not need to be set. If the measured values are decimals, you can set the decimal places here. The format is .0, .00 and so on. The logical relationship between the output text and the value range is as follows, and you can define it by yourself. Then, click on Test to check the result.

Pic.5 Settings & Test For Humidity
The above settings for variables are complete. Of course, there are more settings for more complex logical relationships. You can select Sensor Group for Type, and Average or Sum and so on for Synthetic Pattern. You can select multiple sensors and do more researches by yourself.

Pic.6 More Complex Settings
Step2 Edit text: Click on Text Edit ->New Text

Pic.7 Text Edit
The settings and test result are as follows.

Pic.8 Settings & Test For Text
The returned content for [ [ ] ] is the returned value of the system variable in [ [ ] ], the measured value of the sensor in [ [ ] ], or the more complex logic operation result of the measured values of the sensor in [ [ ] ]. For example, the returned content for [ [date] ] is the current date. While, the content for the two braces is the Twitter Text corresponding with the value range of the variable in two braces. For example, in the following picture, the current humidity is 57%. According to the previous logic relationship set for the value range from 41 to 70, the returned text content for Humidity is It is comfortable! After setting, you can click on Test to see whether the settings are correct. Step3 Set up auto-sending settings. This step is very simple. Click on Sending Scheme ->Add Auto-sending Settings. Select Email for the Type, and there will be a blank column for you to fill in the E-mail address. Select Every Day for the Repeat Type. Tick the time, for example 6:00, 17:00, and 20:00. Then the text content will be sent to Email automatically at 8:00am, 16:00pm, and 20:00pm everyday!

Pic.9 Auto-sending Settings For E-mail
Last updated