Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

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.


pip install .


~$ seedlink2influxdb -help
Usage: seedlink2influxdb [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
                        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 :

    --dbserver localhost \
    --dbport 8086 \
    --slserver \
    --fdsnserver \
    --db eost2 \
    --keep 1


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.



Map plugin Geomap plugin

Dealy Latency board

Waveform, RMS, latency plots for a given station

Traces for multiple stations


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


  • 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


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_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


Fetch seedlink data and store them into InfluxDB







No releases published


No packages published