[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
48
share/templates/seedlink/maram/plugins.ini.tpl
Normal file
48
share/templates/seedlink/maram/plugins.ini.tpl
Normal file
@ -0,0 +1,48 @@
|
||||
* Generated at $date - Do not edit!
|
||||
* template: $template
|
||||
|
||||
[$seedlink.source.id]
|
||||
|
||||
* Settings for maRam Weatherstation V1
|
||||
|
||||
* 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=maram
|
||||
|
||||
* Serial port
|
||||
port=$sources.maram.comport
|
||||
|
||||
* Baud rate
|
||||
bps=$sources.maram.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
|
||||
|
||||
* Temperature (C * 100)
|
||||
channel KI source_id=TD scale=100
|
||||
|
||||
* Humidity (%RH * 10)
|
||||
channel II source_id=HR scale=10
|
||||
|
||||
* Air Pressure (hPa * 1000)
|
||||
channel DI source_id=PR scale=1000
|
||||
|
7
share/templates/seedlink/maram/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/maram/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.maram.proc"
|
||||
|
24
share/templates/seedlink/maram/setup.py
Normal file
24
share/templates/seedlink/maram/setup.py
Normal file
@ -0,0 +1,24 @@
|
||||
'''
|
||||
Plugin handler for maRam Weatherstation V1.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.maram.comport')
|
||||
except: seedlink.setParam('sources.maram.comport', '/dev/meteo')
|
||||
|
||||
try: seedlink.param('sources.maram.baudrate')
|
||||
except: seedlink.setParam('sources.maram.baudrate', 9600)
|
||||
|
||||
try: seedlink.param('sources.maram.proc')
|
||||
except: seedlink.setParam('sources.maram.proc', 'maram')
|
||||
|
||||
return seedlink.param('sources.maram.comport')
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
8
share/templates/seedlink/maram/streams_maram.tpl
Normal file
8
share/templates/seedlink/maram/streams_maram.tpl
Normal file
@ -0,0 +1,8 @@
|
||||
<proc name="maram">
|
||||
<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