Read information with key API and AppInventor | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Read information with key API and AppInventor
Avatar
Franclod
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
1
January 29, 2018 - 9:54 am
sp_Permalink sp_Print

Hello, I have a probleme to connect AppInventor with Thingspeak, i succeeded to write with app inventor to thingspeak but  I can not read information in a channel, I used this tutorial to help me

 http://www.instructables.com/id/IoT-Made-Easy-With-UNO-ESP-01-ThingSpeak-and-MIT-A/
 But, instead of only having useful information, I have all the information that the page provides me, If someone knows the way and wants more information to help me, you can contact me at xelirac@gmail.com 
Cordially

 

Avatar
cstapels
Moderator
Forum Posts: 158
sp_UserOfflineSmall Offline
2
January 29, 2018 - 2:21 pm
sp_Permalink sp_Print

Franclod,

Are you using an ESP8266-01 for this project?  Are you trying to read data from ThingSpeak with the device? 

The demo you provided uses the AT commands to communicate through the ESP8266-01.  It may be a little easier to program through the Arduino IDE directly.  Install the ESP8266 board support and connect the esp TX and RX pins directly to the Arduino TX and TX pins. 

The ESP examples in the ThingSpeak documentation will work to show you how to read from ThingSpeak with a device.  The temperature example shows how to use the ThingSpeak communication library for Arduino and ESP to read from a ThingSpeak channel.  These examples can be programmed on to the ESP8266-01, though they were tested with ESP6266-12. The -01 does not have an internal ADC, so you cannot read an analog voltage.

I looked through the example you provided, it shows both writing and reading from the channel. Can you describe what is going wrong, or what you are seeing when you try to read?

Avatar
Franclod
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
3
January 31, 2018 - 5:37 am
sp_Permalink sp_Print sp_EditHistory

I not use an ESP8266-01 i use an Ardruino, with the ardruino i have succed to read info and write : https://thingspeak.com/channels/403739/charts/3?bgcolor=%23ffffff&color=%23d62020&dynamic=true&results=60&type=line&update=15 

without considering ardruin, because it is not me who takes care of it,I have do this : https://ibb.co/gvSEpR

but i have an erroe : Bad arguments to < : the operation < cannot accept the arguments:, [null], [10]

I can if you want send you the project app inventor ?

Avatar
cstapels
Moderator
Forum Posts: 158
sp_UserOfflineSmall Offline
4
January 31, 2018 - 10:42 am
sp_Permalink sp_Print sp_EditHistory

Thanks for the clarifications.  I'm still not fully clear what your goal is.  Are you trying to get data to the app or are your trying to display the thingspeak plot?

Since the second block in the appinventor code you showed seems to parses the json, I assume you are trying to get data.  if so, use the get channel feed api call.

change the URL to something like 

https://api.thingspeak.com/channels/YOUR_CHANNEL/fields/1.json

Then the web1.GotText input will be json formatted.

Does that help?
Avatar
Franclod
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
5
February 1, 2018 - 10:29 am
sp_Permalink sp_Print

I have change the url like you told to me, but i have the same error, do I have to change the second block ?

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
38 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

ibgedubo

aogomaeqaza

ureomug

itixuwidouzuv

eilimir

memozupi

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee