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?

Antworten (1)

Vinod
Vinod am 8 Jun. 2021

0 Stimmen

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 Kommentare

Burcu Arslan
Burcu Arslan am 8 Jun. 2021
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?
Vinod
Vinod am 8 Jun. 2021
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)
Burcu Arslan
Burcu Arslan am 8 Jun. 2021
Thanks for your reply! Is there a way to add the last read value from the channel to the tweet on React?
Vinod
Vinod am 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.

Melden Sie sich an, um zu kommentieren.

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu ThingSpeak finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 7 Jun. 2021

Kommentiert:

am 9 Jun. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by