mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Change raspberry_pi_sensors state (#12390)
* Change raspberry_pi_sensors state I think it is great that the codecs of a Raspberry are queried, but a non-existent codec license is not a critical sensor value. What do you think? * Update linux_raspberrypi.json * Update linux_raspberrypi.json Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ if (! empty($pre_cache['raspberry_pi_sensors'])) {
|
||||
if (stripos($value, 'abled') !== false) {
|
||||
$states = [
|
||||
['value' => 2, 'generic' => 0, 'graph' => 1, 'descr' => 'enabled'],
|
||||
['value' => 3, 'generic' => 2, 'graph' => 1, 'descr' => 'disabled'],
|
||||
['value' => 3, 'generic' => 3, 'graph' => 1, 'descr' => 'disabled'],
|
||||
];
|
||||
create_state_index($state_name, $states);
|
||||
|
||||
|
||||
@@ -328,7 +328,7 @@
|
||||
"state_descr": "disabled",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 2
|
||||
"state_generic_value": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -660,7 +660,7 @@
|
||||
"state_descr": "disabled",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 2
|
||||
"state_generic_value": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user