Skip to content

Latest commit

 

History

History
76 lines (48 loc) · 2.6 KB

README.md

File metadata and controls

76 lines (48 loc) · 2.6 KB

Build Status

LoRa dashboard demo

Single page web application displaying live data from a LoRaMote thanks to Semtech starter kit.

Deployed demo available here without any SLA ;)

Overview

Lora setup

Using the starter kit and some web based services, this web app displays data coming from your LoRaMote.

Setup

LoRaMote (end point)

Follow the Semtech user guide to setup the LoRaMote device.

LoRa gateway

You must stop the current packet forwarder and change its configuration files.

  • In local.conf, change the gateway ID
  • In global.conf, change the gateway ID, point to loriot service and be sure that the port values are correct:
   "gateway_ID": "B827EBFFFF6F8A98",
   /* change with default server address/ports, or overwrite in local_conf.json */
   "server_address": "mq.loriot.io",
   "serv_port_up": 1780,
   "serv_port_down": 1780,

You can then restart the packet forwarder and check its initial output which displays the current settings (gateway ID, server and port)

Loriot and PubNub services

Once the gateway is configured, you should be able to setup your loriot.io sample app and see the LoRa frames conming in.

The last thing to do is to create a PubNub channel to publish to. You can then configure the loriot app to publish data to PubNub (PubNub is one of the possible outputs).

Here you are: your LoRaMote device is pushing its data to the PubNub service! You just have to subscribe to the correct channel to receive this data.

Web application

This web app subscribes to the previously configured PubNub service and decodes and displays live data.

You'll have to change the PubNub channel and subscribe key point to your pubnub account. Just open, the popup window to enter your PubNub credentials (click on Details and then Setup icon)

Developers

First, install the dependencies:

npm install

Then watch your changes at http://localhost:3333:

brunch w --server

Do not forget to run the tests

npm test

And finally, deploy to production:

brunch b -p

and copy/paste the public directory to your web server directory. That's it :)

note: As we are not web development experts, any comment/help/PR is appreciated and we'll be happy to add your name to the CONTRIBUTORS file ;)