Creating Custom Modules

10 October 2016 3 mins read

Time to turn specific requirements into reality by writing custom modules.

MagicMirror comes with a host of modules, from showing calendar events to location-based weather data. The community forum had support for most common sensors like motion detection and ultrasonic sensors, but there was no support for the DHT22 temperature and humidity sensor. So a module was built that works with DHT11, DHT22, and AM2302 sensors.

Another requirement was mirroring phone notifications. A third-party app, Pushbullet, already mirrored notifications to the browser, so the next step was a module that pulls notifications from the Pushbullet API and shows them on the mirror.

Since IBM Watson was trending in 2016, another module experimented with a voice-recognition assistant for the mirror using the Watson APIs. Later it became clear that integrating Alexa would be a better fit, so this module was left out of scope.

Another useful discovery was the Atom plugin "remote-edit". It made it easy to edit code running on the Raspberry Pi remotely from a Windows machine.

Read the next post in this series here:

You might also like the following posts …