[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,7 @@
* template: $template
plugin $seedlink.source.id cmd="$seedlink.plugin_dir/ewexport_plugin -v -s $sources.ewexport.address -p $sources.ewexport.port -At '$sources.ewexport.heartbeat.message' -Ar $sources.ewexport.heartbeat.rate"
timeout = 600
start_retry = 60
shutdown_wait = 10
proc = "$sources.ewexport.proc"

View File

@ -0,0 +1,30 @@
import os
'''
Plugin handler for the Earthworm export plugin.
'''
class SeedlinkPluginHandler:
# Create defaults
def __init__(self): pass
def push(self, seedlink):
# Check and set defaults
try: hb_msg = seedlink.param('sources.ewexport.heartbeat.message')
except:
hb_msg = 'alive'
seedlink.setParam('sources.ewexport.heartbeat.message', hb_msg)
try: hb_rate = seedlink.param('sources.ewexport.heartbeat.rate')
except:
hb_rate = 120
seedlink.setParam('sources.ewexport.heartbeat.rate', hb_rate)
host = seedlink._get('sources.ewexport.address')
port = seedlink._get('sources.ewexport.port')
return host + ":" + port
# Flush does nothing
def flush(self, seedlink):
pass