aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/sig-demoboard.json
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-08 19:03:21 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commitbdf2d19cf8a3d6005456508ca52dba74cd9c103f (patch)
treec53d5a5bbf411b15123b9e5989fca26a25dcf844 /conf.d/project/etc/sig-demoboard.json
parent19bc13783a7451c81848ea132614a8df11c7740a (diff)
Reformat configuration schema
Change-Id: I9550b51bb343c683e84de7200ec6a73ce1dcd71a 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.json86
1 files changed, 32 insertions, 54 deletions
diff --git a/conf.d/project/etc/sig-demoboard.json b/conf.d/project/etc/sig-demoboard.json
index 4b81989..c078d27 100644
--- a/conf.d/project/etc/sig-demoboard.json
+++ b/conf.d/project/etc/sig-demoboard.json
@@ -1,58 +1,36 @@
{
- "resources": [{
- "name": "/car/demoboard/",
- "values": [{
- "name": "vehicleSpeed",
- "additionnals_infos": {
- "unit": "km/h",
- "interval": 1000
- },
- "source": "CAN bus",
- "class": "raw",
- "type": "double",
- "source_args": {
- "event": "diagnostic_messages.vehicle.speed",
- "filter": {
- "frequency": "100",
- "min": 10
+ "signals": [
+ {
+ "label": "low-can/messages.vehicle.speed",
+ "class": "temporal",
+ "unit": "km/h",
+ "frequency": 1,
+ "actions": {
+ "label": "Unit converter",
+ "lua": "_Unit_Converter",
+ "args": {
+ "from": "km/h",
+ "to": "mi/h"
}
}
- }, {
- "name": "engineSpeed",
- "additionnals_infos": {
- "unit": "rpm",
- "interval": 1000
- },
- "source":"CAN bus",
- "class": "raw",
- "type": "double",
- "source_args": {
- "event": "diagnostic_messages.engine.speed"
- }
- }, {
- "name": "fuelLevel",
- "additionnals_infos": {
- "unit": "litre",
- "interval": 1000
- },
- "class":"raw",
- "source":"CAN bus",
- "type": "double",
- "source_args": {
- "event": "diagnostic_messages.fuel.level"
- }
- }, {
- "name": "engineLoad",
- "additionnals_infos": {
- "unit": "Nm",
- "interval": 1000
- },
- "source":"CAN bus",
- "type":"double",
- "class":"raw",
- "source_args": {
- "event": "diagnostic_messages.engine.load"
- }
- }]
- }]
+ },
+ {
+ "name": "low-can/diagnostic_messages.engine.speed",
+ "class": "temporal",
+ "unit": "rpm",
+ "frequency": 1
+ },
+ {
+ "name": "low-can/diagnostic_messages.fuel.level",
+ "class":"temporal",
+ "unit": "litre",
+ "frequency": 1
+ },
+ {
+ "name": "low-can/diagnostic_messages.engine.load",
+ "class":"temporal",
+ "unit": "Nm",
+ "interval": 1
+ }
+ ]
}