-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.json
43 lines (43 loc) · 1.42 KB
/
train.json
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
{"name": "train",
"cuckoo" : "true",
"namespace": "interdroid.swan.cuckoo_station_sensor",
"doc": "A sensor for departure times of trains in the Netherlands",
"author": "roelof <[email protected]>",
"configs": [
{"name": "from",
"class": "EditTextPreference",
"type": "String",
"android:inputType": "text",
"android:title" : "Departure Station",
"android:summary" : "Set Departure Station",
"android:dialogTitle": "Enter Departure Station"},
{"name": "to",
"class": "EditTextPreference",
"type": "String",
"android:inputType": "text",
"android:title" : "Destination Station",
"android:summary" : "Set Destination Station",
"android:dialogTitle": "Enter Destination Station"},
{"name": "type",
"class": "ListPreference",
"type": "String",
"default": "Intercity",
"android:entries": "@array/types",
"android:entryValues": "@array/types",
"android:title": "Type",
"android:summary": "Set Type",
"android:dialogTitle": "Choose Type"},
{"name": "time",
"class": "EditTextPreference",
"type": "String",
"android:inputType": "text",
"android:title" : "Time (hh:mm)",
"android:summary" : "Set Time (hh:mm)",
"android:dialogTitle": "Enter Time (hh:mm)"},
],
"valuePaths": [{"name":"departure", "type":"long"}],
"units": [{"name":"departure", "unit":"ms"}],
"values": [
{"name": "types", "type": "string-array", "items": ["Intercity", "Sprinter", "Fyra"]},
]
}