Skip to main content

Simple daemon to control fan speed

Project description

Github repository PyPI package Continuous integration Quality assurance Documentation status Python version Python implementation

Simple daemon to control fan speed.

Documentation is available at https://fand.readthedocs.io/. The installation chapter provides install instructions and compatibility informations.

About

The main executable of this program is the fand-server daemon. There are 3 main modules: server, clientrpi and fanctl. They can be accessed through their respective entry points: fand-server, fand-clientrpi and fanctl. They can also be accessed with fand <module-name>.

A server monitor the hardware and clients connect to it to get data (e.g. fan speed or override a fan speed).

$ fanctl get-rpm shelf1
1500
$ fanctl get-pwm shelf1
50
$ fanctl set-pwm-override shelf1 100
ok
$ fanctl get-pwm shelf1
100
$ fanctl get-rpm shelf1
3000

Server

The server module provide a daemon which monitor devices temperatures and find a corresponding fan speed. It listens for connections from clients, and answers to requests.

Fan clients

A client is assigned a shelf and will regularly request the server for the fan speed (percentage). It will then ajust the fan to use this speed.

Clients also send the actual fan speed in RPM to the server. This will allow other client to have access to the data from the server.

Raspberry Pi client

The clientrpi module will connect to a server and get a fan speed from it. It will then set the fan speed with a PWM signal through the GPIO interface of the Pi. It will also tell the server the current real speed of the fans in rpm.

Command-line interface

The fanctl module is a command line interface to interact with the server. It provides commands to get the fan speed and rpm, and also allow to override the fans speed.

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

fand-0.1.1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

fand-0.1.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file fand-0.1.1.tar.gz.

File metadata

  • Download URL: fand-0.1.1.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for fand-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1508eea73c857336a46b1666f78d1b42c1eecf81a2a43ba5299b2a26f87fe591
MD5 a3aa1c946feb6c831d4adabd69d14884
BLAKE2b-256 84298796ab12b9f074a2fc539c3fc9ac62749ecd685428dfce38e67c9614a26e

See more details on using hashes here.

File details

Details for the file fand-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fand-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for fand-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4252343e4260d3656b5372f266a83f987623ffb4ed0371b7e5780b99a73c807
MD5 b36088f961acdd5ce66c8fc636c85bfc
BLAKE2b-256 de0a4d078bab9dbfa5b0a5e154c49d41d160dd7f76bf201070d194879952ae01

See more details on using hashes here.

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