diff --git a/webinterface.py b/webinterface.py index 0d254fc..86d0ead 100644 --- a/webinterface.py +++ b/webinterface.py @@ -123,6 +123,17 @@ class XMLstatus(object): def index(self): #handle connect push, then reload page txt='\n\n' + state="Offline" + if self.statuscheck or self.p.online: + state="Idle" + if self.sdprinting: + state="SDPrinting" + if self.p.printing: + state="Printing" + if self.paused: + state="Paused" + + txt=txt+''+state+'\n' txt=txt+''+str(gPronterPtr.filename)+'\n' txt=txt+''+str(gPronterPtr.status.GetStatusText())+'\n' try: