Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- div.Out {
- position: fixed;
- top: 45;
- left: 510;
- width: 300px;
- font: bold 65px Lora;
- color: white;
- }
- div.In {
- position: fixed;
- top: 214;
- left: 127;
- width: 400px;
- font: bold 108px Lora;
- color: rgb(0,44,255);
- with open("/usr/lib/cgi-bin/index.txt","r") as f:
- x = f.read()
- print(x)
- print('<div class="Out">')
- print('{0:5.1f}'.format(Tout), ClassValues[0][LineValue[0]])
- print(</div)
- print('<div class="In">')
- if LineValue[0] == 0:
- Temperature = float(subprocess.check_output(["/usr/local/sbin/bme280", "-C"])) + COffset # Print Temperature in degrees Celsius
- print('{0:5.1f}'.format(Temperature), ClassValues[0][0])
- else:
- Temperature = float(subprocess.check_output(["/usr/local/sbin/bme280", "-F"])) + FOffset # Print Temperature in degrees Farenheight
- print(Temperature, ClassValues[0][1])
- print('</div>')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement