$ch = curl_init('http://10.10.0.162:8082/api/get.json');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$ohm = curl_exec($ch);
$data = json_decode($ohm);
sg('HallTablet.BatLevel', $data->battery->level);
sg('HallTablet.WiFiLevel', $data->wifi->strengthpercent);
sg('HallTablet.PowerStatus', $data->battery->type);
//sg('HallTablet.ScreenStatus', $data->display->state);
/*
{"general":{"brand":"DIGMA","model":"Plane 7700T 4G PS1127PL","time":1526995877000,"sdk":23,"version":"2.01","versionCode":201},
"network":{"type":"Notfound"},"battery":{"voltage":4187,"level":100,"temperature":200,"status":"full","type":"USB"},"display":
{"brightness":4,"state":true,"mode":"manual","timeOff":300},"memory":{"totalInternal":"5501","freeInternal":"4293","freeRAM":231,"totalRAM":915},
"wifi":{"ssid":"\"WiFi\"","strengthpercent":"65%","linkspeed":"65 Mbps","ip":"10.10.0.162","rssi":-55,"mac":"02:00:00:00:00:00"},"volume":
{"ring":0,"ring-max":7,"music":10,"music-max":15,"alarm":6,"alarm-max":7,"notification":0,"notification-max":7,"system":0,"system-max":7,"voice":4,"voice-max":5},
"info":{"ip":"10.10.0.162","device":"HallMainTablet","port":"8082","versionCode":201,"status":"ERROR"}}
*/