Act on Your Data
This example shows how to send a tweet when your dew point data exceeds 60°F using ThingTweet and React apps.
This example requires that you have already performed these steps:
Create a Twitter® account.
Sign In either to your MathWorks® Account or ThingSpeak™ account, or create a new MathWorks account.
Create a Channel as your Dew Point Measurement channel.
Read the weather station data into your channel and Calculate the Dew Point.
Attach Twitter Account
Go to Apps > ThingTweet.
On the ThingTweet page, click Link Twitter Account to link your Twitter account to your ThingSpeak account.
Enter your Twitter user name and password, and click Authorize App.
On the Authorization page, click Back to ThingTweet. Notice that your Twitter account is linked to ThingSpeak.
React to Change in Dew Point
This example shows how to send a tweet each time the dew point level goes over 60°F by checking the channel every 10 minutes.
Go to Apps > React, and click New React.
Name your React "Dew Point Tweet."
Set the Condition Type to Numeric.
Set the Test Frequency to Every 10 minutes.
Set the condition to trigger when the humidity value in your channel reaches or goes above 60:
If channel: select your dew point measurement channel.
field: select 3 (Dew Point).
For the condition type, select is greater than or equal to.
For the condition value, enter 60.
Set Action to ThingTweet.
Enter this string in then tweet:
Turn off that humidifier! It's above 60F
Select your Twitter account in using Twitter account.
In Options, choose Run action each time the condition is met.
Click Save React.
The tweet is sent every time the humidity level goes above 60°F.
- Prototyping with Sonar Proximity Sensor
- Post Temperature Data and Read from Channel
- Wireless Network Signal Strength with ESP32 with Arduino IDE