function getValues() {
request("
http://192.168.1.14/sec/?pt=23&cmd=get", function (error, response, body) {
if (body) {
var m = body.match(/temp:(\D*[0-9.]+)\/?hum:([0-9.]+)/);
if (m) {
setState("humOutside", parseFloat(m[2]), true);
setState("tempOutside", parseFloat(m[1]), true);
}
} так беру от датчика dh22