I have created a Java application that basically parses the JSON and returns value of specific channels and input/outputs. It also allows converting the JSON to XML output.
I am happy to publish all the source code for it, is the official wiki up?
The usage is below
usage: application
-channel <number> the channel to query
-module <feedkey> the module to connect to
-operation <opmode> set the operation to perform
The operations available are
help print this help
xmldump provide an xml output (requires just the -module <feedkey> flag)
analoginput return the value of the AnalogInput
analoginputraw return the value of the AnalogInputRaw
digitalinput get the status of the DigitalInput
digitalinputstate return the value of the DigitalInputState
digitaloutput get the status of the DigitalOutput
digitaloutputstate return the value of the DigitalOutputState
Source at:
http://mullac.org/2009/02/iobridge-java-application.htmlUses both the json-simple library and the Apache Commons CLI