| Both sides previous revision Previous revision Next revision | Previous revision |
| indigo_2023.2_documentation:overview [2025/10/21 20:44] – [Insert Timestamp into Variable] davel17 | indigo_2023.2_documentation:overview [2025/10/21 22:04] (current) – [Insert Event Data into Variable] davel17 |
|---|
| Click the ''**Edit Action Settings...**'' button and it will open a dialog (shown above). Here you will select the variable and, optionally, the format string as defined in the [[http://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior|Python datetime string formatting]] documentation (see the chart at the bottom for format specifiers). The format in the **''Format string''** field is the default format. | Click the ''**Edit Action Settings...**'' button and it will open a dialog (shown above). Here you will select the variable and, optionally, the format string as defined in the [[http://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior|Python datetime string formatting]] documentation (see the chart at the bottom for format specifiers). The format in the **''Format string''** field is the default format. |
| |
| === Insert Event Data into Variable === | |
| {{:indigo_2023.2_documentation:insert_event_data_into_variable.png?600|}} | |
| |
| Click the ''**Edit Action Settings...**'' button and it will open a dialog (shown above). Here you will select the variable and, optionally, the ''**Path specifier**'' if you want to access specific parts of the event data. | |
| |
| Path specifiers use a specific syntax and require knowledge of the event data you'll be receiving from the event. For example, given this event data: | |
| <code> | |
| { | |
| "event-indigo-id": 1214985350, # the ID of the trigger, schedule, action group, etc | |
| "event-type": "Trigger", # the event type - trigger, schedule, action group, etc. | |
| "source": "server", # the source of the event (see description below) | |
| "timestamp": "2025-08-07T14:32:21", # ISO formatted datetime string | |
| } | |
| </code> | |
| === Toggle Variable === | === Toggle Variable === |
| {{toggle_variable_action.png?nolink|Toggle Variable Action Image}} | {{toggle_variable_action.png?nolink|Toggle Variable Action Image}} |