Files: 8b2bb74986427753f3b1628bd266bcc7bd7693ea / do.sh
453 bytesRaw
1 | |
2 | set -e |
3 | series=${1?series} |
4 | |
5 | case "$series" in |
6 | day|week|month);; |
7 | *) |
8 | echo "Expected series day, week or month" >&2 |
9 | exit 1 |
10 | ;; |
11 | esac |
12 | |
13 | est_jsonp_size=$(wc -c < "$series.jsonp" 2>&-) || true |
14 | sbotc activity.read '{"series":"'"$series"'","ids":true}' | pv ${est_jsonp_size:+-s $est_jsonp_size} > "$series.jsonp" |
15 | node process-ids.js "$series" |
16 | node run.js "$series" |
17 | optipng "$series".png |
18 | cp -v "$series".png "$series-$(date +%F -d yesterday).png" |
19 |
Built with git-ssb-web