Comfortclick API to get data from other applications

Avatar
  • updated

Hello! I'm learning to use Http devices to send data to an API, but I need to do the opposite. I mean, I press a button in an external application, and I need it to send a command to ComfortClick. Is there any URL in comfortclick to get json data, or text data?

Thank you! 

Avatar
Fabien Fuster

Hello,


The URL to parse the data should be the one from the sender API (your external application), unless it goes through a cloud service (it would be then the one from the cloud service).


Regards,

Avatar
Ricardo Pinto

Hi,

You can set and get values from Comfortclick with the RPC implementation. Would it be useful for you?

It's been available since version 3.0.61

"New JSON RPC Service for controlling the bOS from other systems".

Check it here, in the RPC Service (beta):

https://www.comfortclick.com/BOS/KnowledgeBase/RPC


Best regards

Avatar
Fernando Castellar

Hello, Ricardo

That's just what I was looking for, I didn't read before. Thank you!!

I can make it work on the server (using the url "http://localhost:81"), but I'm not able to use it from any other computer (even if it's in the same LAN, using the url "http://192.168.1.51:81"). Do you know why could it be?

Thank you very much!

Avatar
Fernando Castellar

Oh, was the firewall. Sorry!!

Everything works ok

Thank you! Was just what I needed!

Avatar
Ricardo Pinto

Hello Fernando,


You're welcome, glad I could help!


Best regards