mirror of
https://github.com/ShaYmez/HBmonitor.git
synced 2024-11-21 15:41:52 -05:00
Update monitor.py
change TH colors in lastheard
This commit is contained in:
parent
415e677212
commit
bcaa4b4752
@ -81,7 +81,7 @@ BTABLE['BRIDGES'] = {}
|
||||
BRIDGES_RX = ''
|
||||
CONFIG_RX = ''
|
||||
LOGBUF = deque(100*[''], 100)
|
||||
RED = 'ff6347'
|
||||
RED = 'ff6600'
|
||||
BLACK = '000000'
|
||||
GREEN = '90EE90'
|
||||
GREEN2 = '008000'
|
||||
@ -556,7 +556,7 @@ def process_message(_bmessage):
|
||||
f.write("<br><fieldset style=\"border-radius: 8px; background-color:#e0e0e0e0; text-algin: lef; margin-left:15px;margin-right:15px;font-size:14px;border-top-left-radius: 10px; border-top-right-radius: 10px;border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;\">\n")
|
||||
f.write("<legend><b><font color=\"#000\"> .: Lastheard :. </font></b></legend>\n")
|
||||
f.write("<table style=\"width:100%; font: 10pt arial, sans-serif\">\n")
|
||||
f.write("<TR style=\" height: 32px;font: 10pt arial, sans-serif; background-color:#9dc209; color:black\"><TH>Date</TH><TH>Time</TH><TH>Slot</TH><TH>Callsign (DMR-Id)</TH><TH>Name</TH><TH>TG#</TH><TH>TG Name</TH><TH>Dur TX (s)</TH><TH>Source ID</TH><TH>System</TH></TR>\n")
|
||||
f.write("<TR style=\" height: 32px;font: 10pt arial, sans-serif; background-image: linear-gradient\x28to bottom right,#d0e98d, #4e6b00\x29; color:black\"><TH>Date</TH><TH>Time</TH><TH>Slot</TH><TH>Callsign (DMR-Id)</TH><TH>Name</TH><TH>TG#</TH><TH>TG Name</TH><TH>Dur TX (s)</TH><TH>Source ID</TH><TH>System</TH></TR>\n")
|
||||
with open(LOG_PATH+"lastheard.log", "r") as textfile:
|
||||
for row in islice(reversed(list(csv.reader(textfile))),100):
|
||||
duration=row[1]
|
||||
|
Loading…
Reference in New Issue
Block a user