Files: 8b2bb74986427753f3b1628bd266bcc7bd7693ea / draft.sh
997 bytesRaw
1 | |
2 | date=${1?date} |
3 | day_img=$(sbotc blobs.add < day-flat.png) |
4 | week_img=$(sbotc blobs.add < week-scaled.png) |
5 | month_img=$(sbotc blobs.add < month-scaled.png) |
6 | |
7 | { |
8 | read day_peek_date day_peek_count _ |
9 | read week_peek_date week_peek_count _ |
10 | read month_peek_date month_peek_count _ |
11 | } < peeks-$date.txt |
12 | |
13 | previous=$(sbotc query.read '{"reverse":true,"limit":1,"query":[{"$filter":{"value":{"author":"@5XaVcAJ5DklwuuIkjGz4lwm2rOnMHHovhNg7BFFnyJ8=.ed25519","content":{"type":"post","text":{"$prefix":"## SSB Activity Graphs"}}}}},{"$map":["key"]}]}' | grep -o %.*sha256) |
14 | |
15 | cat <<EOF |
16 | ## SSB Activity Graphs $date |
17 | |
18 | ### Daily active feeds |
19 | ![ssb-activity-day-$date.png]($day_img) |
20 | Peek: **$day_peek_date** $day_peek_count |
21 | |
22 | ### Weekly active feeds |
23 | ![ssb-activity-week-$date.png]($week_img) |
24 | Peek: **$week_peek_date** $week_peek_count |
25 | |
26 | ### Monthly active feeds |
27 | ![ssb-activity-month-$date.png]($month_img) |
28 | Peek: **$month_peek_date** $month_peek_count |
29 | |
30 | Start date: **2015-08-05** |
31 | |
32 | [Previous]($previous) |
33 | EOF |
34 |
Built with git-ssb-web