diff options
Diffstat (limited to 'test/afb-test/etc/sig-txc.json')
-rw-r--r-- | test/afb-test/etc/sig-txc.json | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/test/afb-test/etc/sig-txc.json b/test/afb-test/etc/sig-txc.json new file mode 100644 index 0000000..ec9ed81 --- /dev/null +++ b/test/afb-test/etc/sig-txc.json @@ -0,0 +1,110 @@ +{ + "$schema": "http://iot.bzh/download/public/schema/json/signal-composer-schema.json", + "signals": [ + { + "uid": "vehicle_speed", + "event": "txc-binding/vehicle_speed", + "retention": 30, + "unit": "km/h", + "getSignalsArgs": { + "event": "vehicle_speed" + }, + "onReceived": { + "action": "lua://convert#_Unit_Converter", + "args": { + "from": "km/h", + "to": "mi/h" + } + } + }, + { + "uid": "engine_speed", + "event": "txc-binding/engine_speed", + "retention": 30, + "unit": "rpm", + "getSignalsArgs": { + "event": "engine_speed" + } + }, + { + "uid": "fuel_level", + "event": "txc-binding/fuel_level", + "retention": 30, + "unit": "liter", + "getSignalsArgs": { + "event": "fuel_level" + } + }, + { + "uid": "accelerator_pedal_position", + "event": "txc-binding/accelerator_pedal_position", + "retention": 30, + "getSignalsArgs": { + "event": "accelerator_pedal_position" + } + }, + { + "uid": "torque_at_transmission", + "event": "txc-binding/torque_at_transmission", + "retention": 30, + "unit": "Nm", + "getSignalsArgs": { + "event": "torque_at_transmission" + } + }, + { + "uid": "steering_wheel_angle", + "event": "txc-binding/steering_wheel_angle", + "retention": 30, + "unit": "degrees", + "getSignalsArgs": { + "event": "steering_wheel_angle" + } + }, + { + "uid": "fuel_consumed_since_restart", + "event": "txc-binding/fuel_consumed_since_restart", + "retention": 30, + "unit": "liter", + "getSignalsArgs": { + "event": "fuel_consumed_since_restart" + } + }, + { + "uid": "odometer", + "event": "txc-binding/odometer", + "retention": 30, + "unit": "km", + "getSignalsArgs": { + "event": "odometer" + } + }, + { + "uid": "latitude", + "event": "txc-binding/latitude", + "retention": 30, + "unit": "degrees", + "getSignalsArgs": { + "event": "latitude" + } + }, + { + "uid": "longitude", + "event": "txc-binding/longitude", + "retention": 30, + "unit": "degrees", + "getSignalsArgs": { + "event": "longitude" + } + }, + { + "uid": "heading", + "depends": ["longitude", "latitude"], + "retention": 30, + "unit": "degrees", + "onReceived": { + "action": "plugin://gps-callbacks#getHeading" + } + } + ] +} |