Skip to content
Resin project that automatically registers your device and publishes data to your bluemix app
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Bluemix and IoT boilerplate for Raspberry Pi

This is a starting project for anyone using bluemix with an ARM board. It auto registers the device with bluemix and publishes events allowing you to start writing your app right away. allows one to push docker containers to linux devices with git making the process alot easier to automate at scale.

Have a look at the code to see how it works but it basically just pushes a container to your device with all the require deps. On first boot it reads your env variables and connects with the bluemix api to create a new device using resin's unique device ID. It then saves the bluemix device credentials as resin device enviroment variables. It then pushes data to your IBM IoT app.


Signup with bluemix

  • Create an app
  • Go to Catalog > Internet of things > Internet of Things service > Select application > Create

Signup with resin

  • Create an app
  • Download and install image
  • After booting your device it will pop up on your resin apps dashboard.
  • If you need more details follow this link

Push code

git clone
git remote add resin <USERNAME><USERNAME>/<APPNAME>.git
git push resin master


  • Got to your resin apps dashboard
  • Select enviroment variables tab

Your JSON web token can be found in the preferences section of your account

JWT = "json web token"

Following variables (can be found on bluemix dashboard if you click show creds on IoT service)


API_KEY = "apiKey"

API_TOKEN = "apiToken"



Manage devices and view data stream

The logs will print a link to your IBM IoT dashboard where you can manage your devices and view the data they are publishing.

IBM IoT Dashboard Imgur



You can’t perform that action at this time.