Skip to content

Add delay action option in automations#79

Merged
MartinHjelmare merged 4 commits intodevelopfrom
add-pause-plugin
May 22, 2018
Merged

Add delay action option in automations#79
MartinHjelmare merged 4 commits intodevelopfrom
add-pause-plugin

Conversation

@MartinHjelmare
Copy link
Collaborator

  • The delay action takes a data parameter seconds which is the time in seconds to delay the next action in the automation.
  • Use the action like this:
automations:
  - name: test
    trigger:
      - type: event
        id: camacq_start_event
    action:
      - type: command
        id: start_imaging
      - type: automations
        id: delay
        data:
          seconds: 5.0
      - type: command
        id: stop_imaging

* The delay action takes a data paramter seconds which is the time in
  seconds to delay the next action in the automation.
* Use the action like this:
```yaml
automations:
  - name: test
    trigger:
      - type: event
        id: camacq_start_event
    action:
      - type: command
        id: start_imaging
      - type: automations
        id: delay
        data:
          seconds: 5.0
      - type: command
        id: stop_imaging
```
@MartinHjelmare MartinHjelmare merged commit c55739f into develop May 22, 2018
@MartinHjelmare MartinHjelmare deleted the add-pause-plugin branch May 22, 2018 15:40
@MartinHjelmare MartinHjelmare mentioned this pull request Jun 6, 2018
@MartinHjelmare MartinHjelmare mentioned this pull request Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant