URL: http://{HOST.IP}:8080/services/data.xml?from_id={$SENNET_ID}?to_id={$SENNET_ID}?user={$SENNET_USER}?password={$SENNET_PASS}We will get in this item the complete xml with all the information.
<dl id="4C:3F:D3:AA:BB:CC" sn="19032"> <dev id="2" name="Horno" type="INTERNAL_3PH" class="energy" t="2019-07-22T00:36:00"> <ch id="1" des="ENEact (kWh)" u="kWh" db="Y" gr="Y">8976.0ch> <ch id="2" des="ENERea (kvarh)" u="kvarh" db="N" gr="N">6860.3ch> <ch id="3" des="ENEApa (kvah)" u="kvah" db="N" gr="N">11388.5ch> <ch id="7" des="ENEact1 (kWh)" u="kWh" db="N" gr="N">2927.2ch> <ch id="8" des="ENEact2 (kWh)" u="kWh" db="N" gr="N">2913.6ch> <ch id="9" des="ENEact3 (kWh)" u="kWh" db="N" gr="N">3135.1ch> … dev>From this item, we will create new "Dependent item" that will process the xml to take the information of each variable. For example, to collect the Active Energy of Phase 1 (ENEAct1), we will create an item:
XML XPATH: /dl/dev[@id='{$SENNET_ID}']/ch[@des='ENEact1 (kWh)']/text()and we also add a necessary multiplier in this case.
CTO & TECHNICAL DIRECTOR
Expert in industrial monitoring and data analytics.
We tell you how to improve decision-making and production efficiency in your plant, without wasting time generating reports. Your plant at a glance!
Subscribe to our Newsletter