]> vault307.fbx.one Git - garage_door_sensor.git/blobdiff - garageStatus.py
garageCheck runs on device to turn on/off LEDs (Myserver)
[garage_door_sensor.git] / garageStatus.py
index 265a49fc0e0b5e1d8ff58548a8c773ea34e60cc7..126490344150c5bacffba46db79065cbada19d98 100755 (executable)
@@ -29,7 +29,7 @@ def check():
         soup=BeautifulSoup((fp),features='html.parser')
     dstate=soup.find(id='dstate')
     lstate=soup.find(id='lstate')
-    fp.close()
+   # fp.close()
     if int(l)==0:
         lstate.string='OFF'
     if int(l)==1:
@@ -53,5 +53,5 @@ def check():
 while True:
     readLine()
     check()
-    print(d,dstate)
+#    print(d,l,dstate,lstate) #debug
     time.sleep(.5)