--- /dev/null
+#!/bin/sh
+
+stamp=`date +%s -r $(uci get weathermon.process.dump_file)`
+now=`date +%s`
+delta=$(( $now - $stamp ))
+if [[ $delta -ge 300 ]]; then
+ /etc/init.d/weathermon restart
+fi
+
+pgrep weather-display > /dev/null || /etc/init.d/weather-display restart
procd_open_instance
procd_set_param command "$PROG"
procd_set_param nice "$NICEPRIO"
- procd_set_param respawn ${respawn_threshold:-600} ${respawn_timeout:-5} ${respawn_retry:-5}
+ procd_set_param respawn
procd_close_instance
}
procd_open_instance
procd_set_param command "$PROG"
procd_set_param nice "$NICEPRIO"
- procd_set_param respawn ${respawn_threshold:-600} ${respawn_timeout:-5} ${respawn_retry:-5}
+ procd_set_param respawn
procd_close_instance
}
--- /dev/null
+{
+ "names":{
+ "EACFB0F92443.BH1750.LUX":"Освещенность",
+ "EACFB0F92443.AM2315.TEMPERATURE":"Температура"
+ },
+ "colors":{
+ "EACFB0F92443.BH1750.LUX":"darkorange",
+ "EACFB0F92443.AM2315.TEMPERATURE":"red"
+ },
+ "units":{
+ "EACFB0F92443.BH1750.LUX":"Лк.",
+ "EACFB0F92443.AM2315.TEMPERATURE":"°C"
+ },
+ "scale": {
+ "EACFB0F92443.BH1750.LUX": [ 1, 0 ],
+ "EACFB0F92443.AM2315.TEMPERATURE": [ 1, 1 ]
+ },
+ "fonts": {
+ "axes": { "color": "black", "size": 16, "style": "normal" },
+ "legend": { "color": "black", "size": 16, "style": "normal" }
+ }
+}