-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
23 lines
485 B
Python
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()
|
|
|