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
indigo_2025.2_documentation:api [2026/05/01 18:07] – [Variable Command Messages] davel17indigo_2025.2_documentation:api [2026/05/01 18:12] (current) – [variable command messages] davel17
Line 519: Line 519:
  
 === variable command messages === === variable command messages ===
-The ''updateValue'' command is currently the only command message you can send to the variable feed. It closely mirrors the Python-based [[indigo_2025.2_documentation:object_model_reference|IOM command for updating variables]]. This was completely intentional to make learning one API a stepping stone to another. The HTTP API messages and the Websocket API messages are identical, and are very clearly a JSON-rendered version of the associated IOM command.+Variable commands closely mirror the Python-based [[indigo_2025.2_documentation:object_model_reference|IOM command for variable objects]]. This was completely intentional to make learning one API a stepping stone to another. The HTTP API messages and the Websocket API messages are identical, and are very clearly a JSON-rendered version of the associated IOM command. 
 + 
 +== create == 
 + 
 +The id key is optional, but may contain a user generated ID that will be logged and returned to help match up with message requests. Custom id values should be strings. The parameters dict is required and must contain a value key/value pair. The value must be a string, but an empty string is accepted. The folder key/value pair is optional. If a folder ID is included that doesn't exist, Indigo will ignore it and create the variable outside all folders. 
 + 
 +<code json> 
 +
 +  "id": "optional-message-id", 
 +  "message": "indigo.variable.create", 
 +  "objectId": "new_name", 
 +  "parameters":
 +    "value": "new value", 
 +    "folder": 12345678, 
 +  } 
 +
 +</code>
  
 == updateValue == == updateValue ==
Line 2143: Line 2159:
   }   }
 }</code> }</code>
- 
-''objectId'' is the id of the variable. The ''value'' parameter is required and must be a string. Pass an empty string ("") to clear the variable value. 
  
 == indigo.variable.updateValue == == indigo.variable.updateValue ==
  • /www/perceptive/wiki/data/attic/indigo_2025.2_documentation/api.1777658829.txt.gz
  • Last modified: 2026/05/01 18:07
  • by davel17