Visualize Data With DustLink

The simplest way to access and visualize the data you publish is to connect your SmartMesh IP manager to a computer running DustLink. DustLink is a web-based SmartMesh IP management application that connects to your SmartMesh IP manager. It is intended for use as a demo ehicle/quick prototyping tool, and can be installed on any computer that supports Python. Among other advanced features, you can create a data parser "app" to display the formatted data that you publish from your motes. Below we will show you how to create such an app that can parse the data sent by the SimplePublish example application provided in the QSL.

A DustLink User's Guide and a link to the source code can be found on the DustLink dustcloud page. It also has a blog post about how to set it up on a RPi: Raspberry Pi as a SmartMesh Gateway.

Because it is a Python script, "installing" DustLink simply means that you need to fetch the source code and make sure that you install the necessary packages listed in requirements.txt. Refer to the User's Guide if you run into any trouble.

DustLink is written for Python 2: Running it with Python 3 will not work.

Assuming you have completed the setup above and logged in as admin:

  1.  Go to the APPS page and Add an Application:
  2. Select the new application and configure the Transport and Fields fromMote:
  3. Go to the page for the particular mote you wish to interact with. There are two ways to do this:
    1. Select it directly by hovering over the MOTES header:
    2. Go to the NETWORKS page and select it in the graphic Topology:
  4. Attach the app you created and press the INTERACT link:
  5. You should now be able to see the data incoming from the mote:

 


DustLink will remember the app you configured (and that it has been attached to the given mote) between running it. However, there is not (yet) any simple way to copy the app between different DustLink instances.