modified: data/plot.gp

modified:   html/style.css
	modified:   index.sh
This commit is contained in:
root
2026-03-05 22:36:26 +01:00
parent b2338f3d60
commit 2242f21cf5
3 changed files with 55 additions and 9 deletions
+7 -6
View File
@@ -65,7 +65,7 @@ wtemp_new="$(cat $data/wtemp.data)"
# Write plot data
echo "$(date +%Y%m%d%H%M) $atemp_new" >> "$data"/atemp.plot
echo "$(date +%Y%m%d%H%M) $depth_new" >> "$data"/depth.plot
echo "$(date +%Y%m%d%H%M) ${disch_new}" >> "$data"/disch.plot
echo "$(date +%Y%m%d%H%M) $disch_new" >> "$data"/disch.plot
echo "$(date +%Y%m%d%H%M) $wtemp_new" >> "$data"/wtemp.plot
# Clean plot data and create plot images
@@ -131,21 +131,22 @@ disch_dng="$(cat $data/disch.data)"
if [ $disch_dng -le 350000 ]
then
dangr="color:#00FF00\">1"
dangr="color:#00FF00; text-shadow: 0 0 1px #000, 0 0 2px #00FF00, 0 0 4px #00FF00;\">1"
elif [ $disch_dng -gt 350000 ] && [ $disch_dng -le 450000 ]
then
dangr="color:#FFFF00\">2"
dangr="color:#FFFF00; text-shadow: 0 0 1px #000, 0 0 2px #FFFF00, 0 0 4px #FFFF00;\">2"
elif [ $disch_dng -gt 450000 ] && [ $disch_dng -le 530000 ]
then
dangr="color:#FFA500\">3"
dangr="color:#FFA500; text-shadow: 0 0 1px #000, 0 0 2px #FFA500, 0 0 4px #FFA500;\">3"
elif [ $disch_dng -gt 530000 ] && [ $disch_dng -le 600000 ]
then
dangr="color:#FF0000\">4"
dangr="color:#FF0000; text-shadow: 0 0 1px #000, 0 0 2px #FF0000, 0 0 4px #FF0000;\">4"
else
dangr="color:#9A0000\">5"
dangr="color:#9A0000; text-shadow: 0 0 1px #000, 0 0 2px #9A0000, 0 0 4px #9A0000;\">5"
fi
# Read current data