From 8406cbedf81bbb09d0e09da6eda01d459b0cc864 Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Thu, 17 Jun 2021 13:20:36 +0200 Subject: [PATCH] + configurable color values for bars --- config.sh | 11 +++++++++-- webroot/owo.shs | 12 ++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/config.sh b/config.sh index 9596a7a..75952c5 100644 --- a/config.sh +++ b/config.sh @@ -1,8 +1,15 @@ -## app config -## your application-specific config goes here! +## DownTimeRobot app config + +# DO NOT MODIFY THIS FILE! +# This file can be changed upstream as new features get added in. Instead, +# please use files under ../config/, especially master.sh. cfg[useragent]="dtr/1.0 (https://git.sakamoto.pl/domi/dtr)" +cfg[bar_ok]=70 # below this level, pings are shown as green +cfg[bar_info]=200 # below this, they're yellow +cfg[bar_warn]=500 # below this, they're orange, and above, they're red (fail) + worker_add every_1min 60 worker_add every_5min 300 worker_add every_30min 1800 diff --git a/webroot/owo.shs b/webroot/owo.shs index 5e45fea..7161228 100644 --- a/webroot/owo.shs +++ b/webroot/owo.shs @@ -60,21 +60,21 @@ for i in $timedata; do if [[ "$type" != "ping" ]]; then echo -n '
' else n="$(sed -E 's/\..*//' <<< "$i")" echo -n '