DeviceHive datasource plugin for
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


DeviceHive datasource plugin. The plugin integrates your realtime device notificaitons with freeboard.

The plugin uses DeviceHive JavaScript Library to connect to the cloud instance. This means that both websocket and longpolling channels are supported and the final channel type will be determined based on your browser environment.

Getting Started

Add a plugin to the freeboard index.html file as specified in the doc or use a devicehive freeboard fork with a pre-configured plugin -

Here is the script to install the latest version of the freeboard with the devicehive plugin on your local machine:

git clone
cd freeboard
git submodule update --init --recursive

If you want to use more stable version - checkout v1.1.0-dh branch. The full script looks as follows

git clone
cd freeboard
git checkout v1.1.0-dh
git submodule update --init --recursive



In Action

DeviceHive Datasource Setup

To add DeviceHive datasource click add button below Datasources.

  1. Select DeviceHive datasource type

  2. Enter the following parameters:

    2.1. Type: DeviceHive

    2.2. Name: You can enter any name you like (e.g. 'DH')

    2.3. Server API URL: Enter your DeviceHive Server.

     2.3.1. For Playground use,
     2.3.2. For Local Server use http://localhost:8080/dh/rest

    2.4. JWT Token: Can be found on your DeviceHive Server, e.g on Playground Swagger JwtToken

    2.5. DEVICE IDS: From these devices notifications will be shown. Device Id Can be found in admin console. User needs to hit Add button to add several devices.


    If left blank the notification for all devices will be visualized.

    2.6. NOTIFICATION NAME: Notification with the mentioned names only will be shown. If left blank all notification names will be visualized. User needs to hit Add button to add several notification names.

Widget setup examples

Notification sample 1 (integer value)


Widget 1

Widget 1-1 Setup

Widget 1

Widget 2

Widget 1-2 Setup

Widget 2

Notification sample 2 (json object)


Widget 1

Widget 2-1 Setup

Widget 1

Widget 2

Widget 2-2 Setup

Widget 2

#Start freeboard

Freeboard can be started with

open index.html

Or it can be started in nginx. For this add

location /freeboard {
    sendfile on;
    root path/to/the/parent/of/freeboard/;
    index index.html;

to the server section of nginx.conf. More details on github.

#Load/Start freeboard

User can load or save freeboards with a help of corresponding icons in the upper left corner (below the 'Freeboard' caption).

If saved freeboards with DeviceHive Datasource are used it can be required to change some datasource settings such as for example JWT token.