mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-15 02:31:05 -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 = []
|
commands = []
|
||||||
for i in range(0, len(frames)):
|
for i in range(0, len(frames)):
|
||||||
|
if radarType == "radarmosaic":
|
||||||
commands.append( '<MSG><Exec workRequest="storePriorityImage(FileExtension=.tiff,File={0},Location=US,ImageType=Radar,IssueTime=' + getTime(ts[i]) + ')"/></MSG>' )
|
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)
|
bit.sendFile([frames[i]], [commands[i]], 1, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user