[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
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