forked from protonphoton/LJ
Missing files
This commit is contained in:
parent
a89cf3d414
commit
b7851f518d
2
LJ.conf
2
LJ.conf
@ -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
2873
clitools/generators/OSC3.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -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:
|
||||||
|
|
||||||
|
8
main.py
8
main.py
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user