Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: motion detection (Freek de Kruijf)
   2. Re: motion detection (somebody)
   3. Re: motion detection (Dougie Nisbet)
   4. Re: checking camera periodically (Dougie Nisbet)
   5. Re: checking camera periodically (Dougie Nisbet)


----------------------------------------------------------------------

Message: 1
Date: Sat, 29 Sep 2018 23:47:34 +0200
From: Freek de Kruijf <fr...@opensuse.org>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] motion detection
Message-ID: <7851815.9XLCjTb0CX@eiktum>
Content-Type: text/plain; charset="us-ascii"

Op zaterdag 29 september 2018 22:12:11 CEST schreef somebody:
> Won't that just do the same thing? Send multiple e-mails? It would have
> been great if someone mentioned that in these "wikis" and "howtos" that
> I modeled my config file after that so many e-mails would have been sent
> or mentioned how to prevent it from happening! Anyway, I deleted the
> e-mail queue from my Postfix server that had about 2000 pending e-mails!
> No wonder my external e-mail service blocked me. Now I'll be branded as
> a spammer even though the e-mails went to only my account.

You need to call a script that does more clever its job. I would think of 
sending an e-mail and note the time in a file. The next time you inspect the 
time and when a certain amount of time has not been past you do nothing.

-- 
fr.gr.

member openSUSE
Freek de Kruijf






------------------------------

Message: 2
Date: Sat, 29 Sep 2018 18:23:31 -0600
From: somebody <for...@n0sq.tech>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] motion detection
Message-ID: <f0a2fbf5-5da4-8a5d-6e97-38c366297...@n0sq.tech>
Content-Type: text/plain; charset=utf-8

So far, it looks like on_event_start was a much better solution than
on_motion_detected.


On 09/29/2018 03:47 PM, Freek de Kruijf wrote:
> Op zaterdag 29 september 2018 22:12:11 CEST schreef somebody:
>> Won't that just do the same thing? Send multiple e-mails? It would have
>> been great if someone mentioned that in these "wikis" and "howtos" that
>> I modeled my config file after that so many e-mails would have been sent
>> or mentioned how to prevent it from happening! Anyway, I deleted the
>> e-mail queue from my Postfix server that had about 2000 pending e-mails!
>> No wonder my external e-mail service blocked me. Now I'll be branded as
>> a spammer even though the e-mails went to only my account.
> You need to call a script that does more clever its job. I would think of 
> sending an e-mail and note the time in a file. The next time you inspect the 
> time and when a certain amount of time has not been past you do nothing.
>




------------------------------

Message: 3
Date: Sun, 30 Sep 2018 11:44:53 +0100
From: Dougie Nisbet <dou...@katsura.uk>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] motion detection
Message-ID: <2647ca7a-2393-eb92-29e0-84271080a...@katsura.uk>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

As others have said though, it might be better to call a script than try 
and do things directly from the config file. I'm often tempted, but the 
extra diagnostics you can gather from writing a simple wrapper script is 
often very useful.

In my case, for example, I could quite easily log lost camera to a 
logfile directly from the config file, but prefer to do something like:

 ??? on_camera_lost /home/dougie/bin/lost_camera frontofhouse > 
/home/dougie/logs/frontofhouse_lost.log 2>&1

and I have more flexibility and clarity when trying to track things 
down. For instance, I almost always run a 'ps -ef' and save the output 
whenever I get an error to help trace it.

Dougie

On 30/09/2018 01:23, somebody wrote:
> So far, it looks like on_event_start was a much better solution than
> on_motion_detected.
>
>
> On 09/29/2018 03:47 PM, Freek de Kruijf wrote:
>> Op zaterdag 29 september 2018 22:12:11 CEST schreef somebody:
>>> Won't that just do the same thing? Send multiple e-mails? It would have
>>> been great if someone mentioned that in these "wikis" and "howtos" that
>>> I modeled my config file after that so many e-mails would have been sent
>>> or mentioned how to prevent it from happening! Anyway, I deleted the
>>> e-mail queue from my Postfix server that had about 2000 pending e-mails!
>>> No wonder my external e-mail service blocked me. Now I'll be branded as
>>> a spammer even though the e-mails went to only my account.
>> You need to call a script that does more clever its job. I would think of
>> sending an e-mail and note the time in a file. The next time you inspect the
>> time and when a certain amount of time has not been past you do nothing.
>>
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Sun, 30 Sep 2018 11:55:54 +0100
From: Dougie Nisbet <dou...@katsura.uk>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] checking camera periodically
Message-ID: <52fcb53b-0efb-e7e1-0172-24f1a8b5c...@katsura.uk>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

On 29/09/2018 18:07, tosiara wrote:
>
> connection=`curl --silent http://localhost:8080/1/detection/connection 
> | grep OK`
> if [ ! -z "$connection" ]; then status="online"; fi
>
I'm trying this but don't pretend to understand. Is the 8080 port number 
the one configured in the config file under Live Stream Server? If so, 
I'm trying things along the lines of

curl --silent --user REDACTED:REDACTED 
http://192.168.1.9:8639/1/detection/connection

but getting

<!DOCTYPE html>
<html>
<head><title>401 Authorization Required</title></head>
<body>
<h1>Authorization Required</h1>
<p>This server could not verify that you are authorized to access the 
document requested.? Either you supplied the wrong credentials (e.g., 
bad password), or your browser doesn't understand how to supply the 
credentials required.</p>
</body>
</html>

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 5
Date: Sun, 30 Sep 2018 11:57:23 +0100
From: Dougie Nisbet <dou...@katsura.uk>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] checking camera periodically
Message-ID: <b8402724-38f4-fd38-e03a-52311ed84...@katsura.uk>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

On 29/09/2018 18:04, E Thomas wrote:
> You could use your script on camera lost to write a file and then 
> delete it with a script when the camera is reacquired.? Then your cron 
> job can just check for the existence of the file.. 

Yep that's the way to do it. Why didn't I think of that! I already log 
lost and found so I just need to check the last line of the log file.

Thanks

Dougie

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 147, Issue 32
********************************************

Reply via email to