Skip to main content

Power off computer on EDF Tempo red days.

Project description

💤 Hypnus

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

⚙️ How does it work?

  1. Queries the free api-couleur-tempo.fr API to determine today's Tempo color.
  2. If that color is red, it turns off the computer (provided the current user has enough permissions for it)

🏁 Getting started

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:

🐍 With pip install

pip install "hypnus==1.0.0"
hypnus

🐋 With docker run

⚠️ Warning: running docker images with the --privileged flag is a security risk, I am currently exploring alternatives.

docker run --rm --privileged ghcr.io/guillaumedsde/hypnus:1.0.0

🔮 Roadmap

  • Published Pypi package
  • Published multiarchitecture docker image
  • Published static binary

⚖️ License

See the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypnus-1.0.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

hypnus-1.0.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page