Network bugfixs

This commit is contained in:
nrhck 2019-03-20 03:00:00 +01:00
parent eb5b9b25f2
commit 904f920a4d
10 changed files with 70 additions and 20 deletions

View file

@ -340,8 +340,9 @@ def Starfield(hori=0,verti=0):
lj3.DrawPL(3)
def OSCidiotia(address, value):
print("Pose bank idiotia got", address, "with value", value)
def OSCidiotia(address,value):
print("idiotia",address,value)
def OSCfield(address, value):
@ -401,6 +402,10 @@ anims =[[],[],[],[]]
color = lj3.rgb2int(255,255,255)
prepareIdiotIA()
#prepareSTARFIELD()

View file

@ -52,8 +52,8 @@ from osc4py3 import oscbuildparse
from osc4py3.oscmethod import *
redisIP = '127.0.0.1'
r = redis.StrictRedis(host=redisIP, port=6379, db=0)
#redisIP = '127.0.0.1'
#r = redis.StrictRedis(host=redisIP, port=6379, db=0)
ClientNumber = 0
@ -225,11 +225,12 @@ def rgb2int(r,g,b):
def Config(redisIP,client):
global ClientNumber
global ClientNumber, r
r = redis.StrictRedis(host=redisIP, port=6379, db=0)
ClientNumber = client
osc_udp_client(redisIP, 8002, "LJ 8002")
return r
def LjClient(client):