mirror of
https://github.com/openplotter/openplotter-maiana.git
synced 2025-05-16 07:00:17 -07:00
fix notifications
This commit is contained in:
parent
d1775dbdf9
commit
03f3ce2fa0
@ -74,7 +74,7 @@ def main():
|
|||||||
if noiseValue > 64:
|
if noiseValue > 64:
|
||||||
now = datetime.datetime.utcnow()
|
now = datetime.datetime.utcnow()
|
||||||
now = now.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
|
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:
|
else:
|
||||||
SKdata.update({"notifications.MAIANA.channel"+data3[1]+".noiseFloor":None})
|
SKdata.update({"notifications.MAIANA.channel"+data3[1]+".noiseFloor":None})
|
||||||
except: pass
|
except: pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user