lib/functions.py
def thermalPrint(self):
        "Prints the pwd on the thermal printer at the specified ip"
        if self.printerIp:
            p = Network(self.printerIp)
            p.set(align='center', text_type='bold', width=2, height=2)
            p.text("fZone Guest WiFI\n\n")
            p.set()
            p.text('\tDate:\t' + datetime.datetime.now().strftime("%I:%M%p on %B %d, %Y") + '\n')
            p.text('\tSSID:\t' + self.radioSSID + '\n')
            p.text('\tPwd:\t' + self.pwd + '\n')
            p.text('\n')
            p.set(align='center')
            p.qr('WIFI:T:WPA;S:' + self.radioSSID +';P:' + self.pwd + ';;', size=6, native=False)
            p.text('Scan me to login!')
            p.cut()
        pass
Prints the pwd on the thermal printer at the specified ip
Prints the pwd on the thermal printer at the specified ip
Prints the pwd on the thermal printer at the specified ip
def thermalPrint(self):
        if self.printerIp:
            p = Network(self.printerIp)
            p.set(align='center', text_type='bold', width=2, height=2)
            p.text("fZone Guest WiFI\n\n")
            p.set()
            p.text('\tDate:\t' + datetime.datetime.now().strftime("%I:%M%p on %B %d, %Y") + '\n')
            p.text('\tSSID:\t' + self.radioSSID + '\n')
            p.text('\tPwd:\t' + self.pwd + '\n')
            p.text('\n')
            p.set(align='center')
            p.qr('WIFI:T:WPA;S:' + self.radioSSID +';P:' + self.pwd + ';;', size=6, native=False)
            p.text('Scan me to login!')
            p.cut()
        pass
def thermalPrint ( self ) : if self . printerIp : p = Network ( self . printerIp ) p . set ( align = 'center' , text_type = 'bold' , width = 2 , height = 2 ) p . text ( "fZone Guest WiFI\n\n" ) p . set ( ) p . text ( '\tDate:\t' + datetime . datetime . now ( ) . strftime ( "%I:%M%p on %B %d, %Y" ) + '\n' ) p . text ( '\tSSID:\t' + self . radioSSID + '\n' ) p . text ( '\tPwd:\t' + self . pwd + '\n' ) p . text ( '\n' ) p . set ( align = 'center' ) p . qr ( 'WIFI:T:WPA;S:' + self . radioSSID + ';P:' + self . pwd + ';;' , size = 6 , native = False ) p . text ( 'Scan me to login!' ) p . cut ( ) pass
Prints the pwd on the thermal printer at the specified ip
Prints the pwd on the thermal printer at the specified ip
"Prints the pwd on the thermal printer at the specified ip"
self