💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
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. ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-37.jpg) 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: ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-38.jpg) 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) ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-39.jpg) 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: ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-40.jpg) 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. ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-41.jpg) 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. ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-42.jpg) Pic.6 More Complex Settings Step2 Edit text: Click on ***Text Edit ->New Text*** ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-43.jpg) Pic.7 Text Edit The settings and test result are as follows. ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-44.jpg) 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! ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-45.jpg) Pic.9 Auto-sending Settings For E-mail [35]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-35.jpg [36]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-36.jpg [37]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-37.jpg [38]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-38.jpg [39]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-39.jpg [40]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-40.jpg [41]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-41.jpg [42]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-42.jpg [43]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-43.jpg [44]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-44.jpg [45]: https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/devicebitmanual-xj-20180930-45.jpg