ArtGateOne / dot2apcmini

nodejs code to control dot2 software use Akai APC mini controller
10 stars 5 forks source link

looping connections #9

Open Nat-intosh opened 1 week ago

Nat-intosh commented 1 week ago

you will hate me for what i'm trying to do but

I duplicated one file to make it work with two APC Mini MK2, it works well but i see on the terminal that both are trying to connect again and again.

LIke it works very well i just don't know whether it's a problem or not

Anyway thank's for this program i use it all the time and i'm becoming a lighting programmer thank's to you {1C99942D-C88A-49C5-ABB9-3768AD15DE80}

ArtGateOne commented 1 week ago

I know this issue, and it has happened to me sometimes as well – I also use two controllers this way. I believe the problem lies with the dot2 server, which disconnects the previous connection when another user (with the same name) connects to the server.

While in MA2 adding another user is quite simple, luckily, it's also possible in dot2, but it has to be done via the command line (unfortunately, this operation needs to be repeated for each new show, as dot2 does not save these settings globally).

You need to do two things: add an additional user, for example, "apcmini," and set the password to "remote." The second thing is to modify the file you run, changing the login name from "remote" to "apcmini."

Here’s what you need to execute in the dot2 command line to add the user and set the password:

cd Users
Store NewUser apcmini
Assign 4 /Password = remote
cd..

Now open the copy of the code that connects as the second controller and find the line:

client.send('{"requestType":"login","username":"remote","password":"2c18e486683a3db1e645ad8523223b72","session":' + obj.session + ',"maxRequests":10}')

Change "username":"remote" to "username":"apcmini".