Browse Source

add: jsbc FX3 OK

micha 1 day ago
parent
commit
34a36cb856
2 changed files with 4 additions and 0 deletions
  1. 3 0
      lib/jsbc.py
  2. 1 0
      tkgui/FX3.py

+ 3 - 0
lib/jsbc.py

@@ -57,6 +57,9 @@ def JSCB(x,sock=None):
                 if "FIXTURES" == msg["event"]:
                     fixlib.encoder(MAIN.FIXTURES.fixtures,str(fix_nr),attr,xval=val,xfade=0,xdelay=0)#,blind=0)
                     OK = 1
+                elif "FX3" == msg["event"]:
+                    cprint("FX3 OK",color="yellow")
+                    OK = 1
                 elif "CLEAR" == msg["event"]:
                     fixlib.clear(MAIN.FIXTURES.fixtures)
                     OK = 1

+ 1 - 0
tkgui/FX3.py

@@ -139,6 +139,7 @@ class tk_event_fx():
                 _fx3_jdata[ii][kk] = vv 
                        
             for i in _fx3_jdata: #info
+                i["event"] = "FX3"
                 print(i)
 
             msg=json.dumps(_fx3_jdata).encode("utf-8")