https://github.com/ananace/gpio_fan
A small C++ GPIO fan daemon
https://github.com/ananace/gpio_fan
Last synced: 12 days ago
JSON representation
A small C++ GPIO fan daemon
- Host: GitHub
- URL: https://github.com/ananace/gpio_fan
- Owner: ananace
- License: mit
- Created: 2022-07-07T14:19:31.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T14:19:43.000Z (almost 4 years ago)
- Last Synced: 2025-11-16T14:12:23.776Z (8 months ago)
- Language: C
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
GPIO Fan daemon
===============
A small daemon for controlling a fan on a GPIO pin, similar to the dtoverlay gpio-fan.
Default configuration is to handle a fan on pin 18, activating it at 55°C and deactivating it again at 45°C.
The `-t`/`--temp` option will set a range in the same way as the dtoverlay gpio-fan, though with floating point values. (so 75°C would be 75, whereas the gpio-fan dtoverlay would want the value 75000)
```
Usage: gpio_fan [OPTIONS...]
Args:
-p --pin PIN Set the GPIO pin to toggle
-n --interval SEC Set the delay between temperature checks (in seconds)
-t --temp TEMP Set temperature range as in gpio-fan
-m --min MIN Set turn-off point
-M --max MAX Set turn-on point
```
A systemd unit is provided which is suitable for use with Raspberry Pi OS or Debian, for Alpine or other non-systemd dists you can run it with rc.local or similar methods.