[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
26
share/templates/seedlink/gmeteo/setup.py
Normal file
26
share/templates/seedlink/gmeteo/setup.py
Normal file
@ -0,0 +1,26 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for GFZ meteo.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.gmeteo.comport')
|
||||
except: seedlink.setParam('sources.gmeteo.comport', '/dev/meteo')
|
||||
|
||||
try: seedlink.param('sources.gmeteo.baudrate')
|
||||
except: seedlink.setParam('sources.gmeteo.baudrate', 19200)
|
||||
|
||||
try: seedlink.param('sources.gmeteo.proc')
|
||||
except: seedlink.setParam('sources.gmeteo.proc', 'gmeteo')
|
||||
|
||||
return seedlink.param('sources.gmeteo.comport')
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
Reference in New Issue
Block a user