Skip to content

weeve-modules/fast-fourier-transform

Repository files navigation

Fast Fourier Transform

Name Fast Fourier Transform
Version v1.0.1
DockerHub weevenetwork/fast-fourier-transform
Authors Jakub Grzelak

Description

Extract elementary frequencies and magnitudes from your data.

Environment Variables

Module Specific

The following module configurations can be provided in a data service designer section on weeve platform:

Name Environment Variables type Description
Input Label INPUT_LABEL string Label of data to apply FFT to.
Sample Data SAMPLE_SIZE string Number of samples taken per second, sample rate of 1024 means that 1024 values of the signal are recorded in one second.

Set by the weeve Agent on the edge-node

Other features required for establishing the inter-container communication between modules in a data service are set by weeve agent.

Environment Variables type Description
MODULE_NAME string Name of the module
MODULE_TYPE string Type of the module (Input, Processing, Output)
EGRESS_URLS string HTTP ReST endpoints for the next module
INGRESS_HOST string Host to which data will be received
INGRESS_PORT string Port to which data will be received

Dependencies

bottle
requests
scipy
numpy

Input

Input to this module is a single JSON object with is bytes object containing compressed (LZMA compression) array of data points of a simulated waveform.:

Output

Output of this module is list of the detected frequencies and magitudes, formatted as a list of objects;

[
    {
        "frequency": 270,
        "magnitude": 2
    },
    {
        "frequency": 60,
        "magnitude": 25
    }
]

About

Apply Fast Fourier Transform to detect data frequencies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •