All Projects → marcopovitch → sl2influxdb

marcopovitch / sl2influxdb

Licence: other
Fetch seedlink data and store them into InfluxDB

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to sl2influxdb

Torch Audiomentations
Fast audio data augmentation in PyTorch. Inspired by audiomentations. Useful for deep learning.
Stars: ✭ 164 (+485.71%)
Mutual labels:  waveform
sonify
Sonification of seismic and infrasound signals
Stars: ✭ 26 (-7.14%)
Mutual labels:  seismology
just waveform
A Flutter plugin to extract waveform data from an audio file suitable for visual rendering.
Stars: ✭ 53 (+89.29%)
Mutual labels:  waveform
Waveform analysis
Functions and scripts for analyzing waveforms, primarily audio. This is currently somewhat disorganized and unfinished.
Stars: ✭ 193 (+589.29%)
Mutual labels:  waveform
Dswaveformimage
Generate waveform images from audio files in iOS
Stars: ✭ 228 (+714.29%)
Mutual labels:  waveform
Gisola
Gisola: A High Performance Computing application for real-time Moment Tensor inversion
Stars: ✭ 35 (+25%)
Mutual labels:  seismology
Circular Audio Wave
JS library for audio visualization in circular wave using Web Audio API and ECharts
Stars: ✭ 131 (+367.86%)
Mutual labels:  waveform
Lazylyst
Lazylyst is a GUI created for time series review, using a flexible framework for new workflows
Stars: ✭ 16 (-42.86%)
Mutual labels:  seismology
tree-core-ide
The next generation integrated development environment for processor design and verification. It has multi-hardware language support, open source IP management and easy-to-use rtl simulation toolset.
Stars: ✭ 79 (+182.14%)
Mutual labels:  waveform
drop
A LÖVE visualizer and music player
Stars: ✭ 17 (-39.29%)
Mutual labels:  waveform
Vudio.js
音频可视化展示模块
Stars: ✭ 194 (+592.86%)
Mutual labels:  waveform
Rfxgen
A simple and easy-to-use fx sounds generator
Stars: ✭ 221 (+689.29%)
Mutual labels:  waveform
waveplayer.js
An HTML5 based audio player with a waveform view
Stars: ✭ 73 (+160.71%)
Mutual labels:  waveform
Akwf Free
Adventure Kid Wave Forms are a collection of sampled one cycle waveforms for use in synthesizers or similar sound generators.
Stars: ✭ 179 (+539.29%)
Mutual labels:  waveform
OrientPy
Seismic station orientation tools
Stars: ✭ 29 (+3.57%)
Mutual labels:  seismology
Speechrecognizerbutton
UIButton subclass with push to talk recording, speech recognition and Siri-style waveform view.
Stars: ✭ 144 (+414.29%)
Mutual labels:  waveform
PH5
Library of PH5 clients, apis, and utilities
Stars: ✭ 14 (-50%)
Mutual labels:  seismology
SeisNoise.jl
Ambient Noise Cross-Correlation in Julia
Stars: ✭ 43 (+53.57%)
Mutual labels:  seismology
QuakeMigrate
A Python package for automatic earthquake detection and location using waveform migration and stacking.
Stars: ✭ 101 (+260.71%)
Mutual labels:  seismology
FastPCC
Compute interstation correlations of seismic ambient noise, including fast implementations of the standard, 1-bit and phase cross-correlations.
Stars: ✭ 24 (-14.29%)
Mutual labels:  seismology

Seedlink to InfluxDB

Dump seedlink (seismological) time series into InfluxDB. Use Grafana to plot waveforms, real time latency delay, etc. Maps uses the grafana worldmap-panel plugin.

Dockerfile, docker-compose.yml are available here.

Install

pip install .

Usage

~$ seedlink2influxdb -help
Usage: seedlink2influxdb [options]

Options:
  -h, --help            show this help message and exit
  --dbserver=DBSERVER   InfluxDB server name
  --dbport=DBPORT       InfluxDB server port
  --slserver=SLSERVER   seedlink server name
  --slport=SLPORT       seedlink server port
  --fdsnserver=FDSN_SERVER[:PORT]
                        fdsn station server name
  --streams=STREAMS     streams to fetch (regexp): [('.*','.*','.*Z','.*')]
  --flushtime=NUMBER    when to force the data flush to influxdb
  --db=DBNAME           InfluxDB name to use
  --dropdb              [WARNING] drop previous database !
  --keep=NUMBER         how many days to keep data
  --recover             use seedlink statefile to save/get streams from last

Example :

seedlink2influxdb
    --dbserver localhost \
    --dbport 8086 \
    --slserver rtserve.resif.fr \
    --fdsnserver http://ws.resif.fr \
    --db eost2 \
    --keep 1

Note

Fdsnserver request (--fdsnserver option) is optional. It is only used and performed at the begining and could be slow (if too much stations info are requested) ! Data collected are only used to get station coordinates and are converted to geohash, needed to plot measurements on a map.

Screenshot

Delay/Latency

Map plugin Geomap plugin

Dealy Latency board

Waveform, RMS, latency plots for a given station

Traces for multiple stations

InfluxDB

InluxDB data representation (measurements, tags, fields, timestamps).

Measurements:

  • queue: internal messages producer queue (seedlink thread) and consumer queue (influxdb exporter thread)
    • tags
      • type=(consumer|producer)
    • field
      • size=queue size
    • timestamp
  • count : amplitude in count (waveforms)
    • tags
      • channel = channel name (eg. FR.WLS.00.HHZ)
    • field
      • value = amplitude
    • timestamp
  • latency : seedlink packet propagation time from station to datacenter
    • tags
      • channel = channel name
    • field
      • value = latency value
    • timestamp
  • delay : time since last seedlink packet was received
    • tags
      • channel = channel name (eg. FR.WLS.00.HHZ)
      • geohash = station coordinates geohash formated
    • field
      • value = latency value
    • timestamp

Dependencies

Using docker

A docker-compose is available to quickly setup influxdb and grafana. Use docker-compose build to make docker images.

Data storage

If you are running this project for the first time, you have to create a influxdb data docker volume in order to keep your measurements between restarts:

docker volume create --name=sl2influxdb_influxdb_data

Start services

For RaspberryShake

This configuration is ready to be run, assuming your raspeberryshake is in you local network and reachable using raspberryshake.local address.

To start all the containers (influxdb, seedlink fetcher and grafana):

docker-compose up -d rshakegrafana

Check the logs to see if seedlink data is fetched without problem:

docker-compose logs -f sl2raspberryshake

For Generic Seedlink Server

You need to customize the docker-compose.yml file to set properly this environement variables:

  • SEEDLINK_SERVER
  • FDSN_WS_STATION_SERVER
  • SEEDLINK_STREAMS (without space !!)

Then, starts the container:

docker-compose up -d sl2generic

To check the logs if seedlink data is fetched well:

docker-compose logs -f sl2generic

Acces to grafana interface

docker-compose up -d grafana

Some time it may be required to wait for grafana to start since some modules will be installed or upgraded. Have a look to the log file using :

docker-compose logs -f grafana

When upgrading grafana (eg: version 5 to 5.1 or later) it may be necessary to remove and create again grafana volumes :

docker volume rm _grafana_volume_name_
docker volume create --name=_grafana_volume_name_

At least removes _grafana_volume_name_, when starting containers docker-compose will tell you which volume is missing and it will give you the command line to create it.

Then launch you preferred browser and go to http://localhost:3000, with:

  • user: admin
  • passwd : admin

Stop services

docker-compose down -v
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].