Fix akcp unit

This commit is contained in:
garnier-quentin 2019-11-12 11:59:59 +01:00
parent 28589201bd
commit 4a8a204be0
2 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@ our @EXPORT_OK = qw(%map_default1_status %map_default2_status %map_online %map_d
%map_degree_type = (
0 => { unit => 'F', unit_long => 'fahrenheit' },
F => { unit => 'F', unit_long => 'fahrenheit' },
1 => { unit => 'C', unit_long => 'celsius' },
C => { unit => 'C', unit_long => 'celsius' },
);
1;

View File

@ -44,7 +44,7 @@ my $mapping2 = {
TempHighCritical => { oid => '.1.3.6.1.4.1.3854.3.5.2.1.12' }, # temperatureHighCritical
TempLowWarning => { oid => '.1.3.6.1.4.1.3854.3.5.2.1.10' }, # temperatureLowWarning
TempLowCritical => { oid => '.1.3.6.1.4.1.3854.3.5.2.1.9' }, # temperatureLowCritical
TempDegreeType => { oid => '.1.3.6.1.4.1.3854.3.5.2.1.5'}, # temperatureUnit
TempDegreeType => { oid => '.1.3.6.1.4.1.3854.3.5.2.1.5', map => \%map_degree_type }, # temperatureUnit
};
my $oid_hhmsSensorArrayTempEntry = '.1.3.6.1.4.1.3854.1.2.2.1.16.1';