The Raspberry Pi device component of Glow.
It is made up of an event loop that interacts with MessageHandlers. MessageHandlers
generally fall into two categories; Sensors listen to a some external component such as
a hardware sensor or something on the network and emit events onto the bus while Handlers
listen for events and react to them, potentially emiting more events onto the bus.
EnvironmentSensorreads the AM2320 temperature and humidity sensor.VibrationSensortranslates interrupts from the vibration sensor into tap events.LEDHandlercontrols the Blinkt colour LED strip.TPLinkHandlercontrols the TPLink smart switch.WebEventHandlerreceives commands fromglow-weband relays events back to it.