[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
60
share/templates/seedlink/gmeteo/plugins.ini.tpl
Normal file
60
share/templates/seedlink/gmeteo/plugins.ini.tpl
Normal file
@ -0,0 +1,60 @@
|
||||
* Generated at $date - Do not edit!
|
||||
* template: $template
|
||||
|
||||
[$seedlink.source.id]
|
||||
|
||||
* Settings for GFZ meteo
|
||||
|
||||
* 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=gmeteo
|
||||
|
||||
* Serial port
|
||||
port=$sources.gmeteo.comport
|
||||
|
||||
* Baud rate
|
||||
bps=$sources.gmeteo.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
|
||||
|
||||
* Outdoor Temperature (C * 100)
|
||||
channel KO source_id=TD scale=100
|
||||
|
||||
* Outdoor Humidity (%RH)
|
||||
channel IO source_id=HR scale=1
|
||||
|
||||
* Air Pressure (hPa * 10)
|
||||
channel DO source_id=PR scale=10
|
||||
|
||||
* Wind Direction (deg)
|
||||
channel WD source_id=WD scale=1
|
||||
|
||||
* Wind Speed (m/s * 10)
|
||||
channel WS source_id=WS scale=10
|
||||
|
||||
* Rain accumulation (mm * 100)
|
||||
channel RA source_id=RI scale=100
|
||||
|
||||
* Hail accumulation (hits/cm^2 * 10)
|
||||
channel HA source_id=HI scale=10
|
||||
|
7
share/templates/seedlink/gmeteo/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/gmeteo/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.gmeteo.proc"
|
||||
|
26
share/templates/seedlink/gmeteo/setup.py
Normal file
26
share/templates/seedlink/gmeteo/setup.py
Normal file
@ -0,0 +1,26 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for GFZ meteo.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.gmeteo.comport')
|
||||
except: seedlink.setParam('sources.gmeteo.comport', '/dev/meteo')
|
||||
|
||||
try: seedlink.param('sources.gmeteo.baudrate')
|
||||
except: seedlink.setParam('sources.gmeteo.baudrate', 19200)
|
||||
|
||||
try: seedlink.param('sources.gmeteo.proc')
|
||||
except: seedlink.setParam('sources.gmeteo.proc', 'gmeteo')
|
||||
|
||||
return seedlink.param('sources.gmeteo.comport')
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
12
share/templates/seedlink/gmeteo/streams_gmeteo.tpl
Normal file
12
share/templates/seedlink/gmeteo/streams_gmeteo.tpl
Normal file
@ -0,0 +1,12 @@
|
||||
<proc name="gmeteo">
|
||||
<tree>
|
||||
<input name="KO" channel="KO" location="" rate="1/10"/>
|
||||
<input name="IO" channel="IO" location="" rate="1/10"/>
|
||||
<input name="DO" channel="DO" location="" rate="1/10"/>
|
||||
<input name="WD" channel="WD" location="" rate="1/10"/>
|
||||
<input name="WS" channel="WS" location="" rate="1/10"/>
|
||||
<input name="RA" channel="RA" location="" rate="1/10"/>
|
||||
<input name="HA" channel="HA" location="" rate="1/10"/>
|
||||
<node stream="W"/>
|
||||
</tree>
|
||||
</proc>
|
Reference in New Issue
Block a user