Jon Gallant

How to Build a Lync Status Light in Minutes with a Spark Core or Photon

3 min read

I’ve been building a battery-powered wifi-enabled Lync Status light for the last couple of months. Lots of people have been building the beakn and I did a hackathon class last week, so I thought it would be ideal to have a very simple step-by-step walk through. I’m working on getting the beakn officially manufactured so there are more complex versions available if you are comfortable with soldering. The version below is a great starting point.

1: Get a Spark Core or Photon from https://store.spark.io/ [core-a6fcc2b47e235d529ab58fe0a1124588

2: Plug Spark Core into your computer via USB

IMG_0381

3: Install Spark Core iPhone or Android app

If you don’t have an iPhone or Android you will need to follow the “Connect over USB” section of the Spark Getting started guide

[IMG_0382

4: Connect phone to Wifi network

Must be WPA2 (SSID and Passcode) – WPA2-Enterprise won’t work.

[IMG_0393

5: Create or Login to Spark Account and connect to same wifi network

[IMG_0384

[IMG_0389

6: Connect Core

a) Click on the icon in the upper left and then click “Connect a Core”. You will likely need to sign-in to wifi again

b) Give your Core a name and hit ok

[IMG_0390

7: Flash beakn code to Spark

a) Go to Spark Build (https://www.spark.io/build)

b) Click on Libraries in lower left rail

Screenshot

c) Search for and click on “beakn”

Screenshot

You will see the beakn-sparkcore-onboard-led.ino file to the right

Screenshot

d) Click on “USE THIS EXAMPLE” button in the left rail

Screenshot

You will then see this page that shows the current app that loaded

Screenshot

e) Click on the “Flash” lightning bolt icon in the left rail to send the code to the Spark Code

Screenshot

You will see the Spark Core led flash while it is being flashed. If you don’t then use the Spark Core debug help.

8: Install beakn Windows App from http://bit.ly/beakn-client

The beakn.exe app listens for Lync events and calls the beakn.setStatus function that you just deployed to the Core. Install the latest version of beakn-{version}.msi from http://bit.ly/beakn-client - which was beakn.v0.4.2 as of this post.

Screenshot

The last page of the install will look like this – you will want to keep that “Launch beakn” checkbox checked.

Screenshot

9: Set your Spark settings

When beakn.exe launches it checks for your Spark Device Id and Access token and if either are not set you will see this:

Screenshot

Click OK and you will see the settings dialog:

Screenshot

Go to https://spark.io/build to find both Device Id and Access token and copy and paste them into this settings dialog.

To get the Device Id, click on the icon that looks like a target, second from bottom

Screenshot

To get the Access Token, click on the icon that looks like gears (standard settings icon)

Screenshot

Copy and paste both of those into the beakn settings dialog and then click Ok.

You will now see the beakn dialog that is really just a log of the messages that are being sent to your beakn device.

Screenshot

10: Open Lync and Toggle your status to try it out

Screenshot

IMG_0391

(It’s hard to tell in the photo, but the onboard led changed to red)

You should now be all setup with your beakn. Stay tuned for updates on twitter

Jon

Share:
Share on X