How can I tweet regularly with ThingSpeak?
Show older comments
I have an Arduino project which collect sound data and send data to the ThingSpeak channel. I want to tweet with POSTMAN. When I click SEND button it works, however I have to create a regular tweeting function. For example, it should tweet the sound value every 2 hours. How can I do this, is there any KEY to complete this task?
Answers (1)
Vinod
on 8 Jun 2021
0 votes
Twitter has limits that prevent you from tweeting the same message repeatedly. The key to using ThingTweet is to tweet a unique message, easily accomplished by including a timestamp in the Tweet.
4 Comments
Burcu Arslan
on 8 Jun 2021
Vinod
on 8 Jun 2021
You will need to do the following steps:
- Link your Twitter account with ThingSpeak on the ThingTweet app page
- Create a MATLAB Analysis app that will use the ThingTweet API to post to Twitter. Your MATLAB code can read the required data using the thingSpeakRead function.
- Create a TimeControl app that triggers the MATLAB Analysis app from step (1)
Burcu Arslan
on 8 Jun 2021
Vinod
on 9 Jun 2021
You will need to use MATLAB, not just the React with a ThingTweet. Use the webread function in MATLAB to make the POST request to the ThingTweet API.
If you have trouble, please post what you have tried so I can guide you to the solution.
Communities
More Answers in the ThingSpeak Community
Categories
Find more on ThingSpeak in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!