ccil-kbw / robot

mdroid: Masjid's droid
https://ccil-kbw.github.io/
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Add PTZ Camera Frame Automation #8

Open serafdev opened 1 year ago

serafdev commented 1 year ago

Request as curl of the ptz camera:

curl 'http://192.168.1.253/cgi-bin/ptzctrl.cgi?ptzcmd&poscall&11' \
  -H 'Content-Type: application/x-www-form-urlencoded;charset=utf-8' \
  -H 'Cookie: CGISESSION=zeFdsRYOsksdEcWymqvAmVMJeQQqURuj' \
  --compressed \
  --insecure

Here we want to detect the Frame and set it properly based on the Event:

11: Chair under Imam for Khutbah Translations
12: Zoomed Out Imam + Iqama
13: Imam Khutbah
14: Zoomed Out everything

E.g: Khutbah Translation Time: 11, Khutbah Time: 13

serafdev commented 4 months ago

After a year in production doing the framing manually, the first version can be easy like this:

Everyday:

Friday:

It does not look like the PTZ is secured so anyone can troll when connecting to the network, so hopefully before anyone reads this I will isolate the PTZ in its own subnet 🤣 🤣 🤣 🤣

Also the above is a fake IP, it's not even the correct one 🥵 OR IS IT?