Git Product home page Git Product logo

eda's Introduction

Event Driven Automation Collection

This collection was born with the idea to group some plugins and resources that can be helpful in extending the Event Driven Automation collection.

Plugins

The following plugins are included in this collection:

Name Description
smartgic.eda.websocket Listen to a websocket for events

Usage

A sample rulebook using smartgic.eda.websocket source plugin is shown below:

---
- name: Demo rules with websocket as source
  hosts: all

  sources:
    - name: websocket
      smartgic.eda.websocket:
        host: "{{ websocket_host | default('127.0.0.1') }}"
        port: "{{ websocket_port | default(8181) }}"
        path: "{{ websocket_path | default('/core') }}"

  rules:
    - name: Run job template
      condition: event.type == "ovos-skill-personal.OpenVoiceOS:WhoMadeYou.intent"
      action:
        run_job_template:
          name: OVOS History
          organization: Default
          job_args:
            extra_vars:
              which_user: Gaetan
          retries: 2
          delay: 10

In order to pass the extra_vars make sure to check "Prompt on Launch" within the job template, cf: ansible/ansible-rulebook#622

Build DE (Decision Environment)

In order to get the collection build within the decision environment, please follow the steps below:

git clone https://github.com/smartgic/eda.git
cd eda
pip install ansible-builder
ansible-builder build -f decision-environment.yml -t smartgic/de-custom:latest -t smartgic/de-custom:1.0.2
podman push smartgic/de-custom:latest

eda's People

Contributors

goldyfruit avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.