Skip to content
Snippets Groups Projects
example-config.php 2.98 KiB
Newer Older
<?php

return [
    'fans' => [
        [
            'name' => 'exhaust fans',
            'type' => 'App\\Model\\Fan\\HwmonFan',
            'options' => [
                'hwmon' => 'nct6798',
                'fan' => 'fan1',
                'pwm' => 'pwm1',
                'start' => 70,
                'max' => 200,
            ],
        ],
        [
            'name' => 'cpu fan',
            'type' => 'App\\Model\\Fan\\HwmonFan',
            'options' => [
                'hwmon' => 'nct6798',
                'fan' => 'fan2',
                'pwm' => 'pwm2',
                'start' => 40,
                'max' => 255,
            ],
        ],
        [
            'name' => 'radiator fans',
            'type' => 'App\\Model\\Fan\\HwmonFan',
            'options' => [
                'hwmon' => 'nct6798',
                'fan' => 'fan3',
                'pwm' => 'pwm3',
                'start' => 60,
                'max' => 255,
            ],
        ],
        [
            'name' => 'bottom fans',
            'type' => 'App\\Model\\Fan\\HwmonFan',
            'options' => [
                'hwmon' => 'nct6798',
                'fan' => 'fan4',
                'pwm' => 'pwm4',
                'start' => 65,
                'max' => 160,
            ],
        ],
        [
            'name' => 'water pump',
            'type' => 'App\\Model\\Fan\\HwmonFan',
            'options' => [
                'hwmon' => 'nct6798',
                'fan' => 'fan6',
                'pwm' => 'pwm6',
                'start' => 20,
                'max' => 128,
            ],
        ],
    ],
    'sensors' => [
        [
            'name' => 'cpu',
            'type' => 'App\\Model\\Sensor\\HwmonSensor',
            'options' => [
                'hwmon' => 'k10temp',
                'temp' => 'temp1',
            ],
        ],
        [
            'name' => 'gpu',
            'type' => 'App\\Model\\Sensor\\CommandSensor',
            'options' => [
                'command' => 'nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader',
                'conversion' => NULL,
            ],
        ],
    ],
    'rules' => [
        [
            'fans' => [
                'exhaust fans',
                'cpu fan',
                'bottom fans',
            ],
            'sensor' => 'cpu',
            'type' => 'App\\Model\\Rule\\CurveRule',
            'options' => [
                'alwaysOn' => true,
                'points' => [
                    0 => 55,
                    60 => 80,
                    100 => 90,
                ],
            ],
        ],
        [
            'fans' => [
                'radiator fans',
                'water pump',
            ],
            'sensor' => 'gpu',
            'type' => 'App\\Model\\Rule\\CurveRule',
            'options' => [
                'alwaysOn' => true,
                'points' => [
                    0 => 35,
                    60 => 55,
                    100 => 90,
                ],
            ],
        ],
    ],
];