Commit Briefs

1e431573b1 Sergey Bronnikov

litclock: support NO_COLOR (master, origin/master)

The patch brings support of `NO_COLOR` [1] environment variable. `litclock` will not use coloring when `NO_COLOR` is not empty. 1. http://no-color.org/


90294e6f4d Sergey Bronnikov

litclock: fix shellcheck warning (SC2034)

The patch fixes "SC2034 (warning): sfw appears unused."


d67e763924 Sergey Bronnikov

litclock: convert tabs to spaces


8601dd7572 Sergey Bronnikov

build: introduce language option


6e628374ed Sergey Bronnikov

style: fix order of imports


abbe1b7e2d Sergey Bronnikov

changelog: mention autogenerated videos

Follows up commit 5c4eb298de13 ("build: generate a video file").


f5ce0b02eb Sergey Bronnikov

readme: add a section about autogenerated videos

Follows up commit 5c4eb298de13 ("build: generate a video file").


0021c3849f Sergey Bronnikov

build(deps): bump pillow from 9.0.1 to 10.3.0

Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.0.1 to 10.3.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/9.0.1...10.3.0) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>


eb20a21cb4 Sergey Bronnikov

make: non-zero exit code when autopep failed


5c4eb298de Sergey Bronnikov

build: generate a video file


Branches

Tags

0.1.1

0.1.0

Tree

.github/
.gitignorecommits | blame
CHANGELOG.mdcommits | blame
LICENSE.mdcommits | blame
Makefilecommits | blame
README.mdcommits | blame
build.py*commits | blame
litclock*commits | blame
litclock.1commits | blame
quotes/
requirements.txtcommits | blame
static/

README.md

# literature clock

Clock using time quotes from a literature.

## Supported languages

- English, completeness - 99%, (1419 out of 1440 quotes).
- Russian, completeness - 34%, (495 out of 1440 quotes).

## Usage

### Console

There is a shell script `litclock` that shows a quote for a current time:

> $ date
>
> Tue Dec 27 09:45:57 AM MSK 2022
>
> $ litclock
>
> "Первое, что бросилось нам в глаза, когда мы вошли в комнату Николауса,
> были стенные часы. Они показывали **без четверти десять**.
> Возможно ли, что ему оставалось так мало жить? Сердце у меня сжалось."
> -- 'Таинственный незнакомец', Марк Твен

### Web

The working site is in the `static/` folder, and can be visited at
https://bronevichok.ru/clock/. To run it locally you may need to serve `static/`
with an HTTP server (e.g. `python3 -m http.server`) ... or just open
`static/index.html` in a web browser.

### Video

There is a [Youtube playlist][youtube] that contains autogenerated
videos with quotes. This videos suitable for showing literature
clock on a wall using video projectors.

## License

- English version: CC BY-NC-SA 2.5, [Johannes Enevoldsen](https://jenevoldsen.com/)
- Russian version: CC BY-NC-SA 2.5, [Sergey Bronnikov](https://bronevichok.ru/)

[youtube]: https://www.youtube.com/watch?v=agdtDR0ML6w&list=PLJhgYyft6AM3zjhozIq4yWh6bCQchQOrR