mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 01:31:51 +02:00
Update helper_stats_graphs.yaml
This commit is contained in:
60
.github/workflows/helper_stats_graphs.yaml
vendored
60
.github/workflows/helper_stats_graphs.yaml
vendored
@@ -174,36 +174,36 @@ jobs:
|
|||||||
# if folder exists
|
# if folder exists
|
||||||
if [ -d "$FOLDER" ]; then
|
if [ -d "$FOLDER" ]; then
|
||||||
echo "$TITLE"
|
echo "$TITLE"
|
||||||
# Plot graph
|
# Plot graph
|
||||||
( gnuplot-nox -persist <<-EOFMarker
|
( gnuplot-nox -persist <<-EOFMarker
|
||||||
set title "$TITLE"
|
set title "$TITLE"
|
||||||
set ylabel 'Number of installations'
|
set ylabel 'Number of installations'
|
||||||
set xdata time
|
set xdata time
|
||||||
set datafile missing "-"
|
set datafile missing "-"
|
||||||
set timefmt "%Y-%m-%d"
|
set timefmt "%Y-%m-%d"
|
||||||
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,300
|
||||||
set output "$FOLDER/stats.png"
|
set output "$FOLDER/stats.png"
|
||||||
set term png tiny
|
set term png tiny
|
||||||
plot for [i=2:*] 'Stats3' using 1:i w l title columnhead(i) smooth csplines
|
plot for [i=2:*] 'Stats3' using 1:i w l title columnhead(i) smooth csplines
|
||||||
EOFMarker
|
EOFMarker
|
||||||
) || ( gnuplot-nox -persist <<-EOFMarker
|
) || ( gnuplot-nox -persist <<-EOFMarker
|
||||||
set title "$TITLE"
|
set title "$TITLE"
|
||||||
set ylabel 'Number of installations'
|
set ylabel 'Number of installations'
|
||||||
set xdata time
|
set xdata time
|
||||||
set datafile missing "-"
|
set datafile missing "-"
|
||||||
set timefmt "%Y-%m-%d"
|
set timefmt "%Y-%m-%d"
|
||||||
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,300
|
||||||
set output "$FOLDER/stats.png"
|
set output "$FOLDER/stats.png"
|
||||||
set term png tiny
|
set term png tiny
|
||||||
plot for [i=2:*] 'Stats3' using 1:i w l title columnhead(i)
|
plot for [i=2:*] 'Stats3' using 1:i w l title columnhead(i)
|
||||||
EOFMarker
|
EOFMarker
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# Clean files
|
# Clean files
|
||||||
|
|||||||
Reference in New Issue
Block a user