From 1c93ff74e3e7ec828a21e9028b99cd46752ebce8 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 3 May 2018 20:35:21 +0200 Subject: Rework loading sources and signals. Some function that are now included in the controller submodule do not need to be in the composer as well. Also initialize sources and signals in the same way . JSON configuration needs to be updated to fit this changes Change-Id: I2043791e7ee80f8350f33ed15bdf9980c0773b82 Signed-off-by: Romain Forlot --- conf.d/project/etc/sig-txc.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'conf.d/project/etc/sig-txc.json') diff --git a/conf.d/project/etc/sig-txc.json b/conf.d/project/etc/sig-txc.json index 275eea6..abe8a73 100644 --- a/conf.d/project/etc/sig-txc.json +++ b/conf.d/project/etc/sig-txc.json @@ -8,6 +8,14 @@ "unit": "km/h", "getSignalsArgs": { "event": "vehicle_speed" + }, + "onReceived": { + "uri": "lua://convert/", + "function": "_Unit_Converter", + "args": { + "from": "km/h", + "to": "mi/h" + } } }, { @@ -96,7 +104,8 @@ "retention": 30, "unit": "degrees", "onReceived": { - "function": "plugin://gps-callbacks/getHeading" + "uri": "plugin://gps-callbacks", + "function": "getHeading" } } ] -- cgit 1.2.3-korg