EliasKotlyar / Xiaomi-Dafang-Hacks

4.19k stars 1k forks source link

PTZ in iSpy #679

Closed sladaar closed 6 years ago

sladaar commented 6 years ago

Thank you all in advance for reading!

In iSpy, using the preset for the dafang hack (and obviously URLs are correct) PTZ won't work, and the camera log says: /var/log/lighttpd-error.log (mod_auth.c.525) password doesn't match

..even if it should be the correct one (i changed it from ismart12, which doesn't work either) in the "http password" field.

Any advice?

jmtatsch commented 6 years ago

Try https ports

sladaar commented 6 years ago

many thanks for the reply! I tried https port but still doesn't work, but... Sniffing with Wireshark i found that the request was: http://192.168.1.134/cgi-bin/action.cgi?cmd=motor_right&val=100 And i guess that is the problem, without any username and password given the camera won't move.

I will tweak the config in iSpy then, the problem must be there (i tried entering the credentials everywhere or simply using http://username:pwd@ip/ but doesn't work anyway, the video always works but the ptz never seems.).

Thanks anyway !

Update: Finally worked, it was simple and I actually thought i did that, but evidently i didn't.

In the PTZ use the https://cameraip/ as URL, then port obviously 443 and the apposite fields for the credentials. Just as simple as that!

TungstenE2 commented 6 years ago

can you post the full correct URL syntax?

sladaar commented 6 years ago

Sure!

My working iSpy PTZ configuration:

URL: https://192.168.1.134/ port: 443 channel: 0 username: root password: yourpassword

ortegafernando commented 6 years ago

thanks a lot, your solution works. I think that @jmtatsch could close this.