This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """CPU temperature -> RGB LED control via rgb_control.py. | |
| Reads CPU die temperature from Netdata (24h + 30d). | |
| Combines both windows for accurate min/max range: | |
| - min = min(24h_min, 30d_min) — never miss cool temps | |
| - max = max(24h_max, 30d_max) — capture peaks even if smoothed | |
| Maps current temp to a blue-to-red color gradient with intensity scaling. | |
| """ |