// заряд батареи тела
$capacity=shell_exec('cat /sys/devices/soc/qpnp-smbcharger-17/power_supply/battery/capacity');
// занято на /userdata
$prep_sp_us=shell_exec('df -h | grep /dev/mmcblk0p49 | sed "s/%//g"');
$space_user_arr=preg_split("/[\s,]+/", $prep_sp_us);
$space_user = $space_user_arr[4];
// занято на диске /
$prep_sp_ro=shell_exec('df -h | grep /dev/disk/by-partlabel/system | sed "s/%//g"');
$space_root_arr=preg_split("/[\s,]+/", $prep_sp_ro);
$space_root = $space_root_arr[4];
//sg('Sensor_percentage02.test', $space_user_arr[4]);
sg('Sensor_percentage01.value',$capacity);
sg('Sensor_percentage02.value',$space_user);
sg('Sensor_percentage03.value',$space_root);