import zmq
import time
import sys
print sys.argv[1:]

# 1Wire bus sensor data publisher.
# ZeroMQ Context
context = zmq.Context()

sock_live = context.socket(zmq.PUB)
sock_live.connect("tcp://"+sys.argv[2])

while True:
    sensor = open("/sys/bus/w1/devices/"+sys.argv[1]+"/w1_slave")
    
    line = sensor.read().split("\n")[1]
    sensor.close()
    line = line[line.find('=')+1:]
    print(line)
    sock_live.send_multipart([sys.argv[1],'*',1,line])
    time.sleep(1)
@@ -459,17 +459,22 @@
 %5B1%5D,'*',
-1
+str(1)
 ,line%5D)%0D

Fix error where publisher was trying to send a int via send_multipart (now converts the int to a string).