import datetime
import matplotlib.pyplot as plt
import base64
from io import BytesIO
html = open("wifi_diag.html", 'w')
def htmlstart():
start = """
WIFI Diag Report
About:
\
"+str(Summary)+"
\n"
html.write(str(tableSummary))
def myUL():
html.write("")
def htmlSpanBox(Table):
tablespan = "- "+str(Table)+"
"
html.write(tablespan)
def htmlSpanBox1():
tablespan = "- Table
"
html.write(tablespan)
def htmltable(Heading,data,image1,image2,image3):
# htmlBreak(1)
htmlSpanBox(Heading)
htmlTableSummary("This is table summary below Objective \n")
htmlSpanBox1()
html.write("- ")
html.write(str(data))
html.write("
")
htmltableimage(image1,image2,image3)
def htmltableimage(image1, image2, image3):
if image1 != "0":
imagePre = " \

html.write(image1)
imagepost = )
\
"
html.write(imagepost)
if image2 != "0":
imagePre = " \

html.write(image2)
imagepost = )
\
\n"
html.write(imagepost)
if image3 != "0":
imagePre = " \

html.write(image2)
imagepost = )
\
"
html.write(imagepost)
html.write("
")
def closemyUl():
html.write("
\n")
def htmlclose():
data = """