fanset
Description
Updates the fan control options. The parameters are the session_id
, followed by a comma-separated list of key-value pairs, in the format key=value
. The available keys are:
- speed: set the power sent to the fans; it 0-100 value for a fixed speed, or -1 to let luxminer control the fan speed automatically.
- min_fans: a zero or positive value indicating the minimum required number of fans.
- power_off_speed: is the speed to set the fans when shutting because of curtailment or a power-off event.
Note: If autosave is disabled, the changes will be lost after a reboot.
Note: This command will return an error for machines that do not natively have fans (i.e. Hydro and Immersion models).
Command
$ echo '{"command": "fanset", "parameter":"yJN2nlj1,power_off_speed=20"}' | nc $MINER_IP 4028 | jq
💡
Note: In previous luxminer versions, this command required speed and min fans as sequential unnamed parameters.
However, for compatibility reasons, if the second parameter can be interpreted as a number, the command will be handled as the old approach so this way we are fully backward-compatible.
All of the examples on this page use the new format.
Examples
$ echo '{"command": "fanset", "parameter":"yJN2nlj1,-1,1"}' | nc $MINER_IP 4028 | jq
{
"STATUS": [
{
"Code": 300,
"Description": "LUXminer 0.1.0-15436f7140",
"Msg": "Fan Speed Set",
"STATUS": "S",
"When": 1667917473
}
],
"id": 1
}
Parameters
Parameter | Notes |
---|---|
session_id | A valid session ID. See Session Management for details. |
speed | Optional. A 0-100 value for a fixed speed, or -1 to let luxminer control the fan speed. |
min_fans | Optional. A zero or positive value indicating the minimum required number of fans. |
power_off_speed | Optional. A 0-100 value that defines the fan speed when miner goes in power-off |