Skip to content

Tingenek/xml-amsterdam-2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML Amsterdam Demo

Small example of XSLTForms integration with Processing and MQTT @tingenek for llamas everywhere.

Processing:

  1. Tree with baubles and some semi-realistic snow
  2. You can change the colour of the bauble manually or via mqtt and CheerLights
  3. Runs via the fantastic Processing.js.

MQTT:

  1. Talks to the free iot.eclipse.org broker on websockets using the PAHO javascript library
  2. Subscribes to /cheerlights topic
  3. When tweets are sent to #cheerlights (see cheerlights.org) some code run by the epic @andysc publishes the colours to the topic
  4. The publish event sends the new colour to the Processing sketch via XSLTForms .
  5. If you can't wait for Twitter, you can publish your own colour to the broker directly on the form.

XSLTForms:

  1. Hangs everything together. See http://www.agencexml.com/xsltforms
  2. Two-way communication with MQTT
  3. Small selection control allows you to change colours if you're not connected.

About

XSLTForms/Processing/MQTT example from XML Amsterdam 2015

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published