This is Movesense BLE advertisement message gateway to IBM Watson IoT Cloud for Raspbian.



Open terminal on Raspbian, then follow instructions by typing commands to terminal.

  • Install needed libs sudo apt-get install python-pip python-dev libbluetooth-dev libcap2-bin sudo pip install pybluez

  • Install IBM Watson IoT Platform sudo pip install ibmiotf

  • Clone movesense-raspi-gateway repository git clone

  • Enter to movesense-raspi-gateway's setup directory cd movesense-raspi-gateway/setup/

  • On setup directory, run installation script: sudo ./


There's need to deliver correct options for IBM Watson IoT Platform, but unfortunaly haven't succeed to do that without modifying IBM's code. By patching solves the problem, just run command below in setup directory: sudo patch -d/ -p0 < ibmiotf_application.patch And when file name asked, give file name for patching: /usr/local/lib/python2.7/dist-packages/ibmiotf/ File /usr/local/lib/python2.7/dist-packages/ibmiotf/ will be patched.


Movesense-raspi-gateway's configuration file will be write by to /etc/blegateway.cnf Define configuration with your favorit editor.


After installation and configuration, gateway can be started and stoped by: sudo service blegateway start sudo service blegateway stop