aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/sig-txc.json
blob: abe8a7393c7f9c12b0d48bf3ac81c77dd3f5b0b2 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
	"$schema": "http://iot.bzh/download/public/schema/json/signal-composer-schema.json",
	"signals": [
		{
			"uid": "vehicle_speed",
			"event": "txc/vehicle_speed",
			"retention": 30,
			"unit": "km/h",
			"getSignalsArgs": {
				"event": "vehicle_speed"
			},
			"onReceived": {
				"uri": "lua://convert/",
				"function": "_Unit_Converter",
				"args": {
					"from": "km/h",
					"to": "mi/h"
				}
			}
		},
		{
			"uid": "engine_speed",
			"event": "txc/engine_speed",
			"retention": 30,
			"unit": "rpm",
			"getSignalsArgs": {
				"event": "engine_speed"
			}
		},
		{
			"uid": "fuel_level",
			"event": "txc/fuel_level",
			"retention": 30,
			"unit": "liter",
			"getSignalsArgs": {
				"event": "fuel_level"
			}
		},
		{
			"uid": "accelerator_pedal_position",
			"event": "txc/accelerator_pedal_position",
			"retention": 30,
			"getSignalsArgs": {
				"event": "accelerator_pedal_position"
			}
		},
		{
			"uid": "torque_at_transmission",
			"event": "txc/torque_at_transmission",
			"retention": 30,
			"unit": "Nm",
			"getSignalsArgs": {
				"event": "torque_at_transmission"
			}
		},
		{
			"uid": "steering_wheel_angle",
			"event": "txc/steering_wheel_angle",
			"retention": 30,
			"unit": "degrees",
			"getSignalsArgs": {
				"event": "steering_wheel_angle"
			}
		},
		{
			"uid": "fuel_consumed_since_restart",
			"event": "txc/fuel_consumed_since_restart",
			"retention": 30,
			"unit": "liter",
			"getSignalsArgs": {
				"event": "fuel_consumed_since_restart"
			}
		},
		{
			"uid": "odometer",
			"event": "txc/odometer",
			"retention": 30,
			"unit": "km",
			"getSignalsArgs": {
				"event": "odometer"
			}
		},
		{
			"uid": "latitude",
			"event": "txc/latitude",
			"retention": 30,
			"unit": "degrees",
			"getSignalsArgs": {
				"event": "latitude"
			}
		},
		{
			"uid": "longitude",
			"event": "txc/longitude",
			"retention": 30,
			"unit": "degrees",
			"getSignalsArgs": {
				"event": "longitude"
			}
		},
		{
			"uid": "heading",
			"depends": ["longitude", "latitude"],
			"retention": 30,
			"unit": "degrees",
			"onReceived": {
				"uri": "plugin://gps-callbacks",
				"function": "getHeading"
			}
		}
	]
}