SHARE
TWEET

Untitled

a guest Jun 18th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. div.Out {
  2.     position: fixed;
  3.     top: 45;
  4.     left: 510;
  5.     width: 300px;
  6.     font: bold 65px Lora;
  7.     color: white;
  8. }
  9. div.In {
  10.     position: fixed;
  11.     top: 214;
  12.     left: 127;
  13.     width: 400px;
  14.     font: bold 108px Lora;
  15.     color: rgb(0,44,255);
  16.      
  17. with open("/usr/lib/cgi-bin/index.txt","r") as f:
  18.     x = f.read()
  19.     print(x)
  20.  
  21. print('<div class="Out">')
  22. print('{0:5.1f}'.format(Tout), ClassValues[0][LineValue[0]])
  23. print(</div)
  24.  
  25. print('<div class="In">')
  26. if LineValue[0] == 0:
  27.     Temperature = float(subprocess.check_output(["/usr/local/sbin/bme280", "-C"])) + COffset # Print Temperature in degrees Celsius
  28.     print('{0:5.1f}'.format(Temperature), ClassValues[0][0])
  29. else:
  30.     Temperature = float(subprocess.check_output(["/usr/local/sbin/bme280", "-F"])) + FOffset # Print Temperature in degrees Farenheight
  31.     print(Temperature, ClassValues[0][1])
  32. print('</div>')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top