GithubHelp home page GithubHelp logo

isabella232 / node-kumoapp-tsrp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thethingsystem/node-kumoapp-tsrp

0.0 0.0 0.0 306 KB

A KumoApp to TSRP gateway

License: MIT License

Shell 0.54% JavaScript 99.46%

node-kumoapp-tsrp's Introduction

node-kumoapp-tsrp

A KumoApp to TSRP gateway.

Wireless Sensor Tags have an estimated range of over 200m with a battery life of one year. These communicate to a Tag Manager using a proprietary RF technology. In turn, the Tag Manager uploads tag readings to a cloud service.

A KumoApp is a javascript fragment that is evaluated whenever a reading is updated. This node package provides a server that listens for reports from a KumoApp and translates them into TSRP messages for use with The Thing System (or any other TSRP consumer).

Install

% npm -l install kumoapp-tsrp

Configure

You will need to run the gateway using an "always on" computer on your network. If you are running the steward, you can use the same machine. Regardless, you MUST edit kumoapp-params.js to include the IP address and TCP port that the gateway will listen on.

Define

Login to the Wireless Sensor Tag cloud service.

If you have not already authorized your Tag Manager, or associated new wireless sensor tags to your tag manager, please do so now.

Now click on Kumo Apps, and then click on Write Your App. Examine the "Existing Apps" drop-down and see if you have a choice for

report tag updates to kumoapp-tsrp gateway

If so, select that and create it; otherwise, create a new app with this name that doesn't require any sensor/tag types. To generate the body of the app, cut-and-paste the output of

% node kumoapp-define.js

and then create it.

Operate

To try it out:

% node index.js

or to run it continuously:

% ./run.sh

You probably want this to run on startup via cron, e.g.,

@reboot bash -c 'cd .../node-kumoapp-tsrp; (./run.sh &)'

At this point, whenever the Tag Manager reports a tag update to the Wireless Sensor Tag cloud, then the cloud service will tell the Tag Manager to make an HTTP call with the status information. This is translated into a TSRP packet and then multicast across the network.

Finally

Enjoy!

node-kumoapp-tsrp's People

Contributors

mrose17 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.