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

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





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

sp_Feed sp_TopicIcon
Read information with key API and AppInventor
No permission to create posts
January 29, 2018
9:54 am
Avatar
Franclod
New Member
Members
Forum Posts: 3
Member Since:
January 29, 2018
sp_UserOfflineSmall Offline

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

 

January 29, 2018
2:21 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 258
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

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?

January 31, 2018
5:37 am
Avatar
Franclod
New Member
Members
Forum Posts: 3
Member Since:
January 29, 2018
sp_UserOfflineSmall Offline

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 ?

January 31, 2018
10:42 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 258
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

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?
February 1, 2018
10:29 am
Avatar
Franclod
New Member
Members
Forum Posts: 3
Member Since:
January 29, 2018
sp_UserOfflineSmall Offline

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:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

JamesVex, meghanfr69, raqueldk69, soniafw2, vitalijDrine, JosephAmapy

Administrators: Hans: 387, lee: 457