home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Alert on reported weather phenomena
[khatus.git]
/
bin
/
khatus_controller
diff --git
a/bin/khatus_controller
b/bin/khatus_controller
index
c67e640
..
587e37c
100755
(executable)
--- a/
bin/khatus_controller
+++ b/
bin/khatus_controller
@@
-133,13
+133,22
@@
db["mpd_status_percent"] = $3
}
db["mpd_status_percent"] = $3
}
-/^OK in:WEATHER/\
+/^OK in:WEATHER
temperature
/\
{
{
+ shift()
shift()
shift()
db["weather_temperature"] = $0
}
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()
/^OK in:DATE_TIME/\
{
shift()
This page took
0.024527 seconds
and
4
git commands to generate.