#import logging
#logging.getLogger('socketIO-client').setLevel(logging.DEBUG)
#logging.basicConfig()

from socketIO_client import SocketIO, LoggingNamespace
import time

temp = 0

def on_connect():
    print('connect')

def on_disconnect():
    print('disconnect')

def on_reconnect():
    print('reconnect')

def on_python(args):
    print(args)

print("wtf")
socketIO = SocketIO('http://38.88.74.87', 9000, LoggingNamespace)
socketIO.on('connect', on_connect)
print("wtf")
socketIO.on('disconnect', on_disconnect)
socketIO.on('reconnect', on_reconnect)

# Listen
socketIO.on('tempFromServer', on_python)

while True:
    socketIO.emit('tempFromPi', 'hgjh')
    socketIO.wait(seconds=1)

2d31607c2c461c7536b5fb1ef6e8ea9368b87b92
<mask token>


def on_connect():
    print('connect')


def on_disconnect():
    print('disconnect')


<mask token>

<mask token>


def on_connect():
    print('connect')


def on_disconnect():
    print('disconnect')


def on_reconnect():
    print('reconnect')


def on_python(args):
    print(args)


<mask token>

<mask token>
temp = 0


def on_connect():
    print('connect')


def on_disconnect():
    print('disconnect')


def on_reconnect():
    print('reconnect')


def on_python(args):
    print(args)


print('wtf')
socketIO = SocketIO('http://38.88.74.87', 9000, LoggingNamespace)
socketIO.on('connect', on_connect)
print('wtf')
socketIO.on('disconnect', on_disconnect)
socketIO.on('reconnect', on_reconnect)
socketIO.on('tempFromServer', on_python)
while True:
    socketIO.emit('tempFromPi', 'hgjh')
    socketIO.wait(seconds=1)

from socketIO_client import SocketIO, LoggingNamespace
import time
temp = 0


def on_connect():
    print('connect')


def on_disconnect():
    print('disconnect')


def on_reconnect():
    print('reconnect')


def on_python(args):
    print(args)


print('wtf')
socketIO = SocketIO('http://38.88.74.87', 9000, LoggingNamespace)
socketIO.on('connect', on_connect)
print('wtf')
socketIO.on('disconnect', on_disconnect)
socketIO.on('reconnect', on_reconnect)
socketIO.on('tempFromServer', on_python)
while True:
    socketIO.emit('tempFromPi', 'hgjh')
    socketIO.wait(seconds=1)

#import logging
#logging.getLogger('socketIO-client').setLevel(logging.DEBUG)
#logging.basicConfig()

from socketIO_client import SocketIO, LoggingNamespace
import time

temp = 0

def on_connect():
    print('connect')

def on_disconnect():
    print('disconnect')

def on_reconnect():
    print('reconnect')

def on_python(args):
    print(args)

print("wtf")
socketIO = SocketIO('http://38.88.74.87', 9000, LoggingNamespace)
socketIO.on('connect', on_connect)
print("wtf")
socketIO.on('disconnect', on_disconnect)
socketIO.on('reconnect', on_reconnect)

# Listen
socketIO.on('tempFromServer', on_python)

while True:
    socketIO.emit('tempFromPi', 'hgjh')
    socketIO.wait(seconds=1)
