Thanks, everyone, Especially Douglas6 for the code! Here is the fixed part of the code by the way: if status=="YES": print status m = re.match('.*t=(-?[0-9\.]+)', lines[1]) tempstr= m.group(1) print tempstr tempvalue=float(tempstr)/1000 print tempvalue return tempvalue
Hi, I'm trying to follow this tutorial: http://raspberrywebserver.com/cgiscripting/rpi-temperature-logger/building-an-sqlite-temperature-logger.html However, there is a problem: whenever a temperature goes below -10 degrees the minus disappears and it looks like if it it's a positive temperature. ht...