Hypnus is a small utility to turn off your computer if the EDF Tempo day is red.
Hypnus is implemented using the python standard library exclusively (it does not require external dependencies to run) and is compatible with the following python versions:
- 3.8
- 3.9
- 3.10
- 3.11
- 3.12
- Queries the free api-couleur-tempo.fr API to determine today's Tempo color.
- If that color is red, it turns off the computer (provided the current user has enough permissions for it)
Hypnus is a small utility that executes once, it purposefully does not implement any scheduling.
You can schedule the hypnus command to run every day at 6:00 AM (time at which the Tempo color changes).
You can install and run it multiple ways:
pip install "hypnus==1.0.0"
hypnus
--privileged
flag is a security risk, I am currently exploring alternatives.
docker run --rm --privileged ghcr.io/guillaumedsde/hypnus:1.0.0
- Published Pypi package
- Published multiarchitecture docker image
- Published static binary
See the LICENSE
file.