pheromon-codecs

0.0.8 • Public • Published

pheromon-codecs

Build Status

Function to encode data used by pheromon sources.

List of available codecs

signalStrengths :

This codec allows to encode measurements matching this pattern :

{
  date: Date(),
  devices:
  [ 
    {
      signal_strength: int,
      std: int // standard deviation (optionnal)
    },
    ...
  ] 
}

It is used in 6sense in order to send a list of devices currently visible.

trajectories :

This codec allows to encode trajectories matching this pattern :

[
  [
    {
      date: Date(),
      signal_strength: int
    },
    ...
  ],
  [
    {
      date: Date(),
      signal_strength: int
    },
    ...
  ],
  ...
]

It is used in 6sense in order to send all trajectories of all devices seen everyday.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i pheromon-codecs

Weekly Downloads

0

Version

0.0.8

License

MIT

Last publish

Collaborators

  • ants