Jump to content


Photo

Virtual Wiring App


  • Please log in to reply
1 reply to this topic

#1 brett

brett

    Member

  • Members
  • PipPip
  • 11 posts

Posted 22 December 2014 - 01:22 AM

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?


  • DarrenWado, Ekbergtum, Rudyrhill and 16 others like this

#2 Felix

Felix

    Member

  • Members
  • PipPip
  • 19 posts

Posted 22 December 2014 - 11:35 PM

VW has a web interface which uses JSON.  There's a writeup on how to do it here:

http://www.catalinac...siteInteraction

Essentially, 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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users