4 /* Highlight rtl devices */
5 kismet_ui.AddDeviceRowHighlight({
6 name: "RTL433 Devices",
7 description: "RTL433 Sensor",
9 defaultcolor: "#ffb3cc",
12 'kismet.device.base.phyname'
14 selector: function(data) {
15 return data['kismet.device.base.phyname'] === "RTL433";
19 kismet_ui.AddDeviceDetail("rtl433", "RTL-433 (SDR)", 0, {
20 filter: function(data) {
21 return (data['kismet.device.base.phyname'] === "RTL433");
23 draw: function(data, target) {
24 target.devicedata(data, {
28 field: "rtl433.device/rtl433.device.common/rtl433.device.model",
30 empty: "<i>Unknown</i>"
33 field: "rtl433.device/rtl433.device.common/rtl433.device.id",
35 empty: "<i>Unknown</i>"
38 field: "rtl433.device/rtl433.device.common/rtl433.device.rtlchannel",
43 field: "rtl433.device/rtl433.device.common/rtl433.device.battery",
48 field: "rtl433.device/rtl433.device.thermometer",
49 groupTitle: "Thermometer",
50 id: "group_therm_data",
54 field: "rtl433.device/rtl433.device.thermometer/rtl433.device.temperature",
57 render: function(opts) {
58 return kismet_ui.renderTemperature(opts['value'], 2);
62 field: "rtl433.device/rtl433.device.thermometer/rtl433.device.humidity",
63 title: "Humidity (%)",
66 render: function(opts) {
67 return opts['value'] + "%";
73 field: "rtl433.device/rtl433.device.weatherstation",
74 groupTitle: "Weather",
75 id: "group_weather_data",
79 field: "rtl433.device/rtl433.device.weatherstation/rtl433.device.wind_dir",
80 title: "Wind Direction",
82 render: function(opts) {
83 var rv = opts['value'] + "° (" +
84 kismet_ui.DegToDir(opts['value']) + ")";
89 rv += '<span class="fa-stack" style="font-size: 16pt;">';
90 rv += '<i class="fa fa-stack-1x fa-circle-o" />';
91 rv += '<i class="fa fa-stack-1x fa-chevron-up" style="' +
92 '-ms-transform: rotate(' + opts['value'] + 'deg);' +
93 '-webkit-transform: rotate(' + opts['value'] + 'deg);' +
94 'transform: rotate(' + opts['value'] + 'deg);' +
103 field: "rtl433.device/rtl433.device.weatherstation/rtl433.device.wind_speed",
106 render: function(opts) {
107 return kismet_ui.renderSpeed(opts['value'], 2);
111 field: "rtl433.device/rtl433.device.weatherstation/rtl433.device.wind_gust",
114 render: function(opts) {
115 return kismet_ui.renderSpeed(opts['value'], 2);
119 field: "rtl433.device/rtl433.device.weatherstation/rtl433.device.rain",
126 field: "rtl433.device/rtl433.device.tpms",
127 groupTitle: "Tire pressure",
128 id: "group_tpms_data",
132 field: "rtl433.device/rtl433.device.tpms/rtl433.device.tpms.pressure_bar",
135 render: function(opts) {
136 return opts['value'] + " bar";
138 help: "Reported TPMS pressure in bars",
141 field: "rtl433.device/rtl433.device.tpms/rtl433.device.tpms.pressure_kpa",
144 render: function(opts) {
145 return opts['value'] + " kPa";
147 help: "Reported TPMS pressure in kPa",
152 field: "rtl433.device/rtl433.device.switch",
153 groupTitle: "Switch",
154 id: "group_switch_data",
158 field: "rtl433.device/rtl433.device.switch/rtl433.device.switch.1",
161 render: function(opts) {
162 return opts['value'];
166 field: "rtl433.device/rtl433.device.switch/rtl433.device.switch.2",
169 render: function(opts) {
170 return opts['value'];
174 field: "rtl433.device/rtl433.device.switch/rtl433.device.switch.3",
177 render: function(opts) {
178 return opts['value'];
182 field: "rtl433.device/rtl433.device.switch/rtl433.device.switch.4",
185 render: function(opts) {
186 return opts['value'];
190 field: "rtl433.device/rtl433.device.switch/rtl433.device.switch.5",
193 render: function(opts) {
194 return opts['value'];
200 field: "rtl433.device/rtl433.device.lightningsensor",
201 groupTitle: "Lightning Sensor",
202 id: "group_lightning_data",
206 field: "rtl433.device/rtl433.device.lightningsensor/rtl433.device.lightning_strike_count",
207 title: "Strike Count",
209 help: "Last reported lighting strike count (may reset arbitrarily)"
212 field: "rtl433.device/rtl433.device.lightningsensor/rtl433.device.lightning_storm_active",
213 title: "Storm Active",
215 help: "Storm currently active",
216 render: function(opts) {
223 field: "rtl433.device/rtl433.device.lightningsensor/rtl433.device.lightning_rfi",
226 help: "Radio Frequency Interference from lightning activity"
229 field: "rtl433.device/rtl433.device.lightningsensor/rtl433.device.lightning_storm_distance",
230 title: "Storm distance",
232 help: "Estimated storm distance (no distance units provided)"