Hot Topic (More than 10 Replies) Web Request (Read 1876 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: 90
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: 90
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: 90
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
 
Mark Baum
Forum Administrator
*****
Offline


Posts: 90
Re: Web Request
Reply #8 - May 30th, 2022 at 8:56pm
Print Post Print Post  
We wish to report that now HTTPS is also supported.

No firmware update necessary beyond the one needed for the HTTP method.
  
Back to top
 
IP Logged
 
StevenC
New Member
*
Offline


Posts: 9
Location: Massachusetts, United States of America
Re: Web Request
Reply #9 - Jan 15th, 2023 at 12:07am
Print Post Print Post  
Hi, it's good to see the webhook GET command.
But it is not listed in the "A-Z" list under "Programming the SiB" on sib.me.
Could the A-Z list be updated with all current commands?
Are there any other commands which aren't listed there?
  
Back to top
 
IP Logged
 
Mark Baum
Forum Administrator
*****
Offline


Posts: 90
Re: Web Request
Reply #10 - Jan 15th, 2023 at 12:25am
Print Post Print Post  
Yeah, there's in fact plenty of commands that are not listed or more like "switches" to commands that have been updated to make the SiB perform better.

Due to a lack of resources we've placed more emphasis on improving the f/w and getting the software running well and our engineers haven't had time to update the command list.

Having said that, I will forward this request and ask them to add it to their pile of things to do and hopefully they'll get to it soon!
  
Back to top
 
IP Logged
 
StevenC
New Member
*
Offline


Posts: 9
Location: Massachusetts, United States of America
Re: Web Request
Reply #11 - Jan 20th, 2023 at 4:14am
Print Post Print Post  
Mark Baum wrote on Jan 15th, 2023 at 12:25am:
...I will forward this request and ask them to add it to their pile of things to do and hopefully they'll get to it soon!


Thank you very much. Having a full list would be appreciated.

I am looking forward to squeezing as much utility out of my SiB buttons as possible!

-- Steven
  
Back to top
 
IP Logged
 
Mark Baum
Forum Administrator
*****
Offline


Posts: 90
Re: Web Request
Reply #12 - Jan 20th, 2023 at 4:23am
Print Post Print Post  
Ahh yes, they can do a lot and will over time do a lot more!

We're extracting a lot of functionality via Bluetooth so soon SiBs will do a ton of things via BT only and not even need WiFi to connect or send messages.

Always a work in progress but tons of exciting new features.

Will let you know as soon as it's done for you.
  
Back to top
 
IP Logged