bitfocus / companion-module-etc-paradigm

MIT License
0 stars 1 forks source link

Unable to Connect to Paradigm Core #3

Open spenjer1 opened 1 year ago

spenjer1 commented 1 year ago

I am running Companion using two NIC's, the second of which is connected to an airgapped ETC Network to be able to connect to the Paradigm Processor. When I try to connect, I get a series of Network errors: Network error: Error trying to send request: http://XXX.XXX.XXX.XXX/get/system or /get/macros or /get/presets. The module looks like it's trying to connect to the core, but is not talking to it properly.

The Paradigm system is also controlled by Crestron and touchpanels at the venue, so I know there is network control functionality enabled within Paradigm.

I realize in the notes that the UDP Serial connection has not been configured in the module yet. Should I be trying to connect to a LightDesigner instance instead of the Core for this module to work?

image

zerbzman commented 1 year ago

Hey, the air-gapped network shouldn't be an issue. I tested this with a similar setup. The ip address setup in the module just needs to be the Paradigm address. The default that ETC sets up is 10.101.10.101, I believe. If that is already correct, a good way to test is to type that address into a browser on that computer and try to access the paradigm web page. For example, http://10.101.10.101.

If that doesn't work then either the computer can't see Paradigm or the Paradigm IP address isn't correct.

spenjer1 commented 1 year ago

The core has the static IP address of 192.168.15.20 and I'm able to get to the webpage from the machine that is running companion. image The Companion Paradigm plugin is definitely seeing the webserver and trying to connect, because when I put an invalid IP address into the IP field, I just get a "Disconnected" error, so it's recognizing something, but unable to access the /get/[command] pages from the system. image Any other ideas of what may be going on?

zerbzman commented 1 year ago

Thanks so much for the screenshots. By the look of the url, this seems to be a different version of Paradigm than what I built for. Would I be able to remote in to this computer during a downtime and see how this version works?

spenjer1 commented 1 year ago

Unfortunately remote login is not an available option for this integration. If you would like to DM me a list of what you would be looking for from the admin pages, specific URL's, settings, UDP calls, etc from the Paradigm server, I'd be glad to try to provide you with as much information as I'm able.

zerbzman commented 1 year ago

No worries, that's totally fine. Here are instructions to get most, if not all, the information for basic support needed in Chrome. I used Chatgpt to generate most of this list so I apologize for the basic user terminology in some places.

  1. Go to the URL of the paradigm.
  2. Once the website has loaded, right-click anywhere on the page and select "Inspect" from the context menu. This will open the Chrome Developer Tools.
  3. In the Developer Tools panel, you should see several tabs or panels at the top, such as Elements, Console, Sources, Network, etc. Look for the "Network" tab and click on it.
  4. Now, you should see a toolbar within the Network tab, which usually contains options like "All," "XHR," "JS," etc. Click on the "Record" button (a circle icon) if it's not already recording to start recording network activity. It should turn red to indicate that recording has started.
  5. After clicking the "Record" button, reload the page.
  6. Once reloaded, navigate to the website's menu and start clicking on each menu item one by one.
  7. Once you have clicked on all the menu items or completed your desired interactions, return to the Chrome Developer Tools panel.
  8. Either Right-click anywhere within the Network tab and choose "Save as HAR with Content" to save the recorded network activity as a HAR file or select the download icon on the right on the top bar.
  9. If you could send it to me at my GitHub username @gmail.com that would be great. It may or may not be a relatively big file that might not fit in an email. However you would like to get it to me is fine.

Thanks!

Davis-oss commented 1 year ago

Any resolution to the issue? I am having the same issue, running 4.2.4.9.0.1223 firmware. It’s a Paradigm DRd. Issue: Error trying to send request: http://[ipadress]/get/system

Computer can connect to etc paradigm web gui no problem.

Davis-oss commented 1 year ago

Looks Like you need to change the link request to http://[ipadress]/?_=/get/system instead of http://[ipadress]/get/system

zerbzman commented 1 year ago

I haven't received any info yet but if you can follow the instructions above and send it over to my email that would be helpful as well!

zerbzman commented 1 year ago

Hey @spenjer1 or @Davis-oss, I haven't received any emails from the instructions above. Just wanted to check in and see if there was anything that I somehow missed. The HAR is super helpful in letting me see all the ways that the system talks to make sure that the code works. Thanks

Davis-oss commented 1 year ago

Something that would make it super easy for me is if you sent me a YouTube link of you showing me the steps on how to obtain what you are asking for!

I’m more nervous on security and if this will give you access to something I don’t want you to, as well as not doing it right if I did send it to you.

On Mon, Aug 14, 2023 at 9:40 AM Brent Zerbe @.***> wrote:

Hey @spenjer1 https://github.com/spenjer1 or @Davis-oss https://github.com/Davis-oss, I haven't received any emails from the instructions above. Just wanted to check in and see if there was anything that I somehow missed. The HAR is super helpful in letting me see all the ways that the system talks to make sure that the code works. Thanks

— Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-etc-paradigm/issues/3#issuecomment-1677448751, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBMETPI73PK3EVDFE6VXCODXVI2EFANCNFSM6AAAAAAZ2HAN7M . You are receiving this because you were mentioned.Message ID: @.***>

-- — Sincerely, Davis J. Burk

spenjer1 commented 1 year ago

Hi @zerbzman

I haven't had an opportunity to try to get the information you requested. Let me work on collecting the relevant info this week.

zerbzman commented 1 year ago

Hey @Davis-oss,

Up to you. I can't think of much too revealing but that's your call.

Here is a link to some more instructions on how you can do this. https://community.snowflake.com/s/article/How-to-generate-a-HAR-file-for-Web-Interface-Troubleshooting

Between steps 3 and 4, please do the following:

3.1 - Once reloaded, navigate to the website's menu and start clicking on each page one by one. This should load all the info from Paradigm that I'll need to replicate it. 3.2 - Once you have clicked on all the menu items or completed your desired interactions, return to the Chrome Developer Tools panel.

Let me know if you have any other questions.

Thanks!

FultonLX commented 1 year ago

@zerbzman We're having the same issue. I did a HAR capture, I'll email that over.