mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-27 10:54:14 +02:00
Update helper_stats_graphs.yaml
This commit is contained in:
7
.github/workflows/helper_stats_graphs.yaml
vendored
7
.github/workflows/helper_stats_graphs.yaml
vendored
@@ -144,8 +144,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Create individual stats
|
- name: Create individual stats
|
||||||
run: |
|
run: |
|
||||||
echo "list"
|
|
||||||
ls
|
|
||||||
# Prepare data
|
# Prepare data
|
||||||
cp Stats Stats3
|
cp Stats Stats3
|
||||||
# Remove Totals
|
# Remove Totals
|
||||||
@@ -163,7 +161,9 @@ jobs:
|
|||||||
cp Stats3 StatsTmp
|
cp Stats3 StatsTmp
|
||||||
sed -n "/Date/p" Stats3 > "$FOLDER"/StatsTmp
|
sed -n "/Date/p" Stats3 > "$FOLDER"/StatsTmp
|
||||||
sed -n "/$TITLE/p" Stats3 >> "$FOLDER"/StatsTmp
|
sed -n "/$TITLE/p" Stats3 >> "$FOLDER"/StatsTmp
|
||||||
# Transpose data
|
# Go in folder
|
||||||
|
cd $FOLDER || true
|
||||||
|
# Transpose data
|
||||||
awk '
|
awk '
|
||||||
{
|
{
|
||||||
for (i=1; i<=NF; i++) {
|
for (i=1; i<=NF; i++) {
|
||||||
@@ -180,7 +180,6 @@ jobs:
|
|||||||
print str
|
print str
|
||||||
}
|
}
|
||||||
}' StatsTmp > StatsTmp2 && mv StatsTmp2 StatsTmp
|
}' StatsTmp > StatsTmp2 && mv StatsTmp2 StatsTmp
|
||||||
cd $FOLDER || true
|
|
||||||
# Plot graph
|
# Plot graph
|
||||||
( gnuplot-nox -persist <<-EOFMarker
|
( gnuplot-nox -persist <<-EOFMarker
|
||||||
set title "$TITLE"
|
set title "$TITLE"
|
||||||
|
|||||||
Reference in New Issue
Block a user