pasted the code from rwaldron in https://github.com/rwaldron/johnny-five/issues/266 into a module. still need to make it work!