Flex Posted November 30, 2023 Posted November 30, 2023 It would be nice to be able to take the output from a network resource "HTTP get" and port it into variables. The resource could be polled every 10 to 60 seconds or so. Or Create a node server for the Control by Web model X410 and model x310. These guys have some really good I/O capabilities. These keep watch over my sump pump, among other things. This is what the output of the network resource looks like; HTTP/1.1 200 OK Keep-Alive: timeout=60 Cache-Control: no-store Content-Type: text/xml Content-Length: 883 <?xml version="1.0" encoding="utf-8" ?> <datavalues> <digitalInput1>1</digitalInput1> <digitalInput2>0</digitalInput2> <digitalInput3>0</digitalInput3> <digitalInput4>0</digitalInput4> <relay1>0</relay1> <relay2>1</relay2> <relay3>0</relay3> <relay4>0</relay4> <vin>12.6</vin> <register1>0</register1> <relay13>0</relay13> <relay14>0</relay14> <relay15>0</relay15> <relay16>0</relay16> <digitalInput5>1</digitalInput5> <digitalInput6>1</digitalInput6> <digitalInput7>0</digitalInput7> <digitalInput8>0</digitalInput8> <oneWireSensor1>78.7</oneWireSensor1> <oneWireSensor2>73.6</oneWireSensor2> <vin2>10.59</vin2> <relay9>0</relay9> <relay10>0</relay10> <relay11>0</relay11> <relay12>0</relay12> <timer2>0</timer2> <utcTime>1700863615</utcTime Quote
Flex Posted December 15, 2023 Author Posted December 15, 2023 Is there a way to get data from an XML file from a network resource command into an Polisy ISY variable. Is this something a node server could do? I know with the ISY 994 it wasn't feasible. Quote
Javi Posted December 15, 2023 Posted December 15, 2023 Cannot be done from Network Resources. This can be done from a Node Server and is the correct way to do this. You will not need to use ISY variables as a Node Server create nodes that can be used in programs. Quote
Flex Posted December 15, 2023 Author Posted December 15, 2023 Thank you for your response. It's good to know that a node server will work for this. However, I am not at all adapt at writing one. So could said node server be set up to poll a device, similar to what network resources would do, grab the xml data and drop that into x number of nodes? Quote
Javi Posted December 15, 2023 Posted December 15, 2023 1 hour ago, Flex said: Thank you for your response. It's good to know that a node server will work for this. However, I am not at all adapt at writing one. So could said node server be set up to poll a device, similar to what network resources would do, grab the xml data and drop that into x number of nodes? Yes Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.