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" "--searchbot"
"searchook" "searchook"
"--persist" "--persist"
"-s" "--tls"
"irc.irchighway.net:9999" "false"
]; ];
}; };
# Prometheus MQTT integration # Prometheus MQTT integration

View File

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