workflow/assets/arbtt/update

24 lines
825 B
Plaintext
Raw Permalink Normal View History

2023-10-15 11:41:49 +02:00
#!/bin/sh
CATEGORIZE_FILE="./categorize.cfg"
CATEGORY="Graph"
FILTER="\$sampleage <= 2922:00" # Last 4 months
arbtt-stats --categorizefile=$CATEGORIZE_FILE \
--for-each=day \
--output-format=CSV \
--category=$CATEGORY \
--min-percentage=0.1 \
--filter="$FILTER" \
> "/home/tykayn/Nextcloud/ressources/gestion de l information/arbtt/daily.csv"
arbtt-stats --categorizefile=$CATEGORIZE_FILE \
--for-each=minute \
--output-format=CSV \
--category=$CATEGORY \
--min-percentage=0.1 \
--filter="$FILTER" \
> "/home/tykayn/Nextcloud/ressources/gestion de l information/arbtt/minute.csv"
python3 readArbttStats.py -c 'misc' -d /tmp/daily.csv -m /tmp/minute.csv