Automating LittleBits with the CloudBit, CloudBit API, and Microsoft Azure

by brady.gaster

Published on December 27, 2014

This project demonstrates how to use Microsoft Azure together with the cloudBit to automate your hack project from the cloud using the LittleBits Cloud HTTP API

How To Make It


Log in to the Azure portal. If your subscription doesn't have any Scheduler Job Collections, create one.


Create a new Scheduler Job


Set the Action Type "HTTPS," the Method "POST," and provide the URI for the output endpoint as specified in the cloudBit API documentation (link is in description). The URI format should look like[DEVICE ID]/output. Set the body of the action as the JSON payload to be sent to the API. A sample of this JSON payload is in the code section of this project to turn the light to full power for 3 seconds.


Once the job has been created select it in the Azure portal. On the dashboard set the content-Type header to application/json. Add a new header named Authorization, and set the value of the Authorization header to be Bearer TOKEN, but replace the word "TOKEN" with the value of the "AccessToken" from the LittleBits Cloud Control Center.


Set the schedule to whatever you need it to be, to make your hack do whatever it needs to do, whenever it should be doing it. In this project I've set my schedule to once per minute. If you're using this approach to schedule feeding your kitty, you may want to change this setting twice a day, for example.


Plug in your circuit, hook your hack up to the WiFi, and let the scheduled automation begin.

Related Projects

LittleBits Servo used to Wake Up Webcam

To ensure that the webcam detects motion every time someone goes in or out of the garage, I created this LittleBits circuit. It ac...

Broken TV

After a long day of work, I just want to relax and watch TV. The only bad thing that can happen is to discover that the TV is brok...

Little bits Minecraft smart house

Whats up bitsters! Vlab here with my minecraft smart house made with a cloud bit module and minecraft.The cloud bit controls all t...