beakn is my Skype for Business (aka Lync) Status Light project that I have been building since late last year. Very simply, it’s a hardware device that will change color to Red, Yellow or Green as your Skype for Business status changes. You can put it in your home or office to let people know when you are busy, free or away.
beakn has been through many iterations and I ultimately decided to use the Spark Core as my microcontroller development board because it comes with WiFi, has cloud events and is relatively cheap. Since my last post, Microsoft renamed Lync to Skype for Business, Spark changed its name to Particle and they released a new board called the Photon. It has all the capabilities as the Core and it’s only $20.
This post is a very quick walkthrough on how to setup the simplest version of beakn. All of the source is MIT. Forks make me happy, so please, fork on and be creative with it.
You will want to get your Photon setup with WiFi and associated with your Particle account. I have instructions for doing so with either PuTTY or Node.js. Please select the method you prefer. I recommend the Node.js route if you are comfortable with Node.js
Go to one of those posts, follow all of the instructions and then come back here to continue setting up your status light.
Particle makes it really easy for you to share your scripts with others via their Community Libraries feature. I added beakn to the library…here’s how to get it installed.
1. Go to Particle Build (the cloud IDE)
2. Make sure the device you want to work with has the star next to it in the Device tab. In my case I want to flash to photon25.
3. Click on the “Libraries” icon in the lower left rail
4. Seach for “beakn” and click on the beakn project.
You will see the code load to the right. It’s very simple. Just exposes a method that the beakn Desktop app calls when your Skype for Business status changes. That method sets the on-board RGB led based on what status is sent to it.
You can also find this code on GitHub here: https://raw.githubusercontent.com/jonbgallant/beakn-sparkcore/master/firmware/examples/beakn-sparkcore-onboard-led.ino
5. Click the “USE THIS EXAMPLE” button.
6. Click the “Flash” icon in the upper left rail
You will then see a couple of messages in the footer while it is being flashed
Your Photon will reboot after it is done flashing and the Led will very likely turn off. That’s okay, just move onto the next step.
Make sure you have Skype for Business installed and you are signed in. The beakn desktop application will use the Skype library events to notify the Particle cloud that there’s a change.
The beakn Desktop application listens for Skype for Business status change events and sends those to your Photon. All the code for this app is MIT and is located here. Feel free to fork it and be creative.
- Go to the beakn releases GitHub page and install the latest version via the msi file: https://github.com/jonbgallant/beakn/releases
2. When you launch beakn for the first time it should see that you haven’t entered your Photon Id or Access Token and prompt you to do so. If it doesn’t then just go the place where you installed it and click on the beakn.exe file, then click on the Settings button.
The Settings dialog will look like this:
3. Enter your Photon Id and Access Token that you copied over into Notepad when you setup your Photon. If you don’t have them, then scroll to the top of this page and follow the “Setup Photon” link.
As soon as you click Ok beakn will get your Skype for Business status and update your Photon LED color.
Congrats! You now have a very basic Skype for Business status light up and running!!
Open up Skype for Business and toggle your status and watch the Photon light change!
Now that you have beakn running it’s time for you to experiment. Wire up some brighter LEDs. Add a battery and a on/off toggle switch. Mount it on Groot. Build a custom enclosure. Be creative with it.