earthquakebeat

command module
v7.6.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

Build Status

Earthquakebeat

Welcome to Earthquakebeat.

Earthquakebeat is a beat which periodically pulls data from USGS earthquake API. There are 2 api calls done eacr Period which request new and updated earthquakes.

New earthquakes call will request data in GeoJSON format and use attribute starttime set to Now-Period. That meas beat will pull data from past X Period of time you define. Example https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2019-08-13T09%3A18%3A18

Updated earthquakes does the same, except is uses attribute updatedafter to pull last updated data. Example: https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2019-08-13T09%3A18%3A18

All other attributes are default and earthquakes from all over the world are being pulled.

Note: Beat preserve earthquake original ID to not to duplicate data in index.

Installation

Download and install appropriate package for your system. Check release page for latest packages.

You also can use Docker image docker pull radoondas/earthquakebeat:<version>

Configuration

To run Earthquakebeat you have to define Period for data pull. 5m should be sufficient and beat will pull new and updated earthquakes from last 5 minutes.

  period: 5m

Define the path to CA file which requires TLS call. One CA is provided in the repository. Feel free to use it.

Run

./earthquakebeat -c earthquakebeat.yml -e 

To debug run with debug flag enabled ./earthquakebeat -c earthquakebeat.yml -e -d "*"

Visualisations

This is an example of visualisation for measurements.

Map

Build

If you want to build Earthquakebeat from scratch, follow build documentation.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
package include <doc string>
package include <doc string>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL