Use the TweetControl app to respond to tweets with a specified trigger word and send an HTTP request using the ThingHTTP app. The action specified in your ThingHTTP code is executed when the trigger word appears in a tweet.
The TweetControl App enables you to create a social control based on your Twitter® username and a specific hashtag. This app uses the Twitter Streaming API, which gives you real-time control. You can use this app to control things or send data to external APIs by sending a ThingHTTP request. Anything that ThingHTTP can connect to, you can connect a Twitter hashtag to.
TweetControl connects to Twitter Streaming API, which listens and processes the TweetControl request each time it comes across the trigger word. It eliminates the need to continually poll Twitter for status updates.
ThingHTTP enables you to proxy-connect to anything that supports the HTTP protocol. You can set up a ThingHTTP request to call someone via Twilio®'s HTTP-based API, control devices, or connect to a thermostat that accepts HTTP requests.
Replacements Keys. Use these keys to access the data from a TweetControl:
%%status%% – Full text of
the tweet that was received by TweetControl
%%trigger%% – The trigger
defined in the TweetControl
Link a ThingHTTP request to a Twitter hashtag.
Sign into ThingSpeak™.
Select Apps > TweetControl.
Click New TweetControl.
Check the Anonymous TweetControl box to enable anyone to trigger this TweetControl.
Twitter Account: Enter a Twitter username to tie the control to one specific Twitter user.
Trigger: Enter the trigger word preceded by a hashtag. For example, #turnlightson.
ThingHTTP Action: Select a ThingHTTP to run.
Save the TweetControl.
To execute the ThingHTTP command, send a tweet from your Twitter account with a filter and your trigger hashtag.
The filter keyword must be included with your trigger to execute your TweetControl.
Filters are not case sensitive and do not require the hashtag (#). Use these keywords to filter tweets:
Tip: If you have a project that you want to use TweetControl with and want your own filter keyword, let us know and we will add it our service.
This example shows how to update a ThingSpeak channel "field1" with data from Twitter with the word that triggered a TweetControl. It adds the full text of the Tweet to the "status" field of the channel.
Create a ThingHTTP to handle your request, and name it
Check the Anonymous TweetControl box.
"love" in the Trigger field.
"ThingSpeak Channel Updater" in
the ThingHTTP Action field.
Save your TweetControl.
Use the specified Twitter account to tweet:
"I love TweetControl"
Check your ThingSpeak channel to see the new status entry.
"TweetControl" is a valid filter keyword,
"love" matches the trigger.
Following are some TweetControl project ideas:
Printing tweets with a thermal printer
Twitter voting machine
Twitter controlled toy
CheerLights is a project that uses TweetControl to update a ThingSpeak Channel via Twitter. Users subscribe to the ThingSpeak API, which sets the color of their lights to the last color received. Lights around the world display the same color.