@@ -76,10 +76,7 @@ class LCD4linuxConfigweb(resource.Resource):
7676
7777 def __init__ (self ):
7878 self .StatusTimer = eTimer ()
79- if DPKG :
80- self .StatusTimer_conn = self .StatusTimer .timeout .connect (self .resetWeb )
81- else :
82- self .StatusTimer .callback .append (self .resetWeb )
79+ self .StatusTimer .callback .append (self .resetWeb )
8380 self .CurrentMode = ("-" , "-" )
8481
8582 def resetWeb (self ):
@@ -328,7 +325,6 @@ def action(self, req):
328325 obja = eval (a )
329326 objb = eval (b )
330327 objb .value = obja .value
331-
332328 elif ".Standby" in _a :
333329 b = _a .replace (".Standby" , "." )
334330 if (" " + b ) in list (zip (* L2 ))[2 ]:
@@ -428,7 +424,8 @@ def action(self, req):
428424 if Cfritz :
429425 rmFile (PICfritz )
430426 if Cwetter :
431- resetWetter (None )
427+ # resetWetter(None) # action after changing weather parameters
428+ pass
432429 if Cpicon :
433430 if len (LCD4linux .PiconCache .value ) > 2 :
434431 rmFiles (join (LCD4linux .PiconCache .value , "*.png" ))
@@ -508,18 +505,14 @@ def action(self, req):
508505 html += "<input type=\" image\" name=\" save\" value=\" klick\" src=\" /lcd4linux/data/WEBsave.png\" height=\" 40\" title=\" %s\" class=\" style1\" >\n " % _l (_ ("Save Config" ))
509506 html += "</form>\n "
510507 html += "<form method=\" post\" ><font color=\" #FFFFFF\" >%s</font>\n " % _l (_ ("Screen" ))
511-
512508 html += "<input type=\" hidden\" name=\" cmd\" value=\" \" >\n "
513509 for i in range (1 , 10 ):
514510 html += "<input type=\" button\" value=\" %d\" style=\" width:15px; text-align:center; font-size:8pt%s\" onclick=\" this.form.cmd.value = 'Screen%d'; this.form.submit();\" >\n " % (i , AktiveScreen (str (i )), i )
515-
516511 Aktiv = "checked" if getSaveEventListChanged () else ""
517512 html += "<input type=\" hidden\" name=\" hold\" value=\" %s\" >" % ("unchecked" )
518513 html += "<input type=\" checkbox\" title=\" %s\" name=\" hold\" value=\" %s\" onclick=\" this.form.cmd.value = 'hold'; this.form.submit();\" %s>" % (_l (_ ("stop Screencycle" )), "checked" , Aktiv )
519-
520514 html += "</form>\n "
521515 html += "</td></tr></table>\n "
522-
523516 html += "<form method=\" get\" >"
524517 html += "<fieldset style=\" width:auto\" name=\" Mode1\" >"
525518 html += "<legend style=\" color: #FFCC00\" >%s </legend>\n " % _l (_ ("Mode" ))
@@ -532,7 +525,6 @@ def action(self, req):
532525 if str (LCD4linux .Popup .value ) != "0" :
533526 html += "<input id=\" r5\" name=\" Mode\" type=\" radio\" value=\" 5\" %s onclick=\" this.form.submit();\" ><label %s for=\" r5\" >%s </label>\n " % (AktiveMode ("5" , "Popup-Text" ))
534527 html += "</fieldset></form>\n "
535-
536528 if Mode != "5" :
537529 if Mode == "1" :
538530 L = L1
@@ -595,9 +587,7 @@ def action(self, req):
595587 for LL in L :
596588 Conf = LL [2 ].strip ()
597589 ConfObj = eval (Conf )
598-
599590 if (Conf .startswith (Element ) and (LL [3 ] == AktCode or AktCode == 0 )) or (Element == "other" and LL [3 ] == 0 ):
600-
601591 if Mode in "2" :
602592 if "." in Conf :
603593 b = Conf .replace ("." , ".MP" )
0 commit comments