X-600M Users Manual
XML/JSON Operation
Example:
Request:
http://192.168.1.2/dashboard1State.xml
Returns:
<datavalues>
<widget1>
<owSensor1>90.3</owSensor1>
</widget1>
</datavalues>
The tags enclosed by the tag <widget1>, indicates the current state or value of the components found in
widget1. If the dashboard contained more widgets, there would be one tag for each widget in the XML file. The
file “dashboard1State.json” will return the same result, just formatted differently.
There are two special files that can be used to monitor the I/O of the X-600M regardless of the dashboard
configuration. These are state.xml and state.json. These files behave like those found on other ControlByWeb
devices. The status of all the I/O configured on the X-600M will appear in these files when requested as well as
the current time on the X-600M.
Another difference between these two files and the other xml/json files on the X-600M is the security used to
access the file. The same security as all the other xml files can be used (secure username and password), but
access can be granted using http basic authentication through the web browser similar to other ControlByWeb
devices. This offers backwards compatibility with other devices and software that might be configured to control
the X-600M. When requesting the state.xml using basic authentication, all the I/O configured on the X-600M will
appear in the file, but only those I/O that belong to the special access group “cbw” will have valid status readings
and be controllable. All others will read “xx”. If the global Dashboard and I/O Password Protection is disabled,
then all the I/O status readings will be valid regardless of the access group they belong to.
Examples:
Request:
http://192.168.1.2/state.xml
Returns:
<datavalues>
<owSensor1>90.3</owSensor1>
<time>08-27-2014 11:05:45</time>
</datavalues>
Request:
http://192.168.1.2/state.json
Returns:
{"owSensor1":90.3,"time":"08-27-2014 11:05:45"}
6.2 XML/JSON Control
Commands can be sent to the X-600M to control the I/O and set the state of internal registers. Whether
or not the commands will function depend on the global security settings of the X-600M and the access
group settings of the user attempting to control the I/O. If the global Dashboard and I/O Password
Protection is disabled, then all the I/O can be controlled by any user. If the global Dashboard and I/O
Xytronix Research & Design, Inc.
Page 107
Содержание X-600M
Страница 1: ...X 600MTitle Page Goes Here...
Страница 6: ...X 600M Users Manual Page 4 Xytronix Research Design Inc...
Страница 99: ...X 600M Users Manual Setup Pages Xytronix Research Design Inc Page 97...
Страница 116: ...Appendix B Installing New Firmware X 600M Users Manual Page 114 Xytronix Research Design Inc...