Spark Inbox Monitor

by FlamingTempura in Circuits > Art

1012 Views, 12 Favorites, 0 Comments

Spark Inbox Monitor

IMG_20141123_215033.jpg

A simple LED wheel to illustrate the number of emails in your inbox. The number of LED's illuminated will represent the number of emails that are in your inbox.

This uses a Spark Core and the Internet Button.

Set Up Spark

IMG_20141123_221403.jpg

Plug the Spark Core into the Internet Button.

Follow the instructions below to prepare your Spark Core:

http://docs.spark.io/connect/

Take note of the device name, you will need this later.

Apply Firmware

Screenshot - 231114 - 22:15:08.png

Using spark.io, copy the following code into the editor:

https://github.com/FlamingTempura/spark-inbox/blob...

Press Flash. The LED on the Spark Core will flash purple to indicate that it's in progress, and will flash green to indicate that it has been successful.

Take note of the access token (available in the Settings menu).

Note: you can change the brightness of the LEDs using the brightness variable.

Install Node.js

Follow the instructions on the following website to install node.js on your computer:

http://nodejs.org/

Download and Run Spark-inbox

IMG_20141123_215033.jpg

Download spark-inbox from the website below:

https://github.com/FlamingTempura/spark-inbox

Rename config.example.json to config.json. In config.json, Using a text editor (such as Notepad), change the token, device name, and, for your email account, your username and password. You will need IMAP enabled on your email provider.

Now, in a terminal, run the following

npm install

After this, you can run spark inbox by running the following

node app.js

That's it! LEDs should now illuminate to show you the number of emails in your inbox.