Sonoff TH16 - Collect data

5 views (last 30 days)
Luca
Luca on 21 Jan 2023
Edited: Christopher Stapels on 31 Jan 2023
Hi,i want to connect my sonoff th 16 to a google sheet or a platform that i can collect data of temperature and humidity. I have tried various solution,but I can't. Is this possible with Thingspeak? Thank you for your help. Luca

Answers (1)

Christopher Stapels
Christopher Stapels on 25 Jan 2023
Edited: Christopher Stapels on 31 Jan 2023
Yes, you can use the developer API mode in sonoff to read data and send it to ThingSpeak. You will need some program that can access the sonoff on your local network and then send the data to ThingSpeak. I bet you can do it in Java script, and you could definitely do it with desktop MATLAB. USe the read data API in sonoff to get the data and then use the ThingSpeak write APIhttps://www.mathworks.com/help/thingspeak/writedata.html to write the data to ThingSpeak. MATLAB (and ThingSpeak) has way more analysis and visualization power over google sheets. :)

Categories

Find more on Read Data from Channel 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!