[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
7
share/templates/seedlink/wave24/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/wave24/seedlink_plugin.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
* template: $template
|
||||
plugin $seedlink.source.id cmd = "$seedlink.plugin_dir/wave24_plugin -p $sources.wave24.comport -s $sources.wave24.baudrate -N $seedlink.station.network -S $seedlink.station.code -1 HHZ -2 HHN -3 HHE -f 100"
|
||||
timeout = 600
|
||||
start_retry = 60
|
||||
shutdown_wait = 10
|
||||
proc = "$sources.wave24.proc"
|
||||
|
26
share/templates/seedlink/wave24/setup.py
Normal file
26
share/templates/seedlink/wave24/setup.py
Normal file
@ -0,0 +1,26 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the Wave24 plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.wave24.comport')
|
||||
except: seedlink.setParam('sources.wave24.comport', '/dev/data')
|
||||
|
||||
try: seedlink.param('sources.wave24.baudrate')
|
||||
except: seedlink.setParam('sources.wave24.baudrate', 57600)
|
||||
|
||||
try: seedlink.param('sources.wave24.proc')
|
||||
except: seedlink.setParam('sources.wave24.proc', 'wave24bb')
|
||||
|
||||
return seedlink.param('sources.wave24.comport')
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
14
share/templates/seedlink/wave24/streams_wave24bb.tpl
Normal file
14
share/templates/seedlink/wave24/streams_wave24bb.tpl
Normal file
@ -0,0 +1,14 @@
|
||||
<proc name="wave24bb">
|
||||
<tree>
|
||||
<input name="HHZ" channel="Z" location="" rate="100"/>
|
||||
<input name="HHN" channel="N" location="" rate="100"/>
|
||||
<input name="HHE" channel="E" location="" rate="100"/>
|
||||
<node stream="HH"/>
|
||||
</tree>
|
||||
<tree>
|
||||
<input name="BHZ" channel="Z" location="" rate="20"/>
|
||||
<input name="BHN" channel="N" location="" rate="20"/>
|
||||
<input name="BHE" channel="E" location="" rate="20"/>
|
||||
<node stream="BH"/>
|
||||
</tree>
|
||||
</proc>
|
Reference in New Issue
Block a user