-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.yaml
34 lines (28 loc) · 1.23 KB
/
setup.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# setup
# this defines the devices.xml structure, along with the model yamls.
# read by services/adapter/src/adapter.js.
# sources define the inputs to the cache.
# compiled by services/adapter/compiler into devices.xml.
#. see also future/setup-future.yaml for future dev.
#. could have meta: section also
#. could we get this to one line per device? a site might have dozens of machines
# eg set defaults for all devices at the top, overrides per device?
devices:
- id: ccs-pa # this is substituted into the model yaml and sources
model: ccs-pa # for xml structure - see models/ccs-pa/device.yaml
#. shift these up, look for each explicitly
properties: # these are substituted into the model yaml
uuid: e05363af
serialNumber: '001'
# define data sources that feed into this device
sources:
- model: ccs-pa # model defines inputs and outputs with yaml files
protocol: mqtt-json # type of plugin - manages protocol and payload
url: mqtt://broker:1883
- model: rockwell-hmi
protocol: opc
url: opc.tcp://simulator-opc:4334/UA/LittleServer
destinations: # where to post output - just handles one output for now
- protocol: shdr
host: adapter
port: 7878