changed temperature from int to float, since the arduino is sending now floats, fixed the typo
This commit is contained in:
parent
e116bb2447
commit
33b8ee0ec7
|
@ -79,14 +79,14 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
temp = int(temp)
|
temp = float(temp)
|
||||||
except ValueError, msg:
|
except ValueError, msg:
|
||||||
logger.exception(msg)
|
logger.exception(msg)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
osc_message = OSCMessage("/%s/temperatur" % actor)
|
osc_message = OSCMessage("/%s/temperature" % actor)
|
||||||
osc_message.appendTypedArg(temp, "i")
|
osc_message.appendTypedArg(temp, "f")
|
||||||
platform.osc_sock.sendto(osc_message.encode_osc(), platform.remote)
|
platform.osc_sock.sendto(osc_message.encode_osc(), platform.remote)
|
||||||
except socket.error, msg:
|
except socket.error, msg:
|
||||||
logger.exception(msg)
|
logger.exception(msg)
|
||||||
|
|
Loading…
Reference in New Issue