ads-clock, "non-ugly" clock for big terminal/display

Published: 11 June 2016
on channel: Archived Yu-Jie Lin
208
4

ads-clock [1] is a digital clock using TOIlet to render the display, 'ads' stands for the author's initials.

Basically, it's just a wrapper and post-processor for `date | toilet`. You will need a ridiculously bit terminal size with width ~255, yes, it's intended for big display, still, it's just orz, I wish it could break into two lines or not having the timezone. I have to reduce the font size to 7 and use `toilet` to render out the command outputs, so they can be captured better.

I don't know if it's "non-ugly," but some big text clocks ain't so bad-looking, maybe blocky, but not ugly in my eyes.

Also, the wrapper script `ads-clock` for `ads-clock-once` has set with 1-second interval, which inevitably would result some seconds skipped, just like this clock [2], but worse, because it's shell script and relying on external commands, each iteration would take more time to execute.

So, I changed the interval to 0.1 seconds, even no more skipping, but you can still see some updating latency. It's not a fancy clock, you shouldn't be needing a modern computer. Just need a better coding/scripting, in this case, implementing a slightly more precise timer could be a better solution, that is to `sleep` the exact time onto next second.

$$#

* git-13163e58f2e99f5172eb93abbff604b110dad656 (2016-06-11)
* In Bash with TOIlet
* By Alan D. Salewski
* GPLv2

[1]: https://github.com/salewski/ads-clock
[2]:    • clockr, digital clock   (digital clock)


Watch video ads-clock, "non-ugly" clock for big terminal/display online without registration, duration hours minute second in high quality. This video was added by user Archived Yu-Jie Lin 11 June 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 208 once and liked it 4 people.