fireandforget version
This commit is contained in:
parent
4faf53168d
commit
93cbcfefd5
24 changed files with 565 additions and 1840 deletions
25
main.py
25
main.py
|
|
@ -36,35 +36,32 @@ print("")
|
|||
import redis
|
||||
import os
|
||||
ljpath = r'%s' % os.getcwd().replace('\\','/')
|
||||
|
||||
|
||||
import sys
|
||||
|
||||
#sys.path.append('libs3/')
|
||||
|
||||
from libs3 import gstt, settings
|
||||
gstt.ljpath= ljpath
|
||||
gstt.ljpath = ljpath
|
||||
|
||||
log.info("Reading " + gstt.ConfigName + " setup file...")
|
||||
settings.Read()
|
||||
|
||||
# Arguments may alter .conf file so import settings first then cli
|
||||
from libs3 import cli
|
||||
|
||||
settings.Write()
|
||||
|
||||
from multiprocessing import Process, set_start_method
|
||||
import random, ast
|
||||
|
||||
from libs3 import plugins
|
||||
|
||||
|
||||
#from libs3 import lasytracer as tracer
|
||||
from libs3 import tracer3 as tracer
|
||||
|
||||
|
||||
from libs3 import homographyp, commands, font1
|
||||
|
||||
#import subprocess
|
||||
|
||||
import os
|
||||
#import midi
|
||||
|
||||
from libs3 import OSC3
|
||||
from websocket_server import WebsocketServer
|
||||
#import socket
|
||||
|
|
@ -264,14 +261,16 @@ def osc_thread():
|
|||
|
||||
#print("Sending simu frame from",'/pl/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser))
|
||||
#print(r.get('/pl/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser)))
|
||||
sendWSall("/simul" +" "+ str(r.get('/pl/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser)).decode('ascii')))
|
||||
sendWSall("/simul" +" "+ str(r.get('/po/'+str(gstt.SceneNumber)+'/'+str(gstt.Laser)).decode('ascii')))
|
||||
if random.randint(0,100)>95:
|
||||
plugins.sendbroadcast()
|
||||
|
||||
|
||||
except Exception as e:
|
||||
import sys, traceback
|
||||
print('\n---------------------')
|
||||
print('Exception: %s' % e)
|
||||
print('- - - - - - - - - - -')
|
||||
print('\n--------------------------')
|
||||
print('OSC Thread Exception: %s' % e)
|
||||
print('- - - - - - - - - - - - - - ')
|
||||
traceback.print_tb(sys.exc_info()[2])
|
||||
print("\n")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue