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 https://api-http.littlebitscloud.cc/v2/devices/[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

Crate-O-Matic, a Rule Your Room Kit Invention

Invent a new way to let your dog out of its cage. Use the Rule Your Room Kit to make a conductive contraption that autom...

Lava Lamp

An electronic lava lamp that will light up any room!This project was designed by Beckett at a workshop centered around the th...

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...