How can I tweet regularly with ThingSpeak?

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
Vinod on 8 Jun 2021
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

Hello,
First of all thanks for your answer. I am aware of the fact that Twitter does not let you tweet the same tweet twice, this is not a problem as I know how to solve it. The problem that I am having is that I want to tweet the data I collected on thingspeak at the end of the day, every day. So, I want to schedule a tweet every day to a certain time. Is there a possible way to do this?
You will need to do the following steps:
  1. Link your Twitter account with ThingSpeak on the ThingTweet app page
  2. 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.
  3. Create a TimeControl app that triggers the MATLAB Analysis app from step (1)
Thanks for your reply! Is there a way to add the last read value from the channel to the tweet on React?
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.

Sign in to comment.

Communities

More Answers in the  ThingSpeak Community

Categories

Find more on ThingSpeak in Help Center and File Exchange

Products

Asked:

on 7 Jun 2021

Commented:

on 9 Jun 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!