Read KNX object values from external PC using XML
Example: Read KNX object values from external PC using XML
Task
Read three temperature object values from Logic Machine 2 by using XML request from external PC.
Make KNX objects XML readable
- In the Objects tab click on the objects which you want to receive the current value by XML request. Check the Export object
XML request from external PC
- The XML request looks like this:
http://remote:remote@192.168.1.211/cgi-bin/scada-remote/request.cgi?m=xml&r=objects
Parameters:
- address – object address (e.g. “1/1/1”)
- name – object name (e.g. “My object”)
- data – decoded object value (e.g 42 or “01.01.2012”)
- datatype – object datatype (e.g. 1 or 5.001) – standard KNX data types
- time – object update time (UNIX timestamp)
- date – object update time (RFC date)
- comment – object comment (e.g. “Second floor entry lights”)
- tags – optional array of object tags (e.g. “Light”, “Second floor”)
Note! To get list of objects that have been updated after specific time you can pass an optional “updatetime” parameter (UNIX timestamp format)
Note! In similar way also Alerts and Errors can be read by XML requests.
Alerts XML request: http://remote:remote@192.168.0.10/cgi-bin/scada-remote/request.cgi?m=xml&r=alerts
Errors XML request: http://remote:remote@192.168.0.10/cgi-bin/scada-remote/request.cgi?m=xml&r=errors