Giter Site home page Giter Site logo

kirbo / ruuvitag-parser Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 359 KB

This is a mirror repository. Please contribute here: https://gitlab.com/kirbo/ruuvitag-parser

License: MIT License

TypeScript 100.00%
ruuvitag ruuvitag-sensor typescript parser

ruuvitag-parser's Introduction

RuuviTag Parser

latest version last commit pipeline status coverage report downloads total

This repository is heavily influenced/inspired by pakastin/node-ruuvitag, which I also took as a base and did some heavy refactoring, as well as converting the old JavaScript files into TypeScript.

!! This repository is still a work in progress !!

This module only handles the parsing. It wont scan the sensors or any other shenanigans.

Usage examples

Parse Dataformat v3 and v5

Just to parse the data, use like this:

import { parseData } from 'ruuvitag-parser'

const jsonData = parseData(dataFromRuuvitag)

Parse Dataformat v2 and v4

Just to parse the data, use like this:

import { parseUrl } from 'ruuvitag-parser'

const jsonData = parseUrl(dataFromRuuvitag)

Parse Eddystone URL

import { parseEddystone } from 'ruuvitag-parser'

const url = parseEddystone(eddystoneUrlBuffer)

Few examples can be found from integration tests:

Contribute

This repository is being developed in GitLab. CI/CD Pipeline can be found here.

CI/CD Pipeline uses go-semantic-release for automated releases. Because of this, developers should follow these instructions for commit message formatting.

The commits are being analyzed with this extension and it requires developers to format commit messages in certain way.

Read more about:

Cheat Sheets

The GitHub repository is only a mirror from GitLab. Please make Merge Requests in GitLab.

Releases / Changes

Releases and "changelogs" can be found here. Each releases description contains the changes that the version includes, e.g.: v0.2.14.

Links

License

MIT License

Copyright (c) 2021 Kimmo Saari

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ruuvitag-parser's People

Contributors

kirbo avatar

Watchers

 avatar  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.