mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 09:28:20 +01:00
Update weekly_stats.yaml
This commit is contained in:
8
.github/workflows/weekly_stats.yaml
vendored
8
.github/workflows/weekly_stats.yaml
vendored
@@ -107,12 +107,10 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
- name: Create stats
|
||||
run: |
|
||||
printf "$(cats Stats)" \
|
||||
| awk '{for(i=NF;i>1;i--)printf "%s ",$i;printf "%s",$1;print ""}' > Stats3
|
||||
head -n 2 Stats3 > Stats3
|
||||
cat Stats3
|
||||
cp Stats Stats3
|
||||
gawk -i inplace '{for(i=NF;i>1;i--)printf "%s ",$i;printf "%s",$1;print ""}' Stats3
|
||||
echo "$(head -n 2 Stats3)" > Stats3
|
||||
sudo apt-get install gnuplot -y
|
||||
echo "installed"
|
||||
N=`awk 'NR==1 {print NF}' Stats3`
|
||||
plot for [i=2:N] "Stats3" u 1:i
|
||||
set term png
|
||||
|
||||
Reference in New Issue
Block a user