Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng d9b011585b
Disable TLS for openbooks IRC connection 2023-12-12 14:58:54 +01:00
coolneng f1c6450ec4
Turn on HDD fan in the enclosure 2023-12-12 14:58:06 +01:00
2 changed files with 5 additions and 2 deletions

View File

@ -24,8 +24,8 @@
"--searchbot"
"searchook"
"--persist"
"-s"
"irc.irchighway.net:9999"
"--tls"
"false"
];
};
# Prometheus MQTT integration

View File

@ -6,6 +6,7 @@ PWM_PATH="$BASE_PATH"/pwm/pwmchip0
# GPIO pins
CPU_FAN=12
HDD_FAN=13
# Values
LOW=0
@ -49,11 +50,13 @@ set_pwm() {
turn_on() {
set_gpio $CPU_FAN $HIGH
set_gpio $HDD_FAN $HIGH
set_pwm
}
turn_off() {
set_gpio $CPU_FAN $LOW clean
set_gpio $HDD_FAN $LOW clean
set_pwm clean
}