vapor-ware / synse-sdk

SDK for Synse Plugins in Go
https://synse.readthedocs.io/en/latest/sdk/intro/
GNU General Public License v3.0
3 stars 4 forks source link

update apply/scale transform config for ordering and flexibility #450

Closed edaniszewski closed 4 years ago

edaniszewski commented 4 years ago

This PR:

With this, a config snippet like:

devices:
- type: foo
  instances:
    - info: Device 1
      scalingFactor: 0.1
      apply:
        - FtoC

becomes

devices:
- type: foo
  instances:
    - info: Device 1
      transforms:
      - scale: 0.1
      - apply: FtoC

this allows you to specify order because it is a list, so if you want to apply before scale,

devices:
- type: foo
  instances:
    - info: Device 1
      transforms:
      - apply: FtoC
      - scale: 0.1

fixes #449