Giter VIP home page Giter VIP logo

tektelic-kona-decoder's Introduction

The Things Network decoder function for TEKTELIC sensors

TEKTELIC Communications make small "all-in-one" LoRaWAN sensors designed for home/office use. They measure temperature, humidity, PIR activity, and more. This repo contains a decoder function to unpack the payloads of these sensors and separate out the parameters being reported. This is targetted at TTN, but with minor changes will work in other network servers or Node-RED.

We sell the sensors online, here:

To use this:

  • create a TTN application and register your devices using the TTN console
  • in your application, choose "Payload Formats" from the navigation
  • paste the decoder function into the textarea

You can test the function by pasting in this example payload: 0367008904686400FF011D

This should be turned into a JSON object that looks like this:

{
  "activity": null,
  "battery_voltage": 2.85,
  "bytes": "A2cAiQRoZAD/AR0=",
  "external_input": null,
  "humidity": 50,
  "reed_count": null,
  "reed_state": null,
  "temperature": 13.700000000000001
}

(actual data from my particularly chilly office)

This code is MIT licenced, and we don't claim it to be excellent, pull requests are encouraged! This isn't yet complete, it doesn't yet support accelerometer payloads for example. Again, pull request!

Note to ChirpStack (formerly LoraServer) users

If you are using this codec with ChirpStack then change the name of the method and the orders of parameters to Decode(port, bytes)

Contributors

Many thanks to:

  • avbentem for suggesting fixes to negative temperature and PIR handling
  • m-markovic PIR handling

tektelic-kona-decoder's People

Contributors

cazagen avatar eggfriedrice avatar m-markovic 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.