Add mosaic/satrad check for UDP commands

This commit is contained in:
April 2022-11-02 22:47:23 -07:00
parent a282b6c3a7
commit 6788cd7f1b
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E

View File

@ -93,6 +93,10 @@ async def collect(radarType: str):
commands = []
for i in range(0, len(frames)):
commands.append( '<MSG><Exec workRequest="storePriorityImage(FileExtension=.tiff,File={0},Location=US,ImageType=Radar,IssueTime=' + getTime(ts[i]) + ')"/></MSG>' )
if radarType == "radarmosaic":
commands.append( '<MSG><Exec workRequest="storePriorityImage(FileExtension=.tiff,File={0},Location=US,ImageType=Radar,IssueTime=' + getTime(ts[i]) + ')"/></MSG>' )
if radarType == "satrad":
commands.append( '<MSG><Exec workRequest="storePriorityImage(FileExtension=.tiff,File={0},Location=US,ImageType=SatRad,IssueTime=' + getTime(ts[i]) + ')"/></MSG>' )
bit.sendFile([frames[i]], [commands[i]], 1, 0)