From f7c7443a52e95bb9730aaee430103b896aec47af Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 22 Jul 2023 23:46:28 +0200 Subject: [PATCH] fix: improved section about led lights for turris os --- knowledge base/turris os.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/knowledge base/turris os.md b/knowledge base/turris os.md index bc0519d..4b6fcd7 100644 --- a/knowledge base/turris os.md +++ b/knowledge base/turris os.md @@ -97,24 +97,25 @@ schnapps delete -t 'post' ## LED diodes settings -A permanent change of color can be set in the UCI configuration file `/etc/config/rainbow`. +Permanent changes can be set in `/etc/config/rainbow`, the UCI configuration file. -The `rainbow` utility allows one to change the color and set the status of each diode individually. The setting are `disable` (off), `enable` (on) or `auto`; `auto` leaves the control of the diodes to the hardware, like blinking during data transfer and so on. +The `rainbow` utility allows to change the color and set the status of each diode individually.
+The setting are `disable` (off), `enable` (on) or `auto`; `auto` leaves the control of the diodes to the hardware, like blinking during data transfer and so on. `rainbow`'s `brightness` subcommand uses numbers from 0 to 8, or from 0 to 255 if using the `-p` switch for higher precision. ### Automatic overnight dimming -Should you want to see the state of individual devices during day but not to be dazzled by the diodes in the night, you can automatically adjust the intensity of LEDs using a cronjob. +Automatically adjust the intensity of LEDs using a cronjob to be able to see the state of individual devices during the day, but not to be dazzled by the diodes in the night. -Create a text file in the `/etc/cron.d` directory: +Create the cron file in the `/etc/cron.d` directory: ```txt # File /etc/cron.d/rainbow_night. # Set the light intensity to the second lowest degree every day at 11 PM and set # it back to maximum every day at 7 AM. MAILTO="" # avoid automatic logging of the output -0 23 * * * root rainbow brightness 1 +0 23 * * * root rainbow brightness -p 3 0 7 * * * root rainbow brightness 5 ``` @@ -252,8 +253,8 @@ vim '/etc/config/lxc-auto' ```txt config container - option name pi-hole - option timeout 60 + option name pi-hole + option timeout 60 ``` ### Examples