pytroll / pytroll-collectors

Collector modules for Pytroll
GNU General Public License v3.0
3 stars 18 forks source link

Add publish port and nameserver options to scisys receiver #55

Closed pnuu closed 4 years ago

pnuu commented 4 years ago

This PR restructures the main of scisys receiver and adds a possibility to define nameservers and publish ports for it. The output of scisys_receiver.py -h is now:

usage: scisys_receiver.py [-h] [-P PUBLISH_PORT]
                          [-n NAMESERVERS [NAMESERVERS ...]] [-s STATION]
                          [-x [EXCLUDED_SATELLITES [EXCLUDED_SATELLITES ...]]]
                          [-e ENVIRONMENT] [-l LOG] [-f FTP_PREFIX]
                          [-t TARGET_SERVER] [-T TOPIC_POSTFIX]
                          host port

positional arguments:
  host                  GMC host
  port                  Port to listen to

optional arguments:
  -h, --help            show this help message and exit
  -P PUBLISH_PORT, --publish-port PUBLISH_PORT
                        Publish port
  -n NAMESERVERS [NAMESERVERS ...], --nameserver NAMESERVERS [NAMESERVERS ...]
                        Nameserver(s) to connect to
  -s STATION, --station STATION
                        Name of the station
  -x [EXCLUDED_SATELLITES [EXCLUDED_SATELLITES ...]], --excluded_satellites [EXCLUDED_SATELLITES [EXCLUDED_SATELLITES ...]]
                        List of platform names to exclude
  -e ENVIRONMENT, --environment ENVIRONMENT
                        Name of the environment (e.g. dev, test, oper)
  -l LOG, --log LOG     File to log to
  -f FTP_PREFIX, --ftp_prefix FTP_PREFIX
                        FTP path prefix for message uri
  -t TARGET_SERVER, --target_server TARGET_SERVER
                        Name of the target server. In case of multiple
                        dispatches in GMC.
  -T TOPIC_POSTFIX, --topic_postfix TOPIC_POSTFIX
                        Publish topic postfix. Prefix will be
codecov[bot] commented 4 years ago

Codecov Report

Merging #55 into master will increase coverage by 3.55%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #55      +/-   ##
=========================================
+ Coverage    4.17%   7.73%   +3.55%     
=========================================
  Files          18      18              
  Lines        2944    3221     +277     
=========================================
+ Hits          123     249     +126     
- Misses       2821    2972     +151     
Impacted Files Coverage Δ
pytroll_collectors/_version.py 44.40% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4e86419...3a518fe. Read the comment docs.