[seiscomp, scanloc] Install, add .gitignore

This commit is contained in:
2025-10-09 15:07:02 +02:00
commit 20f5301bb1
2848 changed files with 1315858 additions and 0 deletions

View File

@ -0,0 +1,16 @@
* Generated at $date - Do not edit!
* template: $template
[$seedlink.source.id]
station=$seedlink.station.id
udpaddr=$sources.q330.address
baseport=$sources.q330.port
dataport=$sources.q330.slot
hostport=$sources.q330.udpport
serialnumber=$sources.q330.serial
authcode=$sources.q330.auth
statefile=$seedlink.run_dir/${seedlink.station.id}.${seedlink.source.id}.cn
messages=SDUMP,LOGEXTRA,AUXMSG
statusinterval=60

View File

@ -0,0 +1,7 @@
* template: $template
plugin $seedlink.source.id cmd = "$seedlink.plugin_dir/q330_plugin$seedlink._daemon_opt -v -f $seedlink.config_dir/plugins.ini"
timeout = 3600
start_retry = 60
shutdown_wait = 10
proc = "$sources.q330.proc"

View File

@ -0,0 +1,51 @@
import os
'''
Plugin handler for the Quanterra/330 plugin.
'''
class SeedlinkPluginHandler:
# Create defaults
def __init__(self): pass
def push(self, seedlink):
# Check and set defaults
try: seedlink.param('sources.q330.port')
except: seedlink.setParam('sources.q330.port', 5330)
try: seedlink.param('sources.q330.udpport')
except: seedlink.setParam('sources.q330.udpport', "auto")
try: seedlink.param('sources.q330.slot') is None
except: seedlink.setParam('sources.q330.slot', 1)
try: seedlink.param('sources.q330.serial')
except: seedlink.setParam('sources.q330.serial', '0x0100000123456789')
try: seedlink.param('sources.q330.auth')
except: seedlink.setParam('sources.q330.auth', '0x00')
try: seedlink.param('sources.q330.proc')
except: seedlink.setParam('sources.q330.proc', '')
# Evaluate udp port
if seedlink._get('sources.q330.udpport').lower() == "auto":
try: udpbase = int(seedlink._get('plugins.q330.udpbase', False))
except: udpbase = 5500;
source_count = len(seedlink.seedlink_source['q330'])+1
seedlink.setParam('sources.q330.udpport', udpbase + 2*source_count)
# Key is per station and configuration settings
key = ";".join([
str(seedlink.param('sources.q330.address')),
str(seedlink.param('sources.q330.port')),
str(seedlink.param('sources.q330.udpport')),
str(seedlink.param('sources.q330.slot')),
seedlink.param('sources.q330.serial'),
seedlink.param('sources.q330.auth'),
str(seedlink._get('sources.q330.udpport'))])
return key
# Flush does nothing
def flush(self, seedlink):
pass

View File

@ -0,0 +1,14 @@
<proc name="q330_100">
<tree>
<input name="Z" channel="Z" location="" rate="100"/>
<input name="N" channel="N" location="" rate="100"/>
<input name="E" channel="E" location="" rate="100"/>
<node filter="FS2D5" stream="BH">
<node filter="F96C">
<node filter="ULP" stream="LH">
<node filter="VLP" stream="VH"/>
</node>
</node>
</node>
</tree>
</proc>