Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:protocole_json [2017/03/20 11:37]
mifrey [In url with HTTP GET]
en:protocole_json [2021/09/16 21:39] (current)
mifrey [In url with HTTP GET]
Line 27: Line 27:
   * Set an output: https://calaos_server_ip/api?cn_user=XXX&cn_pass=XXX&action=set_state&id=output_7&value=true   * Set an output: https://calaos_server_ip/api?cn_user=XXX&cn_pass=XXX&action=set_state&id=output_7&value=true
   * Set an intern variable: https://calaos_server_ip/api?cn_user=XXX&cn_pass=XXX&action=set_state&id=intern_4&value=true   * Set an intern variable: https://calaos_server_ip/api?cn_user=XXX&cn_pass=XXX&action=set_state&id=intern_4&value=true
 +  * Read a variable : https://calaos_server_ip/api?cn_user=XXX&cn_pass=XXX&action=get_state&items=output_21,output_25
  
 That allows an external system that only supports HTTP GET to easily communicate to Calaos. That allows an external system that only supports HTTP GET to easily communicate to Calaos.
Line 40: Line 41:
 or directly add it in the file ///etc/calaos/local_config.xml//. or directly add it in the file ///etc/calaos/local_config.xml//.
  
-The page is then accessible from https://calaos_server_ip/debugor http://calaos_server_ip:5454/debug.+The page is then accessible from https://calaos_server_ip/debug or http://calaos_server_ip:5454/debug .
  
 {{ :fr:api_debug_html.png?nolink&600 |}} {{ :fr:api_debug_html.png?nolink&600 |}}