mirror of
https://github.com/ShaYmez/HBMonv2.git
synced 2025-07-18 15:55:19 -04:00
updated LH code
This commit is contained in:
parent
c0f77cd5a3
commit
e198d65292
15
monitor.py
15
monitor.py
@ -788,12 +788,15 @@ def process_message(_bmessage):
|
|||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
durations = now - then
|
durations = now - then
|
||||||
duration_in_s = durations.total_seconds()
|
duration_in_s = durations.total_seconds()
|
||||||
if dur=="0" and row[3]=="START":
|
if dur=="0" and row[3]=="START" and duration_in_s < 260:
|
||||||
durtx='<td style=\"background:#f33; color:white;font-weight:bold;\">TX-ing</td>'
|
durtx='<td style=\"background:#f33; color:white;font-weight:bold;\">TX-ing</td>'
|
||||||
else:
|
else:
|
||||||
durtx="<td>"+str(int(float(duration.strip())))+"</td>"
|
if dur=="0":
|
||||||
if (row[3]=="START" and duration_in_s < 260) or (row[3]=="END"):
|
txdur="∞"
|
||||||
if row[10] not in my_list:
|
else:
|
||||||
|
txdur=str(int(float(duration.strip())))
|
||||||
|
durtx="<td>"+txdur+"</td>"
|
||||||
|
if row[10] not in my_list:
|
||||||
if row[11].strip().isdigit() or row[11] == "N0CALL" or row[11] == "NOCALL":
|
if row[11].strip().isdigit() or row[11] == "N0CALL" or row[11] == "NOCALL":
|
||||||
qrz = "<b><font color=#464646>"+row[11]+"</font></b>"
|
qrz = "<b><font color=#464646>"+row[11]+"</font></b>"
|
||||||
else:
|
else:
|
||||||
@ -807,8 +810,8 @@ def process_message(_bmessage):
|
|||||||
my_list.append(row[10])
|
my_list.append(row[10])
|
||||||
n += 1
|
n += 1
|
||||||
f.write(hline+"\n")
|
f.write(hline+"\n")
|
||||||
# n max number items in lastheard table
|
# n max number items in lastheard table
|
||||||
if n == 15:
|
if n == 15:
|
||||||
break
|
break
|
||||||
f.write("</table></fieldset><br>")
|
f.write("</table></fieldset><br>")
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user