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: 
 \n \
    "+str(Summary)+"
 \n"
    html.write(str(tableSummary))
def myUL():
    html.write(" \n")
def htmlSpanBox(Table):
    tablespan = "- "+str(Table)+" 
 \n"
    html.write(tablespan)
def htmlSpanBox1():
    tablespan = "-  Table  
 \n"
    html.write(tablespan)
def htmltable(Heading,data,image1,image2,image3,summary):
    # htmlBreak(1)
    htmlSpanBox(Heading)
    htmlTableSummary(str(summary)+"\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 = """