Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i execute your script? #4

Open
martinmmi opened this issue May 9, 2023 · 7 comments
Open

How can i execute your script? #4

martinmmi opened this issue May 9, 2023 · 7 comments

Comments

@martinmmi
Copy link

I installed node.js in version 20.1.0 (windows) and tried to install the tsl-umd-v5 packedge.

But i get this error:

njs

@NoahCallaway
Copy link
Owner

NoahCallaway commented May 9, 2023

Hi @martinmmi

Looks like you're trying to install it inside the node interactive shell.
If you're using windows, try running the command in powershell.

@martinmmi
Copy link
Author

Okay, i could installed it with the powershell. But how can i send know an umd-tsl message?

I tried

umd.sendTallyUDP('192.168.X.X', 8900, tally, true)

umd.sendTallyTCP('192.168.X.X', 9000, tally, false

in the node.js and the powershell, but nothing has happened.
error2

@martinmmi
Copy link
Author

martinmmi commented May 9, 2023

And is this script a tsl-umd server or a client? A server, or? Iam searching after a solution for a tsl-umd client.

I have allready finished hardware from https://www.rossvideo.com/ (Black Carbonite Solo) and i try to build a tsl-umd recipient with an raspberry pi for tsl-umd tallys.

@martinmmi
Copy link
Author

ross

@martinmmi
Copy link
Author

ross2

@martinmmi
Copy link
Author

But i dont know how i can start

@NoahCallaway
Copy link
Owner

Try this to send tally to Dashboard.

Run the following commands in PowerShell to create a script/project.

mkdir tally-test
cd tally-test
npm install tsl-umd-v5
New-Item index.js
explorer .

Now open the index.js file and add the following (replace <dashboard-pc-ip> with the IP address of your PC running dashboard)

const TSL5 = require('tsl-umd-v5')

// Replace this value with your Dashboard PC IP address
var ip = "<dashboard-pc-ip>"

var umd = new TSL5()
var port = 5001 

//Sending tallies
tally = {
    "screen": 0,
    "index": 1,
    "display": {
        "rh_tally": 1,
        "text_tally": 0,
        "lh_tally": 0,
        "brightness": 3,
        "text": "Test Tally"
    }
}


//Send UDP tally
console.log("Attempy Tally with sequence")
umd.sendTallyUDP(ip, port, tally, true)

//Send UDP Tally
console.log("Attempy Tally without sequence")
umd.sendTallyUDP(ip, port, tally, false)

Then back in PowerShell run the command with
node index.js
or
DEBUG=* node index.js

You may also need to open the firewall rules on your dashboard PC to accept traffic on port 5001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants