summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/sig-demoboard.json
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-19 01:17:28 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commitf4fba8a2744991ff8c5cb8af4a67c7d9456f1057 (patch)
tree352231c9342344599ec2af08ef82495deefb238f /conf.d/project/etc/sig-demoboard.json
parent9f61a83961cdbf133fdeb80cb978e6c79f4a9547 (diff)
Modification about conf definition
- Argument for each signal subscription. (getSignalsArgs) - differentiation between Signal as raw signal from another API and virtual signal depending upon other signals - changing way to specify function with uri that specify everythings that could be needed to invoke a function. Change-Id: I8917c5ae3c2c1e3fa48ddfdda41fc75eaba32bb7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project/etc/sig-demoboard.json')
-rw-r--r--conf.d/project/etc/sig-demoboard.json16
1 files changed, 10 insertions, 6 deletions
diff --git a/conf.d/project/etc/sig-demoboard.json b/conf.d/project/etc/sig-demoboard.json
index c078d27..3d03f3e 100644
--- a/conf.d/project/etc/sig-demoboard.json
+++ b/conf.d/project/etc/sig-demoboard.json
@@ -1,11 +1,12 @@
{
"signals": [
{
- "label": "low-can/messages.vehicle.speed",
+ "id": "vehicle_speed",
+ "event": "low-can/messages.vehicle.speed",
"class": "temporal",
"unit": "km/h",
"frequency": 1,
- "actions": {
+ "onReceived": {
"label": "Unit converter",
"lua": "_Unit_Converter",
"args": {
@@ -15,22 +16,25 @@
}
},
{
- "name": "low-can/diagnostic_messages.engine.speed",
+ "id": "engine_speed",
+ "event": "low-can/diagnostic_messages.engine.speed",
"class": "temporal",
"unit": "rpm",
"frequency": 1
},
{
- "name": "low-can/diagnostic_messages.fuel.level",
+ "id": "fuel_level",
+ "event": "low-can/diagnostic_messages.fuel.level",
"class":"temporal",
"unit": "litre",
"frequency": 1
},
{
- "name": "low-can/diagnostic_messages.engine.load",
+ "id": "engine_load",
+ "event": "low-can/diagnostic_messages.engine.load",
"class":"temporal",
"unit": "Nm",
- "interval": 1
+ "frequency": 1
}
]
}