D-Link IP Cameras for Home > DCS-2330L

Reboot IP Camera via Siri (Apple HomeKit & Homebridge & bash script)

(1/1)

S0NIC:
Sometimes the video transmission stops, even though the camera is on and can still be managed through the web interface. In such situations, only a restart helps. Since I have the camera in Apple HomeKit integrated via Homebridge, I do the restart using Siri with the following command as a switch:


--- Code: ---curl http://USERNAME:PASSWORD@CAM-IP-ADDRESS/vb.htm?setallreboot=1
--- End code ---

The Homebridge instructions can be found here:

* Homebridge: https://www.youtube.com/watch?v=g4Smfn1Q5Qc
* Plugin: https://www.npmjs.com/package/homebridge-automation-switches


--- Code: ---       {
            "platform": "cmdSwitch2",
            "name": "CMD",
            "switches": [
                {
                    "name": "Reboot_DCS-2330L",
                    "on_cmd": "curl http://USERNAME:PASSWORD@CAM-IP-ADDRESS/vb.htm?setallreboot=1",
                    "off_cmd": "exit 1",
                    "state_cmd": "exit 1",
                    "polling": true,
                    "intervall": 1
                }
            ]
        },

--- End code ---


--- Quote ---Type   DCS-2330L
Firmware Version   1.14.03
Hardware Version   A
--- End quote ---

I have used Fiddler to find the right URL.
https://en.wikipedia.org/wiki/Fiddler_(software)

Navigation

[0] Message Index

Go to full version