Insert field value into thinghttp URL | ThingSpeak Apps | 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
Insert field value into thinghttp URL
Avatar
iot001
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
February 4, 2017 - 1:14 am
sp_Permalink sp_Print

Hi,  I am hoping someone can help me.  

I have an ESP8266 running ESPBasic.  It has a Thingspeak send function and it works like a charm to get data from the IOT device to my channel/field.   I want to send this data (using time control) as part of a https:// URL which has the format 

https://my.zipato.com/zipato-web/remoting/attribute/set?serial=xxxxxxxxxxx&apiKey=xxxxxxx=xxx&value1=111

Using GET i can successfully send the &value=111 to my.zipato.com as a manual entry so i know the URL works.

How can i replace the &value=xxx  so that it contains the actual field value of my channel ?  

I tried to replace the manual value with %%channel_1234_field_1%% but this doesnt work.

I would appreciate any suggestions

best regards

bob

Avatar
Vinod

Forum Posts: 179
sp_UserOfflineSmall Offline
2
February 4, 2017 - 6:23 pm
sp_Permalink sp_Print

You can do this:

1) Write a MATLAB Analysis App that uses thingSpeakRead to read from the channel

2) Use the webwrite function to write data to zipato

3) Schedule the MATLAB analysis app to be run by your TimeControl

Avatar
rw950431

Forum Posts: 252
sp_UserOfflineSmall Offline
3
February 5, 2017 - 6:53 am
sp_Permalink sp_Print

There is some evidence to suggest that variable substitution doesn't occur in GET requests (where the values are passed in the URL).  Is it possible for you to use the POST format instead?  Otherwise Vinod's solution looks good if you can find your way around the Matlab syntax.

http://community.thingspeak.com/forum/thingspeak-api/thinghttp-post-to-pushingbox-pass-value-fields/#p2284

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: cstapels
25 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:

yeseniara11

RomanFug

JamesPes

RobertBak

ScottSmiva

Amourhotte

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee