• Anyone tried zoneminder for camera control

    From bp@www.zefox.net@3:770/3 to All on Wed Mar 27 19:26:36 2024
    From time to time it'd be nice to have a remote control camera
    connected to my Pi. Most likely use would be watching for
    unwelcome critters in the garage or garden.

    Knowing absolutely nothing I downloaded zoneminder. It looks
    like a much more complex system than I need, but it's available.
    At this stage I'd just like to find out if it runs on a Pi4
    running up-to-date 64 bit RasPiOS. It's installed but the man
    page is little help and running zmu reports a permissions error.

    Any tips or links would be much appreciated.

    Thanks for reading,

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Nomad@3:770/3 to bp@www.zefox.net on Wed Mar 27 20:17:26 2024
    On Wed, 27 Mar 2024 19:26:37 -0000 (UTC), <bp@www.zefox.net> wrote:

    From time to time it'd be nice to have a remote control camera connected
    to my Pi. Most likely use would be watching for unwelcome critters in
    the garage or garden.

    Knowing absolutely nothing I downloaded zoneminder. It looks like a much
    more complex system than I need, but it's available.
    At this stage I'd just like to find out if it runs on a Pi4 running up-to-date 64 bit RasPiOS. It's installed but the man page is little
    help and running zmu reports a permissions error.

    Any tips or links would be much appreciated.

    Thanks for reading,

    bob prohaska

    Runs fine on a RPi4

    You don't run it manually, it start (should) automagically at boot time,
    go to <http://ip.address.of.RPi/zm/index.php>

    There you can set up cameras etc. etc. etc.

    HTH

    Avpx

    --
    'What can I do? I'm only human,' he said aloud. Someone said, Not all
    of you. (Pyramids)
    Wed 11166 Sep 20:15:01 GMT 1993
    20:15:01 up 5 days, 3:04, 8 users, load average: 0.52, 0.35, 0.24

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From bp@www.zefox.net@3:770/3 to The Nomad on Wed Mar 27 20:51:18 2024
    The Nomad <nomad@the.desert.invalid> wrote:

    You don't run it manually, it start (should) automagically at boot time,
    go to <http://ip.address.of.RPi/zm/index.php>


    HTH

    It helps enormously, now I know which way is up 8-)

    Still, there seem to be problems:

    If I try to visit
    http://localhost/zm/index.php
    I get a 404.

    If I try to run the daemon manually I see:

    bob@raspberrypi:~ $ sudo zmc -d localhost
    03/27/24 13:43:48.107397 zmc_dlocalhost[400666].ERR-zm_db.cpp/55 [Can't connect to server: Access denied for user 'zmuser'@'localhost']

    03/27/24 13:43:48.107614 zmc_dlocalhost[400666].FAT-zm_config.cpp/67 [Can't connect to db. Can't continue.]

    Zoneminder was set up using sudo apt install zoneminder, no manual configuration.

    The errors above make it look like maybe some sort of install script needs to run
    for setting permissions. Sudo zmu reports the same permissions error as zmc.

    I did check that
    sudo more /etc/zm/zm.conf
    displays a reasonable looking file.

    Any further hints appreciated!

    Thanks for writing!

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Nomad@3:770/3 to bp@www.zefox.net on Thu Mar 28 06:08:44 2024
    On Wed, 27 Mar 2024 20:51:19 -0000 (UTC), <bp@www.zefox.net> wrote:

    The Nomad <nomad@the.desert.invalid> wrote:

    You don't run it manually, it start (should) automagically at boot
    time,
    go to <http://ip.address.of.RPi/zm/index.php>


    HTH

    It helps enormously, now I know which way is up 8-)

    Still, there seem to be problems:

    If I try to visit http://localhost/zm/index.php I get a 404.

    If I try to run the daemon manually I see:

    bob@raspberrypi:~ $ sudo zmc -d localhost 03/27/24 13:43:48.107397 zmc_dlocalhost[400666].ERR-zm_db.cpp/55 [Can't connect to server: Access denied for user 'zmuser'@'localhost']

    03/27/24 13:43:48.107614 zmc_dlocalhost[400666].FAT-zm_config.cpp/67
    [Can't connect to db. Can't continue.]

    Zoneminder was set up using sudo apt install zoneminder, no manual configuration.

    The errors above make it look like maybe some sort of install script
    needs to run for setting permissions. Sudo zmu reports the same
    permissions error as zmc.

    I did check that sudo more /etc/zm/zm.conf displays a reasonable looking file.

    Any further hints appreciated!

    Thanks for writing!

    bob prohaska

    Bob,

    Have you read <https://wiki.zoneminder.com/Dummies_Guide>?

    <https://zoneminder.readthedocs.io/en/stable/userguide/
    gettingstarted.html>

    <https://wiki.zoneminder.com/How_To>

    There is a lot of good stuff there - though some is a bit arcane :-)

    Regards

    Avpx



    --
    The thing about iron is that you generally don't have to think fast in
    dealing with it. (Lords and Ladies)
    Thu 11167 Sep 06:05:01 GMT 1993
    06:05:01 up 5 days, 12:54, 8 users, load average: 0.15, 0.20, 0.16

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From bp@www.zefox.net@3:770/3 to The Nomad on Thu Mar 28 17:33:56 2024
    The Nomad <nomad@the.desert.invalid> wrote:

    Have you read <https://wiki.zoneminder.com/Dummies_Guide>?
    Saw it, but nothing clicked
    <https://zoneminder.readthedocs.io/en/stable/userguide/
    gettingstarted.html>

    That's new to me. I tried using
    sudo chgrp -c www-data /etc/zm/zm.conf
    but still see
    bob@raspberrypi:~ $ sudo zmu
    03/28/24 10:31:33.373918 undef[406950].ERR-zm_db.cpp/55 [Can't connect to server: Access denied for user 'zmuser'@'localhost']

    03/28/24 10:31:33.374161 undef[406950].FAT-zm_config.cpp/67 [Can't connect to db. Can't continue.]
    At least the config file is now readable.


    There is a lot of good stuff there - though some is a bit arcane :-)
    Indeed, I'll have study it a while. I wish there had been a hint in the
    man page to the links you supplied.

    Thank you very much!

    bob prohaska


    I see

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From bp@www.zefox.net@3:770/3 to The Nomad on Fri Mar 29 21:10:12 2024
    The Nomad <nomad@the.desert.invalid> wrote:

    Don't run zmu from the command line it's not how it works :-)

    Zoneminder is a service that runs all the time in the background doing its stuff, there is a mysql database at the heart of this system with .php web pages.


    That was what had me stumped, I expected it could be stopped and started manually or in the startup scripts. My bad....

    ps aux |grep zm provides

    That command offered proof that zoneminder's not running.

    I'll try rebooting at some point to see if that makes any
    difference. I'm not likely to want it running all the time,
    can it be stopped and started _without_ rebooting?

    Thanks for all your help!

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Nomad@3:770/3 to bp@www.zefox.net on Sat Mar 30 10:07:50 2024
    On Fri, 29 Mar 2024 21:10:12 -0000 (UTC), <bp@www.zefox.net> wrote:


    ps aux |grep zm provides

    That command offered proof that zoneminder's not running.

    Oh :-(

    I'll try rebooting at some point to see if that makes any difference.
    I'm not likely to want it running all the time,
    can it be stopped and started _without_ rebooting?

    I've not actually tried it as I run mine 24/7/52 but ...

    sudo systemctl start|stop zoneminder.service may/should/might work

    or

    sudo service zoneminder stop|start (I think all RPis system use systemd
    these days so systemctl is more likely)

    HTH

    Thanks for all your help!

    No problems - I remember struggling at first, but as I say I can't
    remember what I did to solve it. A clean install via apt-get I think ...
    then it all just worked (c).

    bob prohaska

    Avpx



    --
    - "There's a door" - "Where does it go?" - "It stays where it is,
    I think." (Eric)
    Sat 11169 Sep 10:00:01 GMT 1993
    10:00:01 up 7 days, 16:49, 8 users, load average: 0.41, 0.44, 0.41

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From John Aldridge@3:770/3 to All on Sat Mar 30 19:05:38 2024
    In article <uu1rtd$31a20$1@dont-email.me>, bp@www.zefox.net says...

    From time to time it'd be nice to have a remote control camera
    connected to my Pi. Most likely use would be watching for
    unwelcome critters in the garage or garden.

    Knowing absolutely nothing I downloaded zoneminder...

    I've not used zoneminder, but have used 'motion' for watching wildlife (https://motion-project.github.io/) which works fine on an RPi (both
    with USB cameras and the RPi camera).

    --
    John

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From bp@www.zefox.net@3:770/3 to John Aldridge on Tue Apr 2 00:25:46 2024
    John Aldridge <jpsa@cantab.net> wrote:
    In article <uu1rtd$31a20$1@dont-email.me>, bp@www.zefox.net says...

    From time to time it'd be nice to have a remote control camera
    connected to my Pi. Most likely use would be watching for
    unwelcome critters in the garage or garden.

    Knowing absolutely nothing I downloaded zoneminder...

    I've not used zoneminder, but have used 'motion' for watching wildlife (https://motion-project.github.io/) which works fine on an RPi (both
    with USB cameras and the RPi camera).


    How does one guesstimate which cameras will work? Zonemaster has a list,
    but I didn't see one for motion. It looks like the better-performing
    cameras start in the mid-hundreds of dollars so a correct choice matters.

    Thanks for writing!

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From John Aldridge@3:770/3 to All on Wed Apr 3 00:36:22 2024
    In article <uufja9$2ps5s$1@dont-email.me>, bp@www.zefox.net says...

    John Aldridge <jpsa@cantab.net> wrote:
    In article <uu1rtd$31a20$1@dont-email.me>, bp@www.zefox.net says...

    From time to time it'd be nice to have a remote control camera
    connected to my Pi. Most likely use would be watching for
    unwelcome critters in the garage or garden.

    Knowing absolutely nothing I downloaded zoneminder...

    I've not used zoneminder, but have used 'motion' for watching wildlife (https://motion-project.github.io/) which works fine on an RPi (both
    with USB cameras and the RPi camera).


    How does one guesstimate which cameras will work? Zonemaster has a list,
    but I didn't see one for motion. It looks like the better-performing
    cameras start in the mid-hundreds of dollars so a correct choice matters.

    I'm not aware of a list of tested cameras, though a quick glance at the documentation suggests that one which supports Video4Linux2 should work.

    But I wasn't trying to persuade you to switch away from zoneminder, just suggesting something else you might try if zoneminder doesn't work out.

    --
    Cheers,
    John

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)