Skip to content
Snippets Groups Projects
Commit b3198d2f authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Add miniseed to controller output options

parent 93c95018
No related branches found
No related tags found
No related merge requests found
...@@ -411,6 +411,15 @@ def get_output_factory(args): ...@@ -411,6 +411,15 @@ def get_output_factory(args):
tag=args.output_edge_tag, tag=args.output_edge_tag,
forceout=args.output_edge_forceout, forceout=args.output_edge_forceout,
**output_factory_args) **output_factory_args)
elif output_type == 'miniseed':
# TODO: deal with other miniseed arguments
locationcode = args.outlocationcode or args.locationcode or None
output_factory = edge.EdgeFactory(
host=args.output_host,
port=args.output_read_port,
write_port=args.output_port,
locationCode=locationcode,
**output_factory_args)
elif output_type == 'plot': elif output_type == 'plot':
output_factory = PlotTimeseriesFactory() output_factory = PlotTimeseriesFactory()
else: else:
...@@ -845,6 +854,7 @@ def parse_args(args): ...@@ -845,6 +854,7 @@ def parse_args(args):
'edge', 'edge',
'iaga2002', 'iaga2002',
'imfjson', 'imfjson',
'miniseed',
'pcdcp', 'pcdcp',
'plot', 'plot',
'temperature', 'temperature',
...@@ -862,6 +872,10 @@ def parse_args(args): ...@@ -862,6 +872,10 @@ def parse_args(args):
default=7981, default=7981,
help='Write to specified port', help='Write to specified port',
type=int) type=int)
parser.add_argument('--output-read-port',
default=2061,
help='Read from specified port',
type=int)
parser.add_argument('--output-stdout', parser.add_argument('--output-stdout',
action='store_true', action='store_true',
default=False, default=False,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment