From: Garry D. <gar...@sh...> - 2008-02-25 23:08:00
|
Gregg Thanks for the link to the MH docs. I made the changes to the code as you suggested and now I'm getting this... root@Misterhouse:/usr/local/zmxap# tail -f /tmp/zmxap.log 25/02/08 14:51:14 [WARN] (checkState) Can't read from shared memory: 25/02/08 14:51:14 [WARN] (checkState) Can't read from shared memory: 25/02/08 14:51:14 [WARN] (checkState) Can't read from shared memory: 25/02/08 14:51:14 [WARN] (checkState) Can't read from shared memory: 25/02/08 14:51:15 [WARN] (checkState) Can't read from shared memory: 25/02/08 14:51:15 [WARN] (checkState) Can't read from shared memory: ======= xAP server starting at 08/02/25 14:56:18======== Shmkey for 1 is 2053963777 Shmkey for 1 is 2053963777 Question: Does it matter what instance_name in zmxap.conf is set to? I didn't change that so it's still set to 'house'. Garry -----Original Message----- From: mis...@li... [mailto:mis...@li...] On Behalf Of Gregg Liming Sent: Monday, February 25, 2008 10:01 AM To: The main list for the MisterHouse home automation program Subject: Re: [mh] zmxap and Zoneminder Quoting Garry Doucette (2/25/08 11:54 AM): >>> Do you have monitors defined? If so, what are their modes (e.g., modect)? > > Yes I do. I have one called "Office" with an ID No. 1. It's set to Modect. > >>> What version of zoneminder are you running? > > V1.23.1 > >>> Unfortunately, I've not "peppered" the code w/ lots of debug >>> statements in > case there is a problem. So, either I'll need to do that or I'll need > for you to insert a few manually based upon your answers above. Let's do two things... (1) up the debug level in zm.conf to 4 log_level = 4 (2) add a print statement to the load method in the Monitor package just after the second if statement. In my zmxap.pl, it's line 425: if ($shmData->{ShmId}) { $self->{MonitorData}->{ShmId} = $shmData->{ShmId} } print "Shmkey for " . $self->{Id} . " is " . $shmData->{ShmKey} . "\n"; I included the second if statement for reference; it's only the print statement that needs to be added. The results after applying the above for me is: ======= xAP server starting at 08/02/25 13:00:21======== 02/25/2008 13:00:21 [INFO] (xAP::Comm): Created xAP send socket on port 3639 02/25/2008 13:00:21 [INFO] (xAP::Comm): Created xAP listen socket on port 49154 02/25/2008 13:00:21 [INFO] (main::loadMonitors): Loading monitors Shmkey for 1 is 2053963777 02/25/2008 13:00:21 [DEBUG] (main::Monitor) Loading monitor: n=front-porch, en=1 f=Modect Shmkey for 6 is 2053963782 02/25/2008 13:00:21 [DEBUG] (main::Monitor) Loading monitor: n=driveway, en=1 f=Modect ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |