This commit is contained in:
do
2020-05-24 17:08:45 +02:00
parent 672e6decab
commit c73c91c2a8

View File

@@ -1,3 +1,21 @@
hardware:
raspberrypi:
has_fan: True
fan:
has_fan: True
controller: /usr/local/bin/fan_ctrl.py
service_name: fancontroller
systemd:
service:
fancontroller:
Unit:
Description: Controlling the Fan via PWM
After: base.target
Service:
ExecStart: /usr/local/bin/fan_ctrl.py
User: pi
Group: gpio
Environment: RPI_FANPIN=21
Install:
WantedBy: multi-user.target