[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
48
share/templates/seedlink/mws/plugins.ini.tpl
Normal file
48
share/templates/seedlink/mws/plugins.ini.tpl
Normal file
@ -0,0 +1,48 @@
|
||||
* Generated at $date - Do not edit!
|
||||
* template: $template
|
||||
|
||||
[$seedlink.source.id]
|
||||
|
||||
* Settings for Reinhardt weather station (GITEWS)
|
||||
|
||||
* 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=mws
|
||||
|
||||
* Serial port
|
||||
port=$sources.mws.comport
|
||||
|
||||
* Baud rate
|
||||
bps=$sources.mws.baudrate
|
||||
|
||||
* Time interval in minutes when weather information is logged, 0 (default)
|
||||
* means "disabled". Weather 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
|
||||
|
||||
* Indoor Temperature (C * 100)
|
||||
channel KI source_id=TE scale=100
|
||||
|
||||
* Indoor Humidity (%)
|
||||
channel II source_id=FE scale=1
|
||||
|
||||
* Air Pressure (hPa * 10)
|
||||
channel DI source_id=DR scale=10
|
||||
|
7
share/templates/seedlink/mws/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/mws/seedlink_plugin.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
* template: $template
|
||||
plugin $seedlink.source.id cmd = "$seedlink.plugin_dir/serial_plugin$seedlink._daemon_opt -v -f $seedlink.config_dir/plugins.ini"
|
||||
timeout = 600
|
||||
start_retry = 60
|
||||
shutdown_wait = 10
|
||||
proc = "$sources.mws.proc"
|
||||
|
26
share/templates/seedlink/mws/setup.py
Normal file
26
share/templates/seedlink/mws/setup.py
Normal file
@ -0,0 +1,26 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the MWS plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.mws.comport')
|
||||
except: seedlink.setParam('sources.mws.comport', '/dev/weatherstation')
|
||||
|
||||
try: seedlink.param('sources.mws.baudrate')
|
||||
except: seedlink.setParam('sources.mws.baudrate', 19200)
|
||||
|
||||
try: seedlink.param('sources.mws.proc')
|
||||
except: seedlink.setParam('sources.mws.proc', 'mws')
|
||||
|
||||
return seedlink.param('sources.mws.comport')
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
8
share/templates/seedlink/mws/streams_mws.tpl
Normal file
8
share/templates/seedlink/mws/streams_mws.tpl
Normal file
@ -0,0 +1,8 @@
|
||||
<proc name="mws">
|
||||
<tree>
|
||||
<input name="KI" channel="KI" location="" rate="1"/>
|
||||
<input name="II" channel="II" location="" rate="1"/>
|
||||
<input name="DI" channel="DI" location="" rate="1"/>
|
||||
<node stream="W"/>
|
||||
</tree>
|
||||
</proc>
|
Reference in New Issue
Block a user