Well done and made me laugh.
Are there any good Nodejs tutorials out there for subscribing and all that? Assuming someone has NO nodejs or js experience for that matter? I am pretty good at hacking other people’s stuff together but haven’t seen anything that was approachable.
When I get time, I’ll write something up. I can tell you that the main stumbling block I hit was that while most of the sparkjs library uses promises, the device.subscribe() and spark.getEventStream() methods do not – they expect a function parameter. I spent hours wondering why my code was throwing exceptions saying undefined is not a function.