[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
30
share/templates/seedlink/ps2400_eth/setup.py
Normal file
30
share/templates/seedlink/ps2400_eth/setup.py
Normal file
@ -0,0 +1,30 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the EarthData PS6-24 plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.ps2400_eth.address')
|
||||
except: seedlink.setParam('sources.ps2400_eth.address', '127.0.0.1')
|
||||
|
||||
try: seedlink.param('sources.ps2400_eth.port')
|
||||
except: seedlink.setParam('sources.ps2400_eth.port', 1411)
|
||||
|
||||
try: proc = seedlink.param('sources.ps2400_eth.proc')
|
||||
except: seedlink.setParam('sources.ps2400_eth.proc', 'ps2400_eth_edata_100')
|
||||
|
||||
# Key is per station and configuration settings
|
||||
key = ";".join([
|
||||
str(seedlink.param('sources.ps2400_eth.address')),
|
||||
str(seedlink.param('sources.ps2400_eth.port'))])
|
||||
return key
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
Reference in New Issue
Block a user