Help with XML petition | ThingSpeak Apps | 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
Help with XML petition
No permission to create posts
July 31, 2015
7:47 am
Avatar
sinergia
New Member
Members
Forum Posts: 3
Member Since:
July 27, 2015
sp_UserOfflineSmall Offline

Hi:
I have a sensor that measures electric parameters.
When I ask this sensor via web this XML petition:

http://my_ip:1200/services/user/values.xml?var=EDS%20BRIO.PM1%20-%20General.API?

I get this response (Note I changed < by [ and > by ] in the response in order to show it in the forum):

[values][variable][id]EDS BRIO.PM1 - General.API[/id][value]55.200000[/value][/variable][/values]

That means that the variable of electric power

EDS BRIO.PM1 - General.API

has the value

55,2

How can I use the APP ThingHTTP to get this information from the sensor to Thinkspeak?
I have tried hard, but I have not been able.
I don't know what to put in every field of the configuration of the APP Thinkspeak.

Any help will be wellcome Wink

August 2, 2015
11:42 pm
Avatar
rw950431

Top
Members
Forum Posts: 269
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Sadly there is currently no way to retrieve information from a URL and store it direct to thingspeak- this is something that many people wish for.

You can use thinghttp to fetch the URL and extract the data from the XML but there is no way to store that except via a 3rd program such as an arduino or other computer.

You may be able to sign up for the free tier at a service like openshift or heroku and make a small program that will retrieve the data from your sensor and store it to thingspeak.

August 3, 2015
3:36 am
Avatar
sinergia
New Member
Members
Forum Posts: 3
Member Since:
July 27, 2015
sp_UserOfflineSmall Offline

Shame... as I readed this http://community.thingspeak.com/forum/thingspeak-apps/parse-json-data-with-thinghttp/ I thought that it was posible...
I've tried heroku and openshit but are to hard fir me... I'm nit a programmer and my perl/php/html knowleng are very poor.
so, shame... Cry

September 9, 2015
11:55 am
Avatar
hans

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

sinergia,

It is possible to perform this task using the MATLAB Analysis App and the MATLAB function 'urlfilter'.

There are two example templates that go through the processes of scraping a data value from a website, performing some processing, and storing the value into a Channel using the MATLAB function 'thingSpeakWrite'.

The documentation contains more information about how to use each of these MATLAB functions.
1. https://thingspeak.com/docs/matlab_analysis#thingSpeakWrite
2. https://thingspeak.com/docs/matlab_analysis#urlfilter

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
23 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:

dollyip18, toddbt2, SatrapB, Ronalpsync, wandaim69, GregoryGof

Administrators: Hans: 387, lee: 457