2015-05-11 22:01:26 +01:00
|
|
|
<?php
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
preg_match_all('/([0-9]+C)+/', $sensor_value, $temps);
|
2016-02-25 14:30:40 -06:00
|
|
|
list(,$index) = explode('.', $sensor['sensor_index']);
|
2015-05-11 22:01:26 +01:00
|
|
|
$sensor_value = $temps[0][$index];
|