Small example of XSLTForms integration with Processing and MQTT @tingenek for llamas everywhere.
Processing:
- Tree with baubles and some semi-realistic snow
- You can change the colour of the bauble manually or via mqtt and CheerLights
- Runs via the fantastic Processing.js.
MQTT:
- Talks to the free iot.eclipse.org broker on websockets using the PAHO javascript library
- Subscribes to /cheerlights topic
- When tweets are sent to #cheerlights (see cheerlights.org) some code run by the epic @andysc publishes the colours to the topic
- The publish event sends the new colour to the Processing sketch via XSLTForms .
- If you can't wait for Twitter, you can publish your own colour to the broker directly on the form.
XSLTForms:
- Hangs everything together. See http://www.agencexml.com/xsltforms
- Two-way communication with MQTT
- Small selection control allows you to change colours if you're not connected.