brett Posted December 22, 2014 Report Share Posted December 22, 2014 I'm looking into creating my own app for talking to my Virtual Wiring system. I'd like to be able to change values in the system (like I do using the Device Explorer page), and perhaps read values from the system to update buttons or status in the app. What's the best way to go about this? Link to comment Share on other sites More sharing options...
Felix Posted December 22, 2014 Report Share Posted December 22, 2014 VW has a web interface which uses JSON. There's a writeup on how to do it here:http://www.catalinacomputing.com/docs/Developers/ProgrammaticWebsiteInteractionEssentially, you can "get" a JSON representation of the total state of the system by reading from a VW system's "/" page. To create events (change values), you "post" to the system's "/events" page. In the writeup, there are examples using curl (a popular command line tool for interacting with websites). To get a feel for things, use curl to read and write a system (curl comes pre-installed on most *nix systems, and if it's not, it's easy to download and install). Once you see how things work, you can start reading and writing programmatically. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.