Page Contents

StrongLoop IoT Demo

This is a LoopBack application, developed for demostrating the connection of StrongLoop to the Internet of Things.

Required Hardware:

Required Software:

How it works:

The sensor reading application is a native C program that runs locally on the Intel Edison device and reads the 9-Degrees of Freedom board mentioned above. It then inserts these values to the Mongo DB instance as JSON objects via the StrongLoop APIs. The StrongLoop APIs then make this data available to the client application vi a series of web pages that graph and display the sensor readings. Data Display Notice the ‘Show Live Data’ button in the upper left corner. Clicking this button causes the page stream live data from the device to the graph in real-time.

Installing Demo Software

First, you’ll need the hardware above, and be able to log into the device. once you can log in, you;re ready to install all of the software (this repo included):

  • Log into the device…
  • Install some core libs:
    • echo "src all" >> /etc/opkg/base-feeds.conf
    • echo "src x86" >> /etc/opkg/base-feeds.conf
    • echo "src i586" >> /etc/opkg/base-feeds.conf
  • Update package manager and install git:
    • opkg update
    • opkg upgrade
    • opkg install git
  • Grab the controller script from this repo and install all other software:
    • wget –no-check-certificate
    • chmod +x
    • ./ install
      This could take hours and will install and configure all the software packages required for the demo.
  • Calibrate the sensors:
    • cd LSM9DS0
    • ./calibrate-mag
      (Note that this requires interaction with the device!)
    • ./calibrate-acc-gyro
      (Note that this is VERY sensitive. Make sure the device is on a flat surface, with absolutely no motion. It can even pick up sound, so turn off any music! Even with these measures it may take a couple tries to succeed.)

Running the Demo

  • Log into the device…
  • run ./ start
  • Wait for the output to tell you to connect:
    Connect to your application at
    (Or whatever your IP is)
  • Choose a Sensor from the top nav and move the device around!
  • Hit the “Live” button to see the charts update dynamically