January 4, 2016
Hi. I have made Arduino Kit acting as weather station. It sends data of the sensors connected (DHT11 & LDR) to the ThingSpeak web-server.
Now I want to perform some actions according to data on ThingSpeak Server ( like if temperature exceeds turn on fan e.t.c).
I've searched and I found that there's a React App on thingspeak which will trigger event if data exceeds some values,
The problem where I got stuck is that I want to send signal from thingspeak webserver to my ESP8266 (arduino) kit to turn on/off the device connected to relay on arduino.
I've figured out that there's also a ThingHTTP feature which sends HTTP request
But don't know how to send request/signal to my kit to perform some actions.
I've already spent my 2 months building this project, and now just stuck in the last part . Please give your valuable suggestions and solutions.
January 7, 2016
January 29, 2014
Alternatively you can consider the Talkback app- this allows you to send a text string in response to a POST command from the ESP8266. This will require the ESP8266 to poll thingSpeak rather than listen for an incoming request. Whether this is more convenient than the suggestion by Iballaty depends on your application.
If your esp8266 is doing updates anyway you can combine an update with a talkback response.
You may need to write a matlab analysis app to interface your React with your Talkback. Matlab's "webwrite" command is useful as I dont think there is a thingspeak wrapper function for talkback like there is for channel read and update.
November 16, 2015
What you are asking for is a game changer. You would need mqtt
It's a totally different game; although library does exist the entire back-end is a different concept from ThingSpeak. Again this mqtt business is the only way to send data to IoT devices without being able to reach them via IP (behind NAT).
For example that will automatically qualify all mobile IoT things since the cell carriers, although assigning public IPs to the customer do block any and all incoming traffic from the "outside" world and my ESP8266 connected to an AT&T hot spot is basically unreachable from the Internet directly. So with mqtt the thing maintains persistent connection to the mqtt broker and when I send a message via the broker that live connection is how the message gets delivered to the ESP in real time without the thing having to poll some php script all the time for "new data"
January 29, 2014
MQTT still requires a internet connection between client and broker- it avoids the NAT issues by having the client (behind NAT) initiate the connection. Last time I looked at MQTT the code required to maintain the connection, handle drop-outs etc seemed harder than it should be- perhaps things are better now.
Whilst its possible to write a Thingspeak to MQTT bridge it would be great if Thingspeak supported this natively..
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:titan83, Svetoslav, abubakar, firstname.lastname@example.org, fet61-fakohse, Mario Marquez
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457