[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
7
share/templates/seedlink/antelope/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/antelope/seedlink_plugin.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
* template: $template
|
||||
plugin $seedlink.source.id cmd="$seedlink.plugin_dir/orb_plugin -v -S $pkgroot/var/lib/seedlink/${seedlink.station.id}.pkt:100 -m '.*${seedlink.station.code}.${sources.antelope.select}' -o $sources.antelope.address:$sources.antelope.port"
|
||||
timeout = 600
|
||||
start_retry = 60
|
||||
shutdown_wait = 10
|
||||
proc = "$sources.antelope.proc"
|
||||
|
28
share/templates/seedlink/antelope/setup.py
Normal file
28
share/templates/seedlink/antelope/setup.py
Normal file
@ -0,0 +1,28 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the Antelope ORB plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Default host is localhost
|
||||
try: seedlink.param('sources.antelope.address')
|
||||
except: seedlink.setParam('sources.antelope.address', 'localhost')
|
||||
|
||||
# Default port is 39136
|
||||
try: seedlink.param('sources.antelope.port')
|
||||
except: seedlink.setParam('sources.antelope.port', 39136)
|
||||
|
||||
# Select defaults to '*'
|
||||
try: seedlink.param('sources.antelope.select')
|
||||
except: seedlink.setParam('sources.antelope.select', '*')
|
||||
|
||||
# key is station (one instance per station)
|
||||
return seedlink.net + "." + seedlink.sta
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
Reference in New Issue
Block a user