bitfocus / companion-module-requests

Repository for tracking module requests
100 stars 11 forks source link

Sanyo VCC-HD5400P PTZ Camera with HDMI #207

Open cc6007 opened 4 years ago

cc6007 commented 4 years ago

I am after a module for a cctv camera which has a hdmi live view out and can be used for live production. I cant seem to find any documentation which lists cgi commands but i have started tracking what they are for each function. Ive got PTZ preset position http commands: http://[IPADDRESS]/cgi-bin/opecmd.cgi?ope=11&execution=1 (last number being the preset) but i cant seem to have a user name and password to work with generic http requests.

Thanks

josephdadams commented 4 years ago

Do you have to log in to the web page of the device before you can fire commands? If so, it might be using session cookies for auth.

cc6007 commented 4 years ago

Yes, if i try to fire a command in a browser which has previously not been logged into the camera i get a prompt from the browser to enter user and password before the command will fire.

josephdadams commented 4 years ago

That sounds like simple http auth. Try formatting your command like this: http://username:password@[IPADDRESS]/cgi-bin/opecmd.cgi?ope=11&execution=1

cc6007 commented 4 years ago

That works a treat in a browser but i cant seem to get to work in generic http in companion. Ive tried with the user, password and ip in the base url but cant seem to get any buttons to work with post command.

josephdadams commented 4 years ago

If you’re typing it into the browser and pressing enter, it’s GET, not POST.

cc6007 commented 4 years ago

Yeah, ive just been doing some reading and using wireshark and found out its GET, still no luck with the generic http module though. Does it matter if i leave the base URL blank and just but the whole url into the button GET command?

josephdadams commented 4 years ago

Yes, you should be able to leave the base URL blank and put the whole URL into the action.

cc6007 commented 4 years ago

Im still struggling to get the user name and password to pass through with companion. When i inspect the traffic data with wireshark i get a 401 Unauthorised response, even when using http://username:password@[IPADDRESS]

josephdadams commented 4 years ago

Can you post some screenshots of the login process in the browser? If it's not simple HTTP auth, you won't be able to pass the login info along with a basic generic HTTP request. You would need a module specifically built to talk to your device. Does the device have any protocol documentation that you can provide?