mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-11 17:00:23 -05:00
Add mosaic/satrad check for UDP commands
This commit is contained in:
parent
a282b6c3a7
commit
6788cd7f1b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user