Skip to first unread message

David Teh

unread,
Dec 2, 2017, 4:28:20 AM12/2/17
to MIT App Inventor Forum
Hi everyone, when you click this link https://api.thingspeak.com/channels/373414/fields/5/last?key=OOQS10W7IZ4BQAJE
you will saw 28.00 which is my temperature value. 
how can i save this link in a button, and this button click, the value 28.00 will show in a label? thanks a lot !

TimAI2

unread,
Dec 2, 2017, 6:56:44 AM12/2/17
to MIT App Inventor Forum
Use the web component, and when web got text, capture the response to a label.


If you haven't done it already....

David Teh

unread,
Dec 2, 2017, 10:49:13 AM12/2/17
to MIT App Inventor Forum

I do it in this way, but can not get the value. Any thing wrong?thanks a lot !


Taifun

unread,
Dec 2, 2017, 12:18:27 PM12/2/17
to MIT App Inventor Forum
you forgot to use the Web.Get method...
and: you will receive the result in the Web.GotText event
btw. the web component and the webviewer are 2 completely different components

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  
How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling  .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
 Top 5 Tips: How to learn  App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by  Taifun.         


  

David Teh

unread,
Dec 2, 2017, 10:41:34 PM12/2/17
to MIT App Inventor Forum
Thanks a lot !! i did it now!
Reply all
Reply to author
Forward
0 new messages