waterlens / remote-actuator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remote Actuator

This actuator is used to control a remote device to execute some tasks.

API

  • POST /tasks

    {
        "task_bundle": "...",
        "task_signature": "..."
    }
  • GET /tasks/uuid/{uuid}

  • GET /tasks/commit/{commit-hash}

  • GET /database

Task Bundle Configure Example

[task]
nonce = "Ft8BCnVqqGIAAAAAhW+GaLdBA4NZcjq+"
commit = "df6cc0ec563fd50e6e9fd6f1d6b9d1a315fc5402"
time = 1979-05-27T07:32:00Z
repeat = 3

[task.run]
before = """
"""
script = """
"""
after = """
"""

Configure Example

[config]
listen = "[::]:8668"
database = "/run/remote-actuator/history.sqlite"
workdir = "/run/remote-actuator/runs/"

About


Languages

Language:Rust 96.4%Language:Python 3.6%