[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,117 @@
* Generated at $date - Do not edit!
* template: $template
[$seedlink.source.id]
* Settings for WAGO I/O Controller
* Station ID (network/station code is set in seedlink.ini)
station=$seedlink.station.id
* Use the command 'serial_plugin -m' to find out which protocols are
* supported.
protocol=modbus
* Serial port
port=tcp://$sources.wago.address:$sources.wago.port
* Baud rate
bps=0
* Time interval in minutes when status information is logged, 0 (default)
* means "disabled". Status channels can be used independently of this
* option.
statusinterval=60
* Maximum number of consecutive zeros in datastream before data gap will be
* declared (-1 = disabled).
zero_sample_limit = -1
* Default timing quality in percents. This value will be used when no
* timing quality information is available. Can be -1 to omit the blockette
* 1001 altogether.
default_tq = -1
* Keyword 'channel' is used to map input channels to symbolic channel
* names. Channel names are arbitrary 1..10-letter identifiers which should
* match the input names of the stream processing scheme in streams.xml,
* which is referenced from seedlink.ini
* Strom 5A 12V System
channel SA source_id=1.$sources.wago.channels.a.sid realscale=0.183 realunit=mA precision=2
* Strom 5A 24V System
channel SB source_id=1.$sources.wago.channels.b.sid realscale=0.183 realunit=mA precision=2
* Strom 5A Reserve
channel SC source_id=1.$sources.wago.channels.c.sid realscale=0.183 realunit=mA precision=2
* Strom 5A Reserve
channel SD source_id=1.$sources.wago.channels.d.sid realscale=0.183 realunit=mA precision=2
* Spannung 30V DC Solarcontroller 1
channel SE source_id=1.$sources.wago.channels.e.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Solarcontroller 2
channel SF source_id=1.$sources.wago.channels.f.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Solarcontroller 3
channel SG source_id=1.$sources.wago.channels.g.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Solarcontroller 4
channel SH source_id=1.$sources.wago.channels.h.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Solarcontroller 5
channel SI source_id=1.$sources.wago.channels.i.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Solarcontroller 6
channel SJ source_id=1.$sources.wago.channels.j.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Solarcontroller 7
channel SK source_id=1.$sources.wago.channels.k.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Solarcontroller 8
channel SL source_id=1.$sources.wago.channels.l.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Diodenverknuepfung SC1+SC2
channel SM source_id=1.$sources.wago.channels.m.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Diodenverknuepfung SC3+SC8
channel SN source_id=1.$sources.wago.channels.n.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC 12V VSAT (geschaltet) [Sri Lanka, Madagaskar]
channel SO source_id=1.$sources.wago.channels.o.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC 24V Converter
channel SP source_id=1.$sources.wago.channels.p.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC VSAT Router geschaltet 24V
channel SQ source_id=1.$sources.wago.channels.q.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V DC Diodenverknuepfung SC1-SC4 [Sri Lanka]
channel SR source_id=1.$sources.wago.channels.r.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V Reserve
channel SS source_id=1.$sources.wago.channels.s.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V Reserve
channel ST source_id=1.$sources.wago.channels.t.sid realscale=0.000916 realunit=V precision=3
* Spannung 30V Reserve
channel SU source_id=1.$sources.wago.channels.u.sid realscale=0.000916 realunit=V precision=3
* Wiederstandsmessung Schwimmer
channel SV source_id=1.$sources.wago.channels.v.sid realscale=0.5 realunit=Ohm precision=3
* Wiederstandsmessung Tuerk
channel SW source_id=1.$sources.wago.channels.w.sid realscale=0.5 realunit=Ohm precision=3
* Wiederstandsmessung Reserve
channel SX source_id=1.$sources.wago.channels.x.sid realscale=0.5 realunit=Ohm precision=3
* Wiederstandsmessung Reserve
channel SY source_id=1.$sources.wago.channels.y.sid realscale=0.5 realunit=Ohm precision=3
* 230V Messung
channel SZ source_id=1.$sources.wago.channels.z.sid realscale=0.1 realunit=V precision=3

View File

@ -0,0 +1,7 @@
* template: $template
plugin $seedlink.source.id cmd = "$pkgroot/share/plugins/seedlink/serial_plugin$seedlink._daemon_opt -v -f $pkgroot/var/lib/seedlink/plugins.ini"
timeout = 600
start_retry = 60
shutdown_wait = 10
proc = "$sources.wago.proc"

View File

@ -0,0 +1,32 @@
import os
'''
Plugin handler for the WAGO (T-Eektronik) plugin.
'''
class SeedlinkPluginHandler:
# Create defaults
def __init__(self): pass
def push(self, seedlink):
# Check and set defaults
try: seedlink.param('sources.wago.port')
except: seedlink.setParam('sources.wago.port', 502)
try: seedlink.param('sources.wago.proc')
except: seedlink.setParam('sources.wago.proc', 'wago')
try:
wago_chan = dict(zip(seedlink.param('sources.wago.channels').lower().split(','), range(26)))
except:
wago_chan = dict()
for letter in range(ord('a'), ord('z') + 1):
try: seedlink.param('sources.wago.channels.%s.sid' % chr(letter))
except: seedlink.setParam('sources.wago.channels.%s.sid' % chr(letter), wago_chan.get(chr(letter), 256))
return seedlink.net + "." + seedlink.sta
# Flush does nothing
def flush(self, seedlink):
pass

View File

@ -0,0 +1,31 @@
<proc name="wago">
<tree>
<input name="SA" channel="A" location="" rate="1/10"/>
<input name="SB" channel="B" location="" rate="1/10"/>
<input name="SC" channel="C" location="" rate="1/10"/>
<input name="SD" channel="D" location="" rate="1/10"/>
<input name="SE" channel="E" location="" rate="1/10"/>
<input name="SF" channel="F" location="" rate="1/10"/>
<input name="SG" channel="G" location="" rate="1/10"/>
<input name="SH" channel="H" location="" rate="1/10"/>
<input name="SI" channel="I" location="" rate="1/10"/>
<input name="SJ" channel="J" location="" rate="1/10"/>
<input name="SK" channel="K" location="" rate="1/10"/>
<input name="SL" channel="L" location="" rate="1/10"/>
<input name="SM" channel="M" location="" rate="1/10"/>
<input name="SN" channel="N" location="" rate="1/10"/>
<input name="SO" channel="O" location="" rate="1/10"/>
<input name="SP" channel="P" location="" rate="1/10"/>
<input name="SQ" channel="Q" location="" rate="1/10"/>
<input name="SR" channel="R" location="" rate="1/10"/>
<input name="SS" channel="S" location="" rate="1/10"/>
<input name="ST" channel="T" location="" rate="1/10"/>
<input name="SU" channel="U" location="" rate="1/10"/>
<input name="SV" channel="V" location="" rate="1/10"/>
<input name="SW" channel="W" location="" rate="1/10"/>
<input name="SX" channel="X" location="" rate="1/10"/>
<input name="SY" channel="Y" location="" rate="1/10"/>
<input name="SZ" channel="Z" location="" rate="1/10"/>
<node stream="AE"/>
</tree>
</proc>