Page 1 of 1

Zoneminder install in BusterDog

Posted: Wed Oct 06, 2021 10:52 pm
by dcung

Hi,

I posted in Zoneminder forum.
https://forums.zoneminder.com/viewtopic ... 43&t=31184

Also posting here, in case someone can give me pointers.

I have the following system.
https://www.swann.com/au/swnvk-800kh4

It does not have Linux app, so I'm tyring to use Zoneminder with BusterDog (puppylinux). I got Zoneminder up and running following this guide
https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo

I can use VLC to see live view of channels of the NVR.
rtsp://user:mypassword@ip-address:554/ch01/1

I have tried to add in Zoneminder (it says v1.36.7), but so far have not been able to see anything. I don't know if I do the config correctly.
I'm a newbie in security camera system.

Thank you.


Re: Zoneminder install in BusterDog

Posted: Wed Oct 06, 2021 11:09 pm
by rockedge

Hello, I can help you perhaps. It is important to have the exact correct camera resolution. This can be checked in VLC when streaming the URL that works. Use the menu and look at the codec info. Also set to ffmpeg with 32 bit color unless specifically 24 bit.
I assume it is running with Apache as the web server? Check that the zoneminder.conf is enabled.

most likely you do not have the /cgi-bin/nph-zms path correctly configured. check your alias's or symlink! Or set it in /etc/zm/conf.d/zm_custom.conf.

Code: Select all

ZM_PATH_ZMS=/cgi-bin/nph-zms

What do your ZM logs say?


Re: Zoneminder install in BusterDog

Posted: Wed Oct 06, 2021 11:29 pm
by dcung

Hi rockedge,
Thank you for replying.
Please bear with me if I asked silly questions...
Where exactly do you set /cgi-bin/nph-zms path? I looked in Option,Config.

I'm trying blindly here.
In general/source type -> what's the correct choice? ffmpeg?
In source/source path -> rtsp://user:mypassword@ip-address:554/ch01/1 or rtsp://ip-address:554/ch01/1 and set user/password somewhere else?
In ONVIF -> do I need to put user/password?

Note - I'm trying to access camera via NVR not directly. NVR and IP-cam have different IP addresses.


Re: Zoneminder install in BusterDog

Posted: Wed Oct 06, 2021 11:38 pm
by dcung
rockedge wrote: Wed Oct 06, 2021 11:09 pm

I assume it is running with Apache as the web server? Check that the zoneminder.conf is enabled.

I assume so, I followed the guide up there, which has this command.
apt install apache2 mariadb-server php libapache2-mod-php php-mysql

most likely you do not have the /cgi-bin/nph-zms path correctly configured. check your alias's or symlink! Or set it in /etc/zm/conf.d/zm_custom.conf.

No such file. Only have these 3 files in the dir. There's /etc/zm/zm.conf which I'm reading the content now.


Re: Zoneminder install in BusterDog

Posted: Wed Oct 06, 2021 11:52 pm
by dcung
rockedge wrote: Wed Oct 06, 2021 11:09 pm

Hello, I can help you perhaps. It is important to have the exact correct camera resolution. This can be checked in VLC when streaming the URL that works. Use the menu and look at the codec info. Also set to ffmpeg with 32 bit color unless specifically 24 bit.


Re: Zoneminder install in BusterDog

Posted: Thu Oct 07, 2021 12:34 am
by dcung

Aha...I got picture now after setting the correct resolution 1080p (1920x1080). Thanks rockedge :thumbup:

How do I clear log? It's got more than 10000 entries now. I want so start 'fresh' and exploring what I can do in Zoneminder.


Re: Zoneminder install in BusterDog

Posted: Thu Oct 07, 2021 1:50 am
by rockedge

you can limit the saved log entries via filter setting at Options->Logging->LOG_DATABASE_LIMIT

I am using 2 hour

Screenshot(140).png
Screenshot(140).png (54.7 KiB) Viewed 1340 times

Re: Zoneminder install in BusterDog

Posted: Thu Oct 07, 2021 2:55 am
by dcung
rockedge wrote: Thu Oct 07, 2021 1:50 am

you can limit the saved log entries via filter setting at Options->Logging->LOG_DATABASE_LIMIT

I am using 2 hour

I follow you...2 hour.
Also the default setting LOG_LEVEL_FILE was debug, I changed it to error, will change it like yours (none) when I'm done fine tuning.


Re: Zoneminder install in BusterDog

Posted: Thu Oct 07, 2021 3:43 am
by dcung

I'm happy that at least I have a linux app that can be used with the system.

This questions are for my future exploring of Zoneminder.
In their (Swann) android app, you can use deterrent features of the camera by turning on light/strobe/siren.
Is there such features in Zoneminder?

FYI - I didn't do my homework before buying.
Lots of complain about Swann Android app. Battery drain!
In my case, I have so far used 3 mobile phones (2 Oppo F1, and Google Pixel 2XL).
It's OK so far with the Oppo, but the Pixel 2XL battery drains VERY fast when the app is installed.


Re: Zoneminder install in BusterDog

Posted: Tue Oct 12, 2021 8:10 am
by dcung

My zoneminder installation (v1.36.7) in PuppyLinux (BusterDog) is auto starting atm.
While exploring/tinkering zoneminder, I'd like to start it manually for the time being.
Meanwhile, I run 'service zoneminder stop' after finish booting/rebooting (or I can stop it thru Zoneminder WebGUI).

I'm trying to locate where it gets started from during boot, so I can comment out the line (or modify ?).

Not sure whether more appropriate to ask in Zoneminder or Puppy forum...so I ask on both.
https://forums.zoneminder.com/viewtopic ... 95#p123595

Thank you.


Re: Zoneminder install in BusterDog

Posted: Tue Oct 12, 2021 12:39 pm
by fredx181
dcung wrote: Tue Oct 12, 2021 8:10 am

My zoneminder installation (v1.36.7) in PuppyLinux (BusterDog) is auto starting atm.
While exploring/tinkering zoneminder, I'd like to start it manually for the time being.
Meanwhile, I run 'service zoneminder stop' after finish booting/rebooting (or I can stop it thru Zoneminder WebGUI).

I'm trying to locate where it gets started from during boot, so I can comment out the line (or modify ?).

Not sure whether more appropriate to ask in Zoneminder or Puppy forum...so I ask on both.
https://forums.zoneminder.com/viewtopic ... 95#p123595

Thank you.

I think (untested) that you can disable the zoneminder initscript, e.g. for when running without systemd (default for Busterdog is running with the legacy initscripts):

Code: Select all

update-rc.d -f zoneminder remove
invoke-rc.d zoneminder stop    # or 'service zoneminder stop', as you do, does the same.

EDIT: To enable again: update-rc.d zoneminder defaults and invoke-rc.d zoneminder start

Just in case you are running the system with systemd, disable the service :
systemctl disable zoneminder.service


Re: Zoneminder install in BusterDog

Posted: Tue Oct 12, 2021 7:53 pm
by dcung
fredx181 wrote: Tue Oct 12, 2021 12:39 pm

I think (untested) that you can disable the zoneminder initscript, e.g. for when running without systemd (default for Busterdog is running with the legacy initscripts):

Code: Select all

update-rc.d -f zoneminder remove
invoke-rc.d zoneminder stop    # or 'service zoneminder stop', as you do, does the same.

EDIT: To enable again: update-rc.d zoneminder defaults and invoke-rc.d zoneminder start

Just in case you are running the system with systemd, disable the service :
systemctl disable zoneminder.service

Thank you Fred... :thumbup:

It works. I can see now where it gets started from (ie. those /etc/rc.x directories).

I've also put a link to here in Zoneminder forum, in case someone else needs it.


Re: Zoneminder install in BusterDog

Posted: Tue Oct 12, 2021 8:48 pm
by fredx181

It works. I can see now where it gets started from (ie. those /etc/rc.x directories).

Yes, but note that the standard way to configure is with the update-rc.d command, better not by deleting or creating manually in the /etc/rc.x directories.


Re: Zoneminder install in BusterDog

Posted: Tue Oct 12, 2021 9:42 pm
by dcung
fredx181 wrote: Tue Oct 12, 2021 8:48 pm

It works. I can see now where it gets started from (ie. those /etc/rc.x directories).

Yes, but note that the standard way to configure is with the update-rc.d command, better not by deleting or creating manually in the /etc/rc.x directories.

Got it. I did it thru the command. That (finding the locations) was just to satisfy my curiosity. Thank you. :thumbup2: