mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update weekly_stats.yaml
This commit is contained in:
4
.github/workflows/weekly_stats.yaml
vendored
4
.github/workflows/weekly_stats.yaml
vendored
@@ -168,6 +168,8 @@ jobs:
|
|||||||
sed -i "2d" Stats3
|
sed -i "2d" Stats3
|
||||||
# Inverse file
|
# Inverse file
|
||||||
gawk -i inplace '{for(i=NF;i>1;i--)printf "%s ",$i;printf "%s",$1;print ""}' Stats3
|
gawk -i inplace '{for(i=NF;i>1;i--)printf "%s ",$i;printf "%s",$1;print ""}' Stats3
|
||||||
|
# Only top 10
|
||||||
|
head -n 12 Stats3 > tmp_file && mv tmp_file Stats3
|
||||||
# Transpose data
|
# Transpose data
|
||||||
awk '
|
awk '
|
||||||
{
|
{
|
||||||
@@ -187,7 +189,7 @@ jobs:
|
|||||||
}' Stats3 > StatsTmp && mv StatsTmp Stats3
|
}' Stats3 > StatsTmp && mv StatsTmp Stats3
|
||||||
# Plot graph
|
# Plot graph
|
||||||
( gnuplot-nox -persist <<-EOFMarker
|
( gnuplot-nox -persist <<-EOFMarker
|
||||||
set title 'Total addons'
|
set title 'Top 10 addons'
|
||||||
set ylabel 'Number of installations'
|
set ylabel 'Number of installations'
|
||||||
set xdata time
|
set xdata time
|
||||||
set datafile missing "-"
|
set datafile missing "-"
|
||||||
|
|||||||
Reference in New Issue
Block a user