$url="http://192.168.1.1/rci/show/interface/LTE";
// Initiate curl
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
curl_setopt($ch, CURLOPT_USERPWD, "admin:zkDdf9sr!");
$result = curl_exec($ch);
curl_close($ch);
//echo $result;
//$res=var_dump(json_decode($result, true));
//print_r($result);
$res=json_decode($result, true);
//print_r($res);
$CINR= $res['cinr'];
$RSRP =$res['rsrp'];
$lte_state=$res['lte_state'];
$distance=$res['distance'];
$uptime=$res['uptime'];
//print_r(round($distance/1000,2).' км' );
sg('ThisComputer.LTESignal',$CINR.' / '.$RSRP);
sg('ThisComputer.LTEStatus',$lte_state);
sg('ThisComputer.LTEUptime',$uptime);
sg('ThisComputer.LTEBaseDistance',round($distance/1000,2).' км');
//print_r($CINR.' / '.$RSRP );