roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

Feature request: Send PTZ commands via MQTT #12

Closed fcsegalla closed 3 years ago

fcsegalla commented 3 years ago

This would be awesome

roleoroleo commented 3 years ago

Did you try http method?

fcsegalla commented 3 years ago

Yes, it worked fine, the problem with http method is that we have to deal with port forwarding in the client's router, with if can send PTZ commands and ask for a snapshot via MQTT we don't need to change the firewall at all

rt400 commented 3 years ago

i see the example in the wiki https://github.com/roleoroleo/sonoff-hack/wiki/Web-services-description#go-to-preset but the go to the preset didn't work. the ptz http work.

roleoroleo commented 3 years ago

@rt400 Check the updated wiki. There was an error.

rt400 commented 3 years ago

@roleoroleo not working i used with this url : http://192.168.1.101:8080/cgi-bin/preset.sh?action=go_preset&num=0&name=door and i get This site can’t be reached

roleoroleo commented 3 years ago

I verified in the archive and the file is present. Verified also in my cam and it's working.

rt400 commented 3 years ago

@roleoroleo sorry..worng IP