mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-26 07:50:33 +02: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
|
uses: actions/checkout@v3
|
||||||
- name: Create stats
|
- name: Create stats
|
||||||
run: |
|
run: |
|
||||||
printf "$(cats Stats)" \
|
cp Stats Stats3
|
||||||
| awk '{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
|
||||||
head -n 2 Stats3 > Stats3
|
echo "$(head -n 2 Stats3)" > Stats3
|
||||||
cat Stats3
|
|
||||||
sudo apt-get install gnuplot -y
|
sudo apt-get install gnuplot -y
|
||||||
echo "installed"
|
|
||||||
N=`awk 'NR==1 {print NF}' Stats3`
|
N=`awk 'NR==1 {print NF}' Stats3`
|
||||||
plot for [i=2:N] "Stats3" u 1:i
|
plot for [i=2:N] "Stats3" u 1:i
|
||||||
set term png
|
set term png
|
||||||
|
|||||||
Reference in New Issue
Block a user