bitfocus / companion-module-requests

Repository for tracking module requests
95 stars 10 forks source link

Axia Pathfinder #1412

Open coreyreynoldszero opened 4 months ago

coreyreynoldszero commented 4 months ago

The name of the device, hardware, or software you would like to control: Axia Pathfinder TCP Commands

What you would like to be able to make it do from Companion: I want to send TCP texts from Axia Pathfinder to Companion. When companion receives that text it will then tell a specified scene OBS to take. In simpler terms we have a radio station that has a webcam stream running through OBS. I have a camera as one scene and another scene that has the station name and the current artist and song that's playing. We use Axia consoles which is based on LWIP (Livewire). Pathfinder is a service that has logic flows. We control a lot of things at the station using Pathfinder. With those logic flows I can make it to when a a DJ turns their mic on a UDP/TCP message is sent to any device as long as I know their IP address and a port number.

The TCP/UDP service in Companion seems to only be capable of sending, not receiving. In Pathfinder the service that sends is called a TCP Client, and the one that receives is called a TCP Watcher. With the watcher I can load in text streams for it to watch. So if it got a text that says MIC-ON I can tell the logic to go do something like turn an on air light on when it get's that text. And when it get's a MIC-OFF text it would tell the light to turn off.

It's possible this service already exists and I'm not using it right but I can't find any resources that help with this. It would be amazing if I could get this to work.

Thanks!

Direct links or attachments to the ethernet control protocol or API: Pathfinder Logic TCP Client Pathfinder If Then Statement

dnmeid commented 3 months ago

It seems you can send any UDP or TCP command from Pathfinder. Companion can listen and react to TCP commands. This is not done by the generic modules, but by the APIs in the core application. Please look at the documentation for information how the commands have to be formed to do some useful things.

Does that answer your request or is there any other API which Pathfinder may provide and which you want Companion to support?

coreyreynoldszero commented 3 months ago

Thank you Dorian, I feel like I’m getting closer to achieving what I’m trying to do. However, Companion doesn’t seem to be responding to my TCP commands. I’ve tried to copy the syntax the best I can understand but I have a feeling this is where it’s failing. Can you check my work and see if anything stands out that I’m missing? Thanks!

I’m sending a TCP string out of Pathfinder when the logic is True, and another string when the logic is false. [A screenshot of a computer program Description automatically generated]

Here's the text string: [A screenshot of a computer Description automatically generated]

And this is the device emulator sending the TCP string to the specified IP and Port Companion says to send to: [A screenshot of a computer Description automatically generated]

Here’s the directions and port number I’m getting from Companion: [A screenshot of a computer Description automatically generated]

This is the syntax I’m trying to copy in the Companion example: [A screenshot of a computer Description automatically generated]

And this is these are the buttons I’ve built that control OBS scenes. They work when I manually press them. But they do not change when I run the TCP command from Pathfinder. [A screenshot of a computer Description automatically generated]

From: Dorian Meid @.> Date: Sunday, March 31, 2024 at 2:11 PM To: bitfocus/companion-module-requests @.> Cc: Corey Reynolds @.>, Author @.> Subject: [EXTERNAL]Re: [bitfocus/companion-module-requests] Axia Pathfinder (Issue #1412)

It seems you can send any UDP or TCP command from Pathfinder. Companion can listen and react to TCP commands. This is not done by the generic modules, but by the APIs in the core application. Please look at the documentation for information how the commands have to be formed to do some useful things.

Does that answer your request or is there any other API which Pathfinder may provide and which you want Companion to support?

— Reply to this email directly, view it on GitHubhttps://github.com/bitfocus/companion-module-requests/issues/1412#issuecomment-2028880117, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BGQMJGKB3SJELJPFVV7PVCTY3BNVZAVCNFSM6AAAAABD5IRMFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYHA4DAMJRG4. You are receiving this because you authored the thread.Message ID: @.***> CAUTION: This email originated from outside EMF. Do NOT click links or open attachments unless you recognize the sender or know the content is safe.

coreyreynoldszero commented 2 months ago

Just an update on this. I did get this to work using UDP instead of TCP. Also, the longer I looked into it the more I realized that I needed to have my text string LOCATION 1/0/1 PRESS and not OSB SCENE 1/0/1 PRESS (obs scene was what I named the page).

Even with the correct syntax TCP would not work. UDP is acceptable in the situation we need it to work in but it’s still a mystery why Companion wasn’t reacting to the TCP commands.

Thanks.

From: Corey Reynolds @.> Date: Tuesday, April 2, 2024 at 12:53 PM To: bitfocus/companion-module-requests @.>, bitfocus/companion-module-requests @.> Cc: Author @.> Subject: Re: [EXTERNAL]Re: [bitfocus/companion-module-requests] Axia Pathfinder (Issue #1412) Thank you Dorian, I feel like I’m getting closer to achieving what I’m trying to do. However, Companion doesn’t seem to be responding to my TCP commands. I’ve tried to copy the syntax the best I can understand but I have a feeling this is where it’s failing. Can you check my work and see if anything stands out that I’m missing? Thanks!

I’m sending a TCP string out of Pathfinder when the logic is True, and another string when the logic is false. [A screenshot of a computer program Description automatically generated]

Here's the text string: [A screenshot of a computer Description automatically generated]

And this is the device emulator sending the TCP string to the specified IP and Port Companion says to send to: [A screenshot of a computer Description automatically generated]

Here’s the directions and port number I’m getting from Companion: [A screenshot of a computer Description automatically generated]

This is the syntax I’m trying to copy in the Companion example: [A screenshot of a computer Description automatically generated]

And this is these are the buttons I’ve built that control OBS scenes. They work when I manually press them. But they do not change when I run the TCP command from Pathfinder. [A screenshot of a computer Description automatically generated]

From: Dorian Meid @.> Date: Sunday, March 31, 2024 at 2:11 PM To: bitfocus/companion-module-requests @.> Cc: Corey Reynolds @.>, Author @.> Subject: [EXTERNAL]Re: [bitfocus/companion-module-requests] Axia Pathfinder (Issue #1412)

It seems you can send any UDP or TCP command from Pathfinder. Companion can listen and react to TCP commands. This is not done by the generic modules, but by the APIs in the core application. Please look at the documentation for information how the commands have to be formed to do some useful things.

Does that answer your request or is there any other API which Pathfinder may provide and which you want Companion to support?

— Reply to this email directly, view it on GitHubhttps://github.com/bitfocus/companion-module-requests/issues/1412#issuecomment-2028880117, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BGQMJGKB3SJELJPFVV7PVCTY3BNVZAVCNFSM6AAAAABD5IRMFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYHA4DAMJRG4. You are receiving this because you authored the thread.Message ID: @.***> CAUTION: This email originated from outside EMF. Do NOT click links or open attachments unless you recognize the sender or know the content is safe.