awips2/rpms/awips2.upc/Installer.ldm/patch/dev/notifyAWIPS2-unidata.py
ucar-tmeyer 4df4e3cfcf LDM Updates
-Updated component.spec file to use the patch script for pqact
-Updated cron to use the NWS qpidNotify for concatenated model data

TO DO:
-Need to change the awips cron to use our script once python-awips is built
-Need to uncomment a line in the cron
2022-10-18 08:40:55 -07:00

23 lines
485 B
Python

#!/awips2/python/bin/python
#from ufpy import qpidingest
from sys import argv
from os import path
from awips.qpidingest import *
#read in command line argument as path
inPath = argv[1]
header = path.basename(inPath)
#make connection to QPID
#conn = qpidingest.IngestViaQPID(host='cpsbn1',port=5672,ssl=True)
conn = IngestViaQPID()
#send message to QPID
print ("sending %s with a header of %s"%(inPath,header))
conn.sendmessage(inPath,header)
#close QPID connection
conn.close()