Reading values from a ThingHTTP page | ESP Wi-Fi | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.
Avatar

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
Reading values from a ThingHTTP page
No permission to create posts
September 7, 2015
11:18 pm
Avatar
dsnaith
New Member
Members
Forum Posts: 1
Member Since:
September 7, 2015
sp_UserOfflineSmall Offline

I am very new to this, so please forgive my noob question.

I have an ESP8266 connected to a 3.3v FTDI card and a breadboard power supply and everything seems to work great. I can talk to the card using a Termite serial terminal and I can connect it to my router and attach to ThingSpeak using:

AT+CIPSTART=4,"TCP","api.thingspeak.com",80

So far so good.

I have also created a very simple web page using ThingHTTP here:
https://api.thingspeak.com/apps/thinghttp/send_request?api_key=G3A43TF4BYEJ3CEZ

All I want to do now is read the 3 values listed on the web page. Once I get the data I can write all the parsing algorithm stuff no worries, but for the life of me I can't work out the AT string I need to send the ESP8266 to make the web page return any useful information.

Any guidance would be much apprectiated. Thanks!

September 9, 2015
10:03 am
Avatar
hans

MathWorks
Members
Forum Posts: 4
Member Since:
January 19, 2011
sp_UserOfflineSmall Offline

dsnaith,

It is possible to scrape the data from the website using the MATLAB Analysis app and the MATLAB function 'urlfilter'.

There are also two example templates which show how to use 'urlfilter' in the MATLAB Analysis app:
- Scrape web data for ships at the Boston port
- Scrape web temperature data

Based on those examples, the following MATLAB code will get the 3 data values on the page:
values = urlfilter('https://api.thingspeak.com/apps/thinghttp/send_request?api_key=G3A43TF4BYEJ3CEZ', 'bold;"> ', 3)

More information about how to use 'urlfilter' is available in the documentation:
https://thingspeak.com/docs/matlab_analysis#urlfilter

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

kusmumichael, petersmith99, Rambant, blakeharriss09, optisol, Niyonzima Fils

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457