Skip to first unread message

李家峰

unread,
Feb 8, 2017, 11:12:09 AM2/8/17
to MIT App Inventor Forum
I want make a app with iot ,how can I do it ? I just receive the data on thingspeak.
for example: I update the "1" ,my app receive "1", then it warning with the sound ,or woring with text color change.
the most important is,my data is on the thingspeak . and just receive the data on thingspeak.
how can I write the example with block on
MIT App Inventor 2

 

Ghica

unread,
Feb 8, 2017, 5:28:47 PM2/8/17
to MIT App Inventor Forum
Is this a thingspeak question or an app Inventor question?
Could you provide more detail about what your app should do and how it should communicate with thingspeak?
Cheers, Ghca

李家峰

unread,
Feb 9, 2017, 3:54:32 AM2/9/17
to MIT App Inventor Forum
this is the  App Inventor 2 questino ,i want to write the app ,this app function is receive the data ,on the thingspeak ,and notice the user special message
ps:the special message is from thingspeak

Ghica

unread,
Feb 9, 2017, 5:38:36 AM2/9/17
to MIT App Inventor Forum
What does your thingspeak device look like? How is it going to communicate with App Inventor? Via Wifi? Bluetooth? BLE?
What is the data protocol it is using?
Cheers, Ghica

李家峰

unread,
Feb 9, 2017, 6:23:47 AM2/9/17
to MIT App Inventor Forum
this is thingspeak home page : https://thingspeak.com/
and it communicate with App Inventor is wifi
my data is using the arduino to update ,and it update with the wifi
i do not know the  protocol ,but i know it used the API key to get the imformation

SteveJG

unread,
Feb 9, 2017, 9:18:14 AM2/9/17
to mitappinv...@googlegroups.com
Here is an article by Elizabeth Le about using AI2 with it iot  http://ai2.appinventor.mit.edu/reference/other/IoT.html   It uses Bluetooth to communicate and you probably will need similar techniques to talk to your arduino.     What you want to do is to send the data collected from your arduino to ThingsSpeak.     ThingsSpeak is not a device but an internet service that stores data and helps to organize and plot it.  Below is a specific example of communicating with the ThinksSpeak API to post/get information from this service (which is free only for non commercial apps).

This link may give you some ideas how to 'talk' to things speak using App Inventor  http://noobtechiespeaks.blogspot.com/2014/10/android-app-to-connect-to-thingspeak.html  

Is this what you wanted to know and does it work?

Regards,
Steve

Ghica

unread,
Feb 9, 2017, 9:32:15 AM2/9/17
to MIT App Inventor Forum
Hi Steve,
Your first reference is a very genral article about BLE which can be used for iOT, but the forum question talks about Wifi.
The second reference is spot-on though, and should indeed answer the question, as good as it gets.
Cheers, Ghica.

Abraham Getzler

unread,
Feb 9, 2017, 11:19:52 AM2/9/17
to MIT App Inventor Forum

李家峰

unread,
Feb 16, 2017, 8:54:53 AM2/16/17
to mitappinv...@googlegroups.com
thanks everyone teach me!
spend some time  investigative ,i found the rule for the thingspeak ,i just post the speacile URL then thingspeak receive special text ,so i just analysis this text.
so i have the question:how can i post the URL and how to analysis text in app's background?
for example :i post the special URL then it recive xxxxxxxxxxxxx.xxxxxxxx"field":"1" ,thne my app just find "field":"1 then do something ,how can i to make this app?
Reply all
Reply to author
Forward
0 new messages