Scratch (scratch.mit.edu) is a graphical programming language designed to teach children the fundamentals of coding and computer science.
Scratch 2.0, released in 2013, introduced the capability for 'Extensions' - blocks that can interact with Scratch.
Scratch for Holiday is an implementation of a Scratch extention that allows Scratch to control Holiday by MooresCloud (holiday.moorescloud.com).
This code was developed with the greatful assistance of (and code freely lifted from) the Google Chrome webserver example - https://github.com/GoogleChrome/chrome-app-samples/tree/master/webserver
- Download the Scratch 2.0 offline editor (Mac and PC only, sorry) from http://wiki.scratch.mit.edu/wiki/Scratch_2.0_Offline_Editor
- Download the Scratch for Holiday examples from https://s3-ap-southeast-2.amazonaws.com/scratch-for-holiday/Scratch+for+Holiday.zip
- Install the Scratch for Holiday extension from the Chrome Web Store.
- Launch the extension.
- Scratch for Holiday will scan your network for Holidays.
- Select the Holiday(s) you'd like to control from Scratch. If there's only one Holiday, it will automatically be selected.
- Once you've made made your select selections, launch the Scratch 2.0 offline editor.
- Open the sample blinky_bright.sb2 in Scratch.
- Click on the top (green flag) block. The program should start, and you should see your Holiday turn colours.
- Have fun!
Mark Pesce
December 2013