Normal Topic Web Request (Read 890 times)
mh.heinzen
New Member
*
Offline


Posts: 7
Location: WI, United States of America
Web Request
Oct 27th, 2020 at 8:06pm
Print Post Print Post  
Is it possible to have the SiB make a web request in a program?  I am thinking mostly for use as an IFTTT trigger currently.
  
Back to top
 
IP Logged
 
Mark Baum
Forum Administrator
*****
Offline


Posts: 58
Re: Web Request
Reply #1 - Oct 27th, 2020 at 9:06pm
Print Post Print Post  
Hi there,

Not at this stage, but likely in the future.

Regards,
Mark
  
Back to top
 
IP Logged
 
mh.heinzen
New Member
*
Offline


Posts: 7
Location: WI, United States of America
Re: Web Request
Reply #2 - Oct 27th, 2020 at 9:23pm
Print Post Print Post  
Is there an estimated time of when this will be implemented?  IFTTT integration was the main reason I helped fund this.
For me, either direct IFTTT or web requests would suffice.
  
Back to top
 
IP Logged
 
Mark Baum
Forum Administrator
*****
Offline


Posts: 58
Re: Web Request
Reply #3 - Oct 27th, 2020 at 10:51pm
Print Post Print Post  
I'm not sure at this stage and asking around I didn't get a clear answer either. Guys are super over worked trying to get key things done, so I can't say when.. I'm sorry.
  
Back to top
 
IP Logged
 
mh.heinzen
New Member
*
Offline


Posts: 7
Location: WI, United States of America
Re: Web Request
Reply #4 - Jun 2nd, 2021 at 10:18pm
Print Post Print Post  
Any updates to this?
  
Back to top
 
IP Logged
 
Mark Baum
Forum Administrator
*****
Offline


Posts: 58
Re: Web Request
Reply #5 - Jun 2nd, 2021 at 11:06pm
Print Post Print Post  
Sorry, hasn't started yet on this component, but we'll hopefully be tackling it very soon. I believe an important aspect to our network that was necessary to be able to implement IFTTT has been completed, including firmware that runs on SiB etc. But the ext connection to IFTTT hasn't yet been done, will be done soon I'm sure!
  
Back to top
 
IP Logged
 
mh.heinzen
New Member
*
Offline


Posts: 7
Location: WI, United States of America
Re: Web Request
Reply #6 - Dec 2nd, 2021 at 5:23pm
Print Post Print Post  
Now that it has been more than a year since I started this thread and IFTTT support still does not appear to be supported, is there any further updates??
  
Back to top
 
IP Logged
 
Drew Bennett
Forum Administrator
*****
Offline


Posts: 6
Re: Web Request
Reply #7 - Dec 2nd, 2021 at 8:58pm
Print Post Print Post  
Hi,

Work has begun on the SiB's ability to perform web requests, which will lead to support for services such as IFTTT. 

In the current firmware, the SiB can perform basic HTTP requests using the SiB command "GET".   This command has been available in firmware versions since September, 2021.  You can update to the latest firmware version to make use of this immediately.

The syntax is as follows:
GET S|N variable_name URL
Where: 
S indicates that the variable named (variable_name) should retrieve a text string.
N indicates that the variable named (variable_name) should retrieve a numeric value that can be used in logical and arithmetic operations.  At the present time the SiB does not support decimal values.
variable_name should be replaced with any variable name of your choice
Only HTTP URLs are supported at this time, but HTTPS will be supported in the near future.

For example, a server-side script that performs some action can return a 1 for success, and 0 for failure, and a SiB can use it like this:

PROG s
GET N didSucceed http://myserver.com/sendsms
IF didSucceed=1
  IM The action succeeded!
ELSE
  IM The action failed!
EI

Another example of a SiB echoing the result of an HTTP request
PROG S
GET S myQuote http://myserver.com/quote_of_the_day
IMTO 19995551234 myQuote

Limitations:
The SiB does not perform the HTTP calls directly, but instead relays the request to our servers which perform the request and send the result back to the SiB.  As such, you will not be able to make requests to servers that are inside of your local network (i.e., 192.168.x.x).  This is in place for multiple reasons, but the primary reason is that the GET command will be the starting point for connections to services like IFTTT, as I will describe below...

Coming soon:
We are in the process of implementing a portal on sib.me for SiB owners to manage connections to services like IFTTT.  In the portal, users will be able to setup one or more triggers or actions and assign names to them.  Once a trigger is setup, the SiB will be able to call it using the same GET command, providing the name of the action instead of the URL.

For example,
GET N didSucceed myFirstIFTTTCall


  
Back to top
 
IP Logged