pheromon-codecs

Function to encode data used by pheromon sources

Usage no npm install needed!

<script type="module">
  import pheromonCodecs from 'https://cdn.skypack.dev/pheromon-codecs';
</script>

README

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