aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-24 00:44:56 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-24 00:44:56 +0100
commit2f08210fde3f168facc06327ec05a20467f4fe1b (patch)
tree0b576543083199687c2ca72d14d44438b7e64d43
parent28eabb470e5ddfa051ef23be4ca3d89677304331 (diff)
NMS: Update public API for temperature
-rwxr-xr-xweb/nms-public.gathering.org/api/public/switch-state2
-rwxr-xr-xweb/nms.gathering.org/api/public/switch-state2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/nms-public.gathering.org/api/public/switch-state b/web/nms-public.gathering.org/api/public/switch-state
index 2a2b5b6..2fff681 100755
--- a/web/nms-public.gathering.org/api/public/switch-state
+++ b/web/nms-public.gathering.org/api/public/switch-state
@@ -42,7 +42,7 @@ while ( my $ref = $q->fetchrow_hashref() ) {
}
$json{'switches'}{$sysname}{totals}{'total'} += 1;
}
- $json{'switches'}{$sysname}{'temp'} = $data{'misc'}{'enterprises.2636.3.1.13.1.7.7.1.0.0'}{''};
+ $json{'switches'}{$sysname}{'temp'} = $data{'misc'}{'jnxOperatingTemp'}{'7.1.0.0'};
$json{'switches'}{$sysname}{'time'} = $ref->{'time'};
}
diff --git a/web/nms.gathering.org/api/public/switch-state b/web/nms.gathering.org/api/public/switch-state
index 2a2b5b6..2fff681 100755
--- a/web/nms.gathering.org/api/public/switch-state
+++ b/web/nms.gathering.org/api/public/switch-state
@@ -42,7 +42,7 @@ while ( my $ref = $q->fetchrow_hashref() ) {
}
$json{'switches'}{$sysname}{totals}{'total'} += 1;
}
- $json{'switches'}{$sysname}{'temp'} = $data{'misc'}{'enterprises.2636.3.1.13.1.7.7.1.0.0'}{''};
+ $json{'switches'}{$sysname}{'temp'} = $data{'misc'}{'jnxOperatingTemp'}{'7.1.0.0'};
$json{'switches'}{$sysname}{'time'} = $ref->{'time'};
}