<?php

echo 'Papouch TME ';

$descr = SnmpQuery::get('SNMPv2-SMI::enterprises.18248.1.1.3.0')->value();
$temperature = (SnmpQuery::get('SNMPv2-SMI::enterprises.18248.1.1.1.0')->value() / 10);

if ($descr != '' && is_numeric($temperature) && $temperature > '0') {
    $temperature_oid = '.1.3.6.1.4.1.18248.1.1.1.0';
    $descr = trim(str_replace('"', '', $descr));
    discover_sensor(null, 'temperature', $device, $temperature_oid, '1', 'papouch-tme', $descr, '10', '1', null, null, null, null, $temperature);
}
