mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Update weekly_stats.yaml
This commit is contained in:
3
.github/workflows/weekly_stats.yaml
vendored
3
.github/workflows/weekly_stats.yaml
vendored
@@ -109,6 +109,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Prepare data
|
# Prepare data
|
||||||
cp Stats Stats3
|
cp Stats Stats3
|
||||||
|
sudo apt-get install gawk -y
|
||||||
# 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 totals
|
# Only totals
|
||||||
@@ -129,7 +130,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
print str
|
print str
|
||||||
}
|
}
|
||||||
}' Stats3
|
}' Stats3 > StatsTmp && mv StatsTmp Stats3 && rm StatsTmp
|
||||||
# Plot graph
|
# Plot graph
|
||||||
sudo apt-get install gnuplot -y
|
sudo apt-get install gnuplot -y
|
||||||
gnuplot -persist <<-EOFMarker
|
gnuplot -persist <<-EOFMarker
|
||||||
|
|||||||
Reference in New Issue
Block a user