mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
Update helper_stats_graphs.yaml
This commit is contained in:
6
.github/workflows/helper_stats_graphs.yaml
vendored
6
.github/workflows/helper_stats_graphs.yaml
vendored
@@ -139,7 +139,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
}' StatsTmp > StatsTmp2 && mv StatsTmp2 StatsTmp
|
}' StatsTmp > StatsTmp2 && mv StatsTmp2 StatsTmp
|
||||||
#Normalize data
|
#Normalize data
|
||||||
awk 'FNR==NR{max=($2+0>max)?$2:max;next} {print $1,$2/max}' StatsTmp StatsTmp
|
#awk 'FNR==NR{max=($2+0>max)?$2:max;next} {print $1,$2/max}' StatsTmp StatsTmp
|
||||||
# Plot graph
|
# Plot graph
|
||||||
( gnuplot-nox -persist <<-EOFMarker
|
( gnuplot-nox -persist <<-EOFMarker
|
||||||
set title "$TITLE"
|
set title "$TITLE"
|
||||||
@@ -150,7 +150,7 @@ jobs:
|
|||||||
set format x "%y-%m-%d"
|
set format x "%y-%m-%d"
|
||||||
set datafile sep ' '
|
set datafile sep ' '
|
||||||
set autoscale
|
set autoscale
|
||||||
set terminal png size 500,300
|
set terminal png size 500,150
|
||||||
set output "stats.png"
|
set output "stats.png"
|
||||||
set term png tiny
|
set term png tiny
|
||||||
plot for [i=2:*] 'StatsTmp' using 1:i w l title columnhead(i) smooth bezier
|
plot for [i=2:*] 'StatsTmp' using 1:i w l title columnhead(i) smooth bezier
|
||||||
@@ -164,7 +164,7 @@ jobs:
|
|||||||
set format x "%y-%m-%d"
|
set format x "%y-%m-%d"
|
||||||
set datafile sep ' '
|
set datafile sep ' '
|
||||||
set autoscale
|
set autoscale
|
||||||
set terminal png size 500,300
|
set terminal png size 500,150
|
||||||
set output "stats.png"
|
set output "stats.png"
|
||||||
set term png tiny
|
set term png tiny
|
||||||
plot for [i=2:*] 'StatsTmp' using 1:i w l title columnhead(i)
|
plot for [i=2:*] 'StatsTmp' using 1:i w l title columnhead(i)
|
||||||
|
|||||||
Reference in New Issue
Block a user