Page 1 of 1

HTTP DEVICE PLUGIN

Posted: 27 Mar 2019 20:59
by compmarket
Dear colleagues! Prompt please, it is impossible to configure the HTTP device. The house has A wifi electricity meter with xml\json web interface. Tried to get data from it in the HTTP device in Zway. I have a Popp hub. Always get a value of 0... Maybe my knowledge of java is not enough... Could you tell me the algorithm line how to get data?

WiFi meter - http://yalga.h-net.ru:8086/xml

In Zway Http device:
sensorMultiLevel
Url http://yalga.h-net.ru:8086/xml
Inline Javascript to parse incoming data to number - document.querySelector("UPTIME").innerText;
or
Inline Javascript to parse incoming data to number - parseFloat($$.findOne('UPTIME')
http method - GET
content type - application/xml

help plz..

Re: HTTP DEVICE PLUGIN

Posted: 29 Mar 2019 13:10
by compmarket
can anybody help me with such problem?