• November 01, 2024, 07:25:45 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Reboot IP Camera via Siri (Apple HomeKit & Homebridge & bash script)  (Read 17107 times)

S0NIC

  • Level 1 Member
  • *
  • Posts: 2

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: [Select]
curl http://USERNAME:PASSWORD@CAM-IP-ADDRESS/vb.htm?setallreboot=1
The Homebridge instructions can be found here:

Code: [Select]
       {
            "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
                }
            ]
        },

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

I have used Fiddler to find the right URL.
https://en.wikipedia.org/wiki/Fiddler_(software)
« Last Edit: March 05, 2018, 08:46:39 AM by GreenBay42 »
Logged