Search the Community
Showing results for tags 'xml'.
-
Dear forum readers. I have a virtual device where I wanted to read the XML values from. i know that it is not possible to use external libs to read the XML. the device wich I wanted to control has a status page which in XML format is. I wanted that my virtual device can read the location ID and from each location id the Preset and the name and at last the type of "room" I use Lua for the virtual device. hope that someone can help me out with this This XML file does not appear to have any style information associated with it. The document tree is sh
- 41 replies
-
- lua
- virtual device
-
(and 1 more)
Tagged with:
-
Version 1.0.0
103 downloads
This is an enhanced version VD fot the ETH008 relay board. This VD does not only control the board but it also reports back the relay status read via the /status.xml web request. This VD also makes a very simple example of how to get XML data from any other device and put it into variables. Examples of usage: Controlling 24V AC volts solenoids for watering the garden Controlling motorized heating valves with the relay board. Controlling lights with the relay board. All you need to do is put in the ip address and the port (80) of the ETH008 -
LUA: Extract XML(GET) - REPLACE TAG VALUE - UPLOAD (PUT)
Gianluca S. posted a question in Scenes and Interface
Good Morning Guys, I need to create a Virtual Device in order to enable/disable some functionality of my devices. Shortly in need to extract the XML, modify a tag value, re-upload the xml. I have understood that using "Net.FHttp" and GET/PUT command im able to RETRIEVE and PUT the XML.... Example: response,status,errorcode = device:GET('URL') Example: response,status,errorcode = device:PUT('URL',XML) But how the entire process can be writed in LUA? 1) How to store in a variable the entire XML extracted using teh GET command? 2) How to repl -
Hi there, my first time here, I am trying to capture a multipart XML-alertstream from a Hikvision IP camera, but since the stream never closes I never receive a response. The information within the stream, such as VMD, LINEDETECTION, FIELDDETECTION etc. will be used to trigger other scenes or VD's in my HC2 (v4.080). This is my test scene so far: fibaro:debug(tostring(fibaro:countScenes())) --to indicate how many instances are running local http = net.HTTPClient() http:request ('http://10.1.1.115/Event/notification/alertStream', { options = { method = "GET",
-
Hi all, I just joined the forum, although I'm following it from a bit of time. I would install in my home a controller for automation and would be interested in HC2, discarding other products and sw typical of DIY, even if surely much more flexible (definitely require much more time to be online). I would like to make a flexible controller to manage the energy produced by the photovoltaic, managing the individual loads so as to perform time shifting, or the separation of secondary loads. I also want to keep track of all the historical consumption, (possibly saving the recordings on an log i
- 6 replies
-
- photovoltaic
- energy managment
-
(and 7 more)
Tagged with: