Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HTTP call to domotics system from Iconic watch

ANSWERED

Hi,

 

Is it possible to do a http call from a button on your watch to (for example) a Domotics system? I couldn't find any documentation if this is possible or not.

 

thanks,

 

Remco

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The button would need to send a message to the Companion API, then that would make a fetch() request to the http endpoint.

 

Remy Sharp did a proof of concept version of fetch() from the device, which essentially uses the above method:

https://gist.github.com/remy/2f5dbe7032004a5dd09bd57733d30ab6

View best answer in original post

Best Answer
1 REPLY 1

The button would need to send a message to the Companion API, then that would make a fetch() request to the http endpoint.

 

Remy Sharp did a proof of concept version of fetch() from the device, which essentially uses the above method:

https://gist.github.com/remy/2f5dbe7032004a5dd09bd57733d30ab6

Best Answer