Missing files

This commit is contained in:
Sam 2020-10-11 11:48:53 +02:00
parent a89cf3d414
commit b7851f518d
4 changed files with 2889 additions and 6 deletions

View File

@ -1,6 +1,6 @@
[General] [General]
lasernumber = 1 lasernumber = 1
debug = 0 debug = 1
ljayserverip = 0.0.0.0 ljayserverip = 0.0.0.0
wwwip = 127.0.0.1 wwwip = 127.0.0.1
nozoscip = 127.0.0.1 nozoscip = 127.0.0.1

2873
clitools/generators/OSC3.py Normal file

File diff suppressed because it is too large Load Diff

View File

@ -451,12 +451,20 @@ class DAC(object):
#self.pl = ast.literal_eval(r.get(self.clientkey+str(self.mylaser)).decode('ascii')) #self.pl = ast.literal_eval(r.get(self.clientkey+str(self.mylaser)).decode('ascii'))
#print("Tracer : laser", self.mylaser, " order 0 : pl : ",len(self.pl)) #print("Tracer : laser", self.mylaser, " order 0 : pl : ",len(self.pl))
# si la clef est vide utiliser les points noirs ? -> syntax error -> black points.
try: try:
#newpl = ""
#newpl = r.get(self.clientkey+str(self.mylaser))
#self.pl = ast.literal_eval(newpl.decode('ascii'))
self.pl = ast.literal_eval(r.get(self.clientkey+str(self.mylaser)).decode('ascii')) self.pl = ast.literal_eval(r.get(self.clientkey+str(self.mylaser)).decode('ascii'))
except SyntaxError: except SyntaxError:
print("BAD POINTLIST on Tracer : laser", self.mylaser, " order 0 : pl : ", self.pl) print("BAD POINTLIST on Tracer : laser", self.mylaser, " order 0 : pl : ", self.pl)
self.pl = grid_points self.pl = black_points
#print("Tracer : laser", self.mylaser, " order 0 : pl : ",len(self.pl))
else: else:

View File

@ -141,15 +141,17 @@ oscserverIPout = oscserverIP
oscserverPORTout = 8001 oscserverPORTout = 8001
'''
# Nozoid OSC Client : to send OSC message to Nozoid inport 8003 # Nozoid OSC Client : to send OSC message to Nozoid inport 8003
NozoscIPout = nozoscIP NozoscIPout = nozoscIP
NozoscPORTout = plugins.Port("nozoid") NozoscPORTout = plugins.Port("nozoid")
'''
''''
# Planetarium OSC Client : to send OSC message to planetarium inport 8005 # Planetarium OSC Client : to send OSC message to planetarium inport 8005
planetIPout = nozoscIP planetIPout = nozoscIP
planetPORTout = plugins.Port("planet") planetPORTout = plugins.Port("planet")
'''
import socket import socket
@ -261,7 +263,7 @@ def osc_thread():
#print("Sending simu frame from",'/pl/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser)) #print("Sending simu frame from",'/pl/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser))
#print(r.get('/pl/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser))) #print(r.get('/pl/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser)))
sendWSall("/simul" +" "+ str(r.get('/po/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser)).decode('ascii'))) sendWSall("/simul" +" "+ str(r.get('/pl/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser)).decode('ascii')))
if random.randint(0,100)>95: if random.randint(0,100)>95:
plugins.sendbroadcast() plugins.sendbroadcast()