How can I tweet regularly with ThingSpeak?
Ältere Kommentare anzeigen
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
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
am 8 Jun. 2021
Vinod
am 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
am 8 Jun. 2021
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.
Communitys
Weitere Antworten in ThingSpeak Community
Kategorien
Mehr zu ThingSpeak finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!