mirror of
https://github.com/openplotter/openplotter-maiana.git
synced 2025-05-15 22:50:13 -07:00
fix notifications
This commit is contained in:
parent
d1775dbdf9
commit
03f3ce2fa0
@ -74,7 +74,7 @@ def main():
|
||||
if noiseValue > 64:
|
||||
now = datetime.datetime.utcnow()
|
||||
now = now.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
|
||||
SKdata.update({"notifications.MAIANA.channel"+data3[1]+".noiseFloor":{"message":_("There may be electromagnetic interference near the MAIANA AIS antenna"),"state":"alert","method": ["visual", "sound"],"timestamp":now}})
|
||||
SKdata.update({"notifications.MAIANA.channel"+data3[1]+".noiseFloor":{"message":_("There may be electromagnetic interference near the MAIANA AIS antenna"),"state":"alert","method": ["visual"]}})
|
||||
else:
|
||||
SKdata.update({"notifications.MAIANA.channel"+data3[1]+".noiseFloor":None})
|
||||
except: pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user