@@ -76,10 +76,7 @@ class LCD4linuxConfigweb(resource.Resource):
76
76
77
77
def __init__ (self ):
78
78
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 )
83
80
self .CurrentMode = ("-" , "-" )
84
81
85
82
def resetWeb (self ):
@@ -328,7 +325,6 @@ def action(self, req):
328
325
obja = eval (a )
329
326
objb = eval (b )
330
327
objb .value = obja .value
331
-
332
328
elif ".Standby" in _a :
333
329
b = _a .replace (".Standby" , "." )
334
330
if (" " + b ) in list (zip (* L2 ))[2 ]:
@@ -428,7 +424,8 @@ def action(self, req):
428
424
if Cfritz :
429
425
rmFile (PICfritz )
430
426
if Cwetter :
431
- resetWetter (None )
427
+ # resetWetter(None) # action after changing weather parameters
428
+ pass
432
429
if Cpicon :
433
430
if len (LCD4linux .PiconCache .value ) > 2 :
434
431
rmFiles (join (LCD4linux .PiconCache .value , "*.png" ))
@@ -508,18 +505,14 @@ def action(self, req):
508
505
html += "<input type=\" image\" name=\" save\" value=\" klick\" src=\" /lcd4linux/data/WEBsave.png\" height=\" 40\" title=\" %s\" class=\" style1\" >\n " % _l (_ ("Save Config" ))
509
506
html += "</form>\n "
510
507
html += "<form method=\" post\" ><font color=\" #FFFFFF\" >%s</font>\n " % _l (_ ("Screen" ))
511
-
512
508
html += "<input type=\" hidden\" name=\" cmd\" value=\" \" >\n "
513
509
for i in range (1 , 10 ):
514
510
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
-
516
511
Aktiv = "checked" if getSaveEventListChanged () else ""
517
512
html += "<input type=\" hidden\" name=\" hold\" value=\" %s\" >" % ("unchecked" )
518
513
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
-
520
514
html += "</form>\n "
521
515
html += "</td></tr></table>\n "
522
-
523
516
html += "<form method=\" get\" >"
524
517
html += "<fieldset style=\" width:auto\" name=\" Mode1\" >"
525
518
html += "<legend style=\" color: #FFCC00\" >%s </legend>\n " % _l (_ ("Mode" ))
@@ -532,7 +525,6 @@ def action(self, req):
532
525
if str (LCD4linux .Popup .value ) != "0" :
533
526
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" ))
534
527
html += "</fieldset></form>\n "
535
-
536
528
if Mode != "5" :
537
529
if Mode == "1" :
538
530
L = L1
@@ -595,9 +587,7 @@ def action(self, req):
595
587
for LL in L :
596
588
Conf = LL [2 ].strip ()
597
589
ConfObj = eval (Conf )
598
-
599
590
if (Conf .startswith (Element ) and (LL [3 ] == AktCode or AktCode == 0 )) or (Element == "other" and LL [3 ] == 0 ):
600
-
601
591
if Mode in "2" :
602
592
if "." in Conf :
603
593
b = Conf .replace ("." , ".MP" )
0 commit comments