24 lines
825 B
Bash
Executable File
24 lines
825 B
Bash
Executable File
#!/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
|