User manual
Generally, this would be a full project already. However, the bonus functions are
still missing. They no longer need to be performed in the program, however, but
only on the ThingSpeak-
page. For this, go to Apps and then select React. React can be used to react to
specific events. Click New React to create a new React-function and enter the
following values:
Name: FireDetect1
Condition Type: Numeric
Test Frequency: On Data Insertion
Condition: If Channel
FireAlarm
field 1 (Temp)
is greater than
40
Action: ThingTweet
then tweet:
Fire Alarm on the #NanoESP! Temp: %%trigger%%C #Thing-
Speak #IoT
Using Twitter Account
[Twitter Account]
Options: Run action only the first time the condition is met
Save React saves the settings. Thus, the first step of monitoring is already made.
If the value is exceeded, ThingSpeak will send a Twitter message via your ac-
count. For the second step, insertion of the alarm command, you need to reach a
bit more deeply into your sleeve. The function is not supported automatically.
ThingHTTP is, however, supported. Therefore, click Apps and then ThingHTTP.
Create a new element there and set the following:
Name: Alarm
URL: https://api.thingspeak.com/talkbacks/[YOUR
TALKBACK ID]/commands
Method: POST
HTTP Version: 1.1
Host: api.thingspeak.com
Headers:
Body: api_key=[YOUR TALKBACK ID]Key com-
mand_string=Alarm&position=1
Ensure that you replace [YOUR TALKBACK ID] and [YOUR TALKBACK KEY] in
the URL and the body part by your TalkBack ID and your KEY. Now you can cre-