Options -> Web -> WEB_SOUND_ON_ALARM

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
RonRN18
Posts: 52
Joined: Tue Aug 13, 2019 1:00 am

Options -> Web -> WEB_SOUND_ON_ALARM

Post by RonRN18 »

I'm not sure if I just don't understand how this works or if this feature actually does work. I have enabled the option and then tried to find the "sounds" directory. I did a bunch of searching and the only "sounds" folder I could find was at /usr/share/sounds. In this directory, I saw several sub-directories that had several different sound effects. I initially thought this was what it was looking for, but it would not trigger any sounds. I then searched around and saw this post, and saw the suggestion to modify the zm.conf file. There was no mention of a ZM_DIR_SOUNDS directory anywhere, so I created a new entry in the configuration file... I wasn't sure if it was looking for a relative or a specific directory location. If it were relative, I'd think it relative to the "www" directory, I create a sub-directory to "www" and set the "ZM_DIR_SOUNDS=sounds". That didn't work. I then tried to put in the long name and changed it to "ZM_DIR_SOUNDS=/usr/share/zoneminder/www/sounds" but that doesn't work either. I've tried all I could think of and hoping someone here could steer me right.
Simpler
Posts: 76
Joined: Mon Nov 02, 2015 12:40 am

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by Simpler »

I also can't get this to work.

I've toggled on WEB_SOUND_ON_ALARM (from Options -> Web) and I've specified an WEB_ALARM_SOUND file as a .ogg file that is in the www/sounds directory. I've even tested that the sound plays on the web if I enter

Code: Select all

http://localhost/zm/sounds/Soft_Airy_Swish.ogg
as the URL.

Does anyone have this working?

I'm on 1.36.33.

Thanks
User avatar
iconnor
Posts: 2879
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by iconnor »

I once had this working but it was very inconsistent across browsers and browsers have gotten more complicated since then. I'll try to find some time to revisit this and post back here.
Simpler
Posts: 76
Joined: Mon Nov 02, 2015 12:40 am

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by Simpler »

Hi Isaac,

Thanks for the reply.

I created a pull request to address this issue.

Check it out here.
User avatar
iconnor
Posts: 2879
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by iconnor »

Merged, thanks so much. I'll get it into 1.36.34 as well.
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by dougmccrary »

I see 1.36.34 in proposed ppa, but apt doesn't get it?
User avatar
iconnor
Posts: 2879
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by iconnor »

Should show up if you have the proposed ppa in your sources.list. What does apt-cache madison zoneminder say?
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by dougmccrary »

Code: Select all

doug@doug-HP-Z400-ZM:~$ sudo apt-cache madison zoneminder
[sudo] password for doug: 
zoneminder | 1.36.33-focal1 | http://ppa.launchpad.net/iconnor/zoneminder-1.36/ubuntu focal/main amd64 Packages
zoneminder | 1.36.33~20230223.55-focal1 | http://ppa.launchpad.net/iconnor/zoneminder-proposed/ubuntu focal/main amd64 Packages
zoneminder | 1.32.3-2ubuntu2+esm1 | https://esm.ubuntu.com/apps/ubuntu focal-apps-security/main amd64 Packages
zoneminder | 1.32.3-2ubuntu2 | http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
doug@doug-HP-Z400-ZM:~$ 
Also

Code: Select all

doug@doug-HP-Z400-ZM:~$ sudo apt policy zoneminder
[sudo] password for doug: 
zoneminder:
  Installed: 1.36.33-focal1
  Candidate: 1.36.33-focal1
  Version table:
 *** 1.36.33-focal1 500
        500 http://ppa.launchpad.net/iconnor/zoneminder-1.36/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     1.36.33~20230223.55-focal1 500
        500 http://ppa.launchpad.net/iconnor/zoneminder-proposed/ubuntu focal/main amd64 Packages
     1.32.3-2ubuntu2+esm1 500
        500 https://esm.ubuntu.com/apps/ubuntu focal-apps-security/main amd64 Packages
     1.32.3-2ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
doug@doug-HP-Z400-ZM:~$ 
User avatar
iconnor
Posts: 2879
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by iconnor »

Right. There are build issues on focal. SOmething wrong with my fixes for ffmpeg5.
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Options -> Web -> WEB_SOUND_ON_ALARM

Post by dougmccrary »

OK, thanks.
Post Reply