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

Metal Endoskeleton

Metal endoskeleton made with LittleBits and Erector

Alarm system

the alarm system is a remix of the mischief machine and works better (in my opinion) than the stuff guard. I made the mischief mac...

Trophy and Olympic podium - #bitolympics

they made a trophy that turns for the winner of LittleBits competition and made a podium with 1st, 2nd and third place! Olympics, ...