gtxaspec / wz_mini_hacks

wz camera mods... make your camera better.
1.28k stars 107 forks source link

Floodlight Cam Can't Access Floodlight Controls #794

Open tmsteinhardt opened 2 days ago

tmsteinhardt commented 2 days ago

I have the custom floodlight kernel on the floodlight cam but I can't seem to edit the floodlight controls as they are all locked out from being edited. I can set the "REMOTE SPOTLIGHT" option to true but have no option to set the REMOTE_SPOTLIGHT_HOST="0.0.0.0". The line/option doesn't even appear in the list within the web UI. Additionally, is SSH access required to run the following commands per the instructions in the "?" pop out for the REMOTE_SPOTLIGHT line on the web UI, or is there another way to run those commands?

socat TCP4-LISTEN:9000,reuseaddr,fork /dev/ttyUSB0,raw,echo=0 Change /dev/ttyUSB0 to whatever path your spotlight enumerated to if necessary. The camera will now be able to control the spotlight.

tmsteinhardt commented 2 days ago

I pulled the SD card on the cam and added the SSH public key and added the REMOTE_SPOTLIGHT_HOST="0.0.0.0" line to the wz_mini.conf file. The REMOTE_SPOTLIGHT_HOST="0.0.0.0" line now shows up in WZ Mini Config page in the web UI. When I try to SSH into the camera both from powershell and PUTTY to run the "socat TCP4-LISTEN:9000,reuseaddr,fork /dev/ttyUSB0,raw,echo=0" command I get "NO SUPPORTED AUTHENTICATION METHODS AVAILABLE (SERVER SENT: PUBLICKEY). Any help with possible errors that I made when pasting the public key to the camera or error when attempting to SSH into the camera? What username is expected when trying to SSH into the camera? The username from the computer that created the SSH key or the standard "admin" username of the camera? Neither seem to work. Note when I created the SSH Key I left the passphrase blank.

tmsteinhardt commented 2 days ago

Turns out I didn't fully understand the SSH Keys. I had created multiple keys with unique names for each camera so the files weren't named is_rsa. After renaming the key files I can now access the camera through SSH. After running the socat TCP4-LISTEN:9000,reuseaddr,fork /dev/ttyUSB0,raw,echo=0 command I get the following output:

socat[21558] E bind(5, {AF=2 0.0.0.0:9000}, 16): Address already in use

I rebooted the camera but nothing seems to be different and I still don't see any ability to change the flood light settings. Do I need to do anything with what came from the output of the command?