Announcement

Collapse
No announcement yet.

Feature request: restart camera

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Feature request: restart camera

    I suspect this would already be included if it were available via the API, but I'll ask anyway since I didn't find the answer in prior posts...

    Can Restart Camera be added as an event action?

    Thanks.
    -Wade

  • #2
    In BI, my POE cameras never go offline. It does happen with some of my cheaper wifi cameras. Unfortunately, a restart in BI doesn't actually work... Only a reboot. You can use a lamp module to do this but Unfortunately I haven't found a way to do this automatically when the camera goes offline.

    Comment


    • #3
      My camera that freezes regularly is an Amcrest IP8M-2493 PoE. Not high-end but not a cheapo either. I'm able to get it going again either by restart command from within Blue Iris so would be nice to be able to do this via HS3 event.

      Separately but related...when the camera freezes the BI PI device doesn't update with a value of 2 (not connected) or 9 (no signal) even though the video stream is stopped. Not sure why that is but apparently BI doesn't consider it to be in either of those states.
      -Wade

      Comment


      • #4
        From the Blue Iris help file Web Server section:

        /admin?camera=x&reset Reset camera x (short name)
        /admin?camera=x&reboot Reboot camera x (short name) (as supported)


        So setup a HS event and run this immediate script:

        Code:
        &hs.urlaction("http://BluIrsIP:81/admin?camera=NameofCamera&reset&user=username&pw=password", "GET", "", "")
        for my setup with BI server at 192.168.2.184:81 to reset my camera short named Drvway:

        Code:
        &hs.urlaction("http://192.168.2.184:81/admin?camera=Drvway&reset&user=*********&pw=*********", "GET", "", "")
        works with my Blue Iris user name and password filled in.

        Not sure but some cameras may support a reboot command as well. My Dahuas do not. The reset command does the same as a right click "restart Camera" in the BI gui.

        Comment


        • #5
          Originally posted by srodgers View Post
          From the Blue Iris help file Web Server section:

          /admin?camera=x&reset Reset camera x (short name)
          /admin?camera=x&reboot Reboot camera x (short name) (as supported)


          So setup a HS event and run this immediate script:

          Code:
          &hs.urlaction("http://BluIrsIP:81/admin?camera=NameofCamera&reset&user=username&pw=password", "GET", "", "")
          for my setup with BI server at 192.168.2.184:81 to reset my camera short named Drvway:

          Code:
          &hs.urlaction("http://192.168.2.184:81/admin?camera=Drvway&reset&user=*********&pw=*********", "GET", "", "")
          works with my Blue Iris user name and password filled in.

          Not sure but some cameras may support a reboot command as well. My Dahuas do not. The reset command does the same as a right click "restart Camera" in the BI gui.
          Excellent. Thanks!
          -Wade

          Comment


          • #6
            Originally posted by cc4005 View Post

            Excellent. Thanks!
            You can do most BI commands this way. I use similar immediate scripts to pause or motion events in cameras.

            I also use similar JSON strings in BL actions to HS to send geofence alerts and watchdog events. Everywhere in BL you can have a action to send a http:// command you do so directly to HS via JSON calls and run an event or set a device status or whatever other HS action you need.

            I have the BI plugin and used it for a bit until i discovered all the things you can do directly via JSON.

            It would be nice if all the available BI commands could be used in the PI but it is just as easy to use the direct approach.


            Sent from my iPad using Tapatalk

            Comment

            Working...
            X