import zmq
from random import randrange

context = zmq.Context()
socket = context.socket(zmq.PUB)

socket.bind("tcp://*:5555")


while True:
    zipcode = randrange(1, 100000)
    temperature = randrange(-80, 135)
    relhumidity = randrange(10, 60)

    socket.send_string(f"{zipcode} {temperature} {relhumidity}")
import zmq
from random import randrange

context = zmq.Context()
socket = context.socket(zmq.PUB)

socket.bind("tcp://*:5555")


while True:
    zipcode = randrange(1, 100000)
    temperature = randrange(-80, 135)
    relhumidity = randrange(10, 60)

    socket.send_string(f"{zipcode} {temperature} {relhumidity}")