npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eep-transcoder

v0.1.0

Published

and Enocean Equipment Profile (EEP) encoder and decoder that can transform between binary and json representation.

Downloads

5

Readme

eep-transcoder

a module for encoding and decoding Enocean Equipment Profile (EEP) Telegrams. This is a work in progress. For now only RORG a5,d5 and f6 (no VLD) is supported...

The API will most likely still change a lot

installing

npm i -S eep-transcoder

usage

you can use this module in both node.js and in the browser.

node.js

var EnoceanTelegram = require("eep_transcoder")

browser

<script src="eep_transcoder.min.js"></script>

Examples

encoding

the encode function expects two parameters. one json representation of the telegram to be encoded, and the eep according to which it should be encoded.

var tel ={
  decoded:{
    TMP:{value:20}
  },
  _senderId: "aabbccdd"
}
var enc = EnocenTelegram.encode(tel,"a5-02-03")
console.log(enc.encoded)

the telegram will be filled with usefull defaults. So you only need to provide the data you want to change. this will most probably be the senderId and the data part which for json is stored in the decoded field.

find out what fields can be used for which telgram in the documentation

decoding

var tel = "55000a0701eba5ff0385080006be370001ffffffff4400c5"
var dec = EnoceanTelegram.decode(tel,"a5-02-03")
console.log(dec.decoded)

teach in Telegrams

you can also create teach in telegrams. to do so you need the eep you want to encod by and a senderId which should be derived from enocean.base

var id=(parseInt(en.base,16)+22).toString(16)
var ti = EnoceanTelegram.teach_in(id,"a5-02-14")
console.log(ti)