{
shift()
shift()
- db["net_wifi_status"] = $0
+ set_net_wifi_status()
}
/^OK in:BLUETOOTH_POWER/\
db["mpd_status_percent"] = $3
}
-/^OK in:WEATHER/\
+/^OK in:WEATHER temperature/\
{
+ shift()
shift()
shift()
db["weather_temperature"] = $0
}
+/^OK in:WEATHER phenomena/\
+{
+ shift()
+ shift()
+ shift()
+ alert_trigger_low("weather_phenomena", "WeatherPhenomena", $0)
+}
+
/^OK in:DATE_TIME/\
{
shift()
db["disk_io_diff_r"] = curr_r - prev_r
}
+function set_net_wifi_status( interface) {
+ interface = $1
+ shift()
+ db["net_wifi_status", interface] = $0
+}
+
function set_net_addr_io( \
interface, address, io_curr_w, io_curr_r, io_prev_w, io_prev_r\
) {
io_stat = "--"
}
if (interface ~ "^w") {
- label = label ":" db["net_wifi_status"]
+ label = label ":" db["net_wifi_status", interface]
}
if (++count_printed > 1) {
sep = " "