changed temperature from int to float, since the arduino is sending now floats, fixed the typo

This commit is contained in:
Lucas Pleß 2014-11-19 03:18:26 +01:00
parent e116bb2447
commit 33b8ee0ec7
1 changed files with 3 additions and 3 deletions

View File

@ -79,14 +79,14 @@ def main():
try:
temp = int(temp)
temp = float(temp)
except ValueError, msg:
logger.exception(msg)
continue
try:
osc_message = OSCMessage("/%s/temperatur" % actor)
osc_message.appendTypedArg(temp, "i")
osc_message = OSCMessage("/%s/temperature" % actor)
osc_message.appendTypedArg(temp, "f")
platform.osc_sock.sendto(osc_message.encode_osc(), platform.remote)
except socket.error, msg:
logger.exception(msg)