[installation] Init with inital config for global

This commit is contained in:
2025-10-30 15:08:17 +01:00
commit 7640b452ed
3678 changed files with 2200095 additions and 0 deletions

View File

@ -0,0 +1,6 @@
* template: $template
plugin $seedlink.source.id cmd="$seedlink.plugin_dir/sock_plugin -v -s $sources.liss.address -p $sources.liss.port -n $seedlink.station.network"
timeout = 600
start_retry = 60
shutdown_wait = 10

View File

@ -0,0 +1,26 @@
import os
'''
Plugin handler for the liss plugin.
'''
class SeedlinkPluginHandler:
# Create defaults
def __init__(self): pass
def push(self, seedlink):
try: host = seedlink.param('sources.liss.address')
except: host = "$STATION.$NET.liss.org"
try: port = seedlink.param('sources.liss.port')
except:
port = "4000"
seedlink.setParam('sources.liss.port', port)
host = host.replace("$STATION", seedlink.sta).replace("$NET", seedlink.net)
seedlink.setParam('sources.liss.address', host)
# key is station (one instance per station)
return seedlink.net + "." + seedlink.sta
# Flush does nothing
def flush(self, seedlink):
pass