Hi, I need read some numbers from any device. My probe in the PRG is red and write. I Am not sure with XML node... Here is some info from xml file:
<input><sensor><type>wind_direction</type><id>1010</id><name>Wind direction</name><place/><value>225.0</value></sensor><sensor><type>humidity</type><id>1011</id><name>Humidity</name><place/><value>36.8</value></sensor><sensor><type>pressure</type><id>1012</id><name>Pressure</name><place/><value>1007.6</value></sensor><sensor><type>exposure</type><id>1013</id><name>Light</name><place/><value>649.1</value></sensor><sensor><type>wind_speed</type><id>1014</id><name>Wind speed</name>
Pls what is XML node, what must be write to "XML node " in the probe...
Before TNX ! Joe
Article Comments
Hi, here http://109.238.40.43:8000/xml.xml is XML file.... And I need read from this file any numbers.... Example: from this i need read 1010, 270,1011 and etc...
<type>wind_direction</type><id>1010</id><name>Wind direction</name><place/><value>270.0</value></sensor><sensor><type>humidity</type><id>1011</id><name>Humidity</name><place/><value>72.4</value></sensor><sensor><type>pressure</type><id>1012</id><name>Pressure</name><place/><value>1010.8</value>
pls can you help me ? I need know exact text to XML node line... Before TNX, JOE
Jun, 2014 - Permalink
Using the XML REST sensor it would only be possible to read one value at the time. This means for every value you want to read you would have to add a separate sensor.
In your case I would recommend using a script to read the XML and pass it back to PRTG.
An example on how to read XML from a webpage can be found in this thread on Stackoverflow.
The output would have to be adjusted to match the one of the EXE/Script Advanced Sensor.
Jul, 2014 - Permalink
Hi,
what precise value do you want to read from the XML? Is it the number in the <value> tag? Best regards
Jun, 2014 - Permalink