tempsensorset
Description
Updates the options for defining temperature sensors control behavior. 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:
- bad_average_threshold: avg temp threshold to consider the temp reading as valid or not.
- max_bad_readings: maximum number of consecutive reading errors until considering the sensor as broken.
- min_per_board: defines what is the minimum number of working temperature sensors required, per board.
Providing an invalid value is an error, and the limits can be checked by using the limits command. You can see the current values with the tempsensor command.
Note: If autosave is disabled, the changes will be lost after a reboot.
Command
$ echo '{"command": "tempsensorset", "parameter":"a8Y8K3lt,min_per_board=2"}' | nc $MINER_IP 4028 | jq
Examples
In this example, we are adjusting the minimum required working sensors per board to 2. This change will be persistent (as long as autosave is enabled).
$ echo '{"command": "tempsensorset", "parameter":"a8Y8K3lt,min_per_board=2"}' | nc $MINER_IP 4028 | jq
{
"STATUS": [
{
"Code": 348,
"Description": "LUXminer 2023.12.13.205218-54b9ac9b",
"Msg": "Temperature sensor updated",
"STATUS": "S",
"When": 1702591990
}
],
"id": 1
}
Parameters
Parameter | Notes |
---|---|
session_id | A valid session ID. See Session Management for details. |
params | List of key-value parameters to change. |