purarue / glue

source code for my website homepage/fallback web server
https://purarue.xyz
Apache License 2.0
3 stars 0 forks source link

page hits graph over time #47

Closed purarue closed 2 years ago

purarue commented 2 years ago

can do this locally, cant think of a nice way to show it remotely

$ jq <page_hits_epochs.json '.[]' | epochdisplay -f '%Y-%m-%d' | group-and-termgraph | tail
2022-02-13: ▇▇▇▇▇ 12.00
2022-02-14: ▇▇▇▇▇▇▇ 15.00
2022-02-15: ▇▇▇▇▇▇▇▇▇▇ 22.00
2022-02-16: ▇▇▇▇▇▇ 13.00
2022-02-17: ▇▇▇▇ 10.00
2022-02-18: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 33.00
2022-02-19: ▇▇▇▇▇▇▇ 16.00
2022-02-20: ▇▇▇ 7.00
2022-02-21: ▇▇▇▇▇▇▇ 15.00
2022-02-22: ▇▇▇▇▇ 12.00
purarue commented 2 years ago

using this feature https://github.com/seanbreckenridge/glue/commit/3bfc3934fa852c21affce485d3cf4da671dc8a34