Send Motion-user mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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


Today's Topics:

   1. Re: Newbie - Request help for installation Motion (Rick Rae)
   2. Re: Problems with getting chromium-browser to show first
      image (Barry Martin)


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

Message: 1
Date: Wed, 8 Jun 2022 09:55:48 -0400
From: Rick Rae <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Newbie - Request help for installation
        Motion
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Here's an example that emails a notification with some statistics plus 
the "best" motion frame as an attachment, but you can strip it down to 
send only what you need.? It uses uuenview and msmtp but requires no 
additional scripting -- this one line in the .config does it all.

I trigger when the best frame is saved, but if you're not sending the 
image file you can trigger on the start of motion or whenever works best 
for you.

I've been running like this for over a year on four different cameras 
with nary an issue.

I hope this helps,
Rick

# Command to be executed when a picture is saved.
on_picture_save /bin/echo -e "From: [email protected]\nTo: 
[email protected]\nSubject: [PiCam1.1] Captured %T\n\nMotion event %v @ %T %$ 
%K:%L"|uuenview -a -bo %f|msmtp [email protected]

Produces:

From: [email protected]
Date: June 8, 2022 4:05:35 AM
Subject: [PiCam1.1] Captured 04:04:12
To: [email protected]

Motion event 23 @ 04:04:12 PiCam1.1 Front Porch 402:394

[1 attachment]


On 6/7/22 18:08, athanatos--- via Motion-user wrote:
> P.S. is there a way to send notification via e-mail when app detect 
> motion?
>
> Bye
> Luca
>
> Il 6 Giu 2022 23:29, David Powell <[email protected]> ha scritto:
>
>     Sorry, but that YouTube channel belongs to the much more capable
>     Mr. Dave, not me. ?
>
>     I am not familiar with your cameras, and unfortunately there are
>     few standards for the streaming URLs. At first look, however,? it
>     seems that you may be missing a question mark (?) In your URL. Try
>     putting it just before the word */user/*.
>
>     Hope that helps!
>     David
>
>     On June 6, 2022 3:27:58 PM [email protected] wrote:
>
>         Hi David,
>
>         thank you for your help and sorry for the delay. I have
>         followed your advice and your (?) channel on Youtube
>
>         https://www.youtube.com/channel/UCZpOjUMnc-uO3qIyZAD_4lg/
>
>         I think it would be a good idea to put the link on the Motion
>         page, because video are really good.
>
>
>         Now I have a trouble: I have acquired three IP Camera (Model
>         A8B, 3MP, Wifi, iCSee). With VLC I can reach one of the camera
>         with this code and with my laptop (OS Ubuntu, see attached photo)
>
>         rtsp://192.168.1.xy:554 (but there is a request of username
>         and password, I have both)
>
>         When I try to connect camera with Motion (from Terminal) I
>         have some trouble.
>
>
>         If i write code in Motion from your video (port 554)
>
>         ffplay rtsp://192.168.1.xy:554/streaming/channels/2
>
>         I can't connect to my CAM and I read this error
>
>         [rtsp @ 0xa9000740] method DESCRIBE failed: 401 Unauthorizedf=0/0
>         rtsp://192.168.1.xy:554/streaming/channels/2: Server returned
>         401 Unauthorized (authorization failed)
>
>
>         If i write code in Motion from your video (port 8899)
>
>         ffplay rtsp://192.168.1.xy:8899/streaming/channels/2
>
>         I can't connect to my CAM and I read this error
>
>         rtsp://192.168.1.xy:8899/streaming/channels/2: Invalid data
>         found when processing input
>
>
>         So, I have searched how to connect my specific CAM
>         (https://www.ispyconnect.com/camera/icsee)
>         <https://www.ispyconnect.com/camera/icsee%29>. If I write code
>         in Motion from this site (port 554)
>
>         ffplay
>         rtsp://192.168.1.xy:554/user=***&password=***&channel=0&stream=1.sdp
>
>         I can't connect to my CAM and I read this error
>
>         [rtsp @ 0xa9a00740] method DESCRIBE failed: 401 Unauthorizedf=0/0
>         rtsp://192.168.1.xy:554/user=***: Server returned 401
>         Unauthorized (authorization failed)
>
>
>         If I write this code in Motion (port 8899)
>
>         ffplay
>         rtsp://192.168.1.xy:8899/user=***&password=***&channel=1&stream=0.sdp
>
>         I read this error
>
>         rtsp://192.168.1.xy:8899/user=***: Invalid data found when
>         processing input
>
>
>         Can you help me? I don't understand how to connect my CAM.
>
>
>
>         Sorry for the request
>
>         and
>
>         thank you for your help.
>
>
>         Best regards
>
>         Luca
>
>             Il 04/06/2022 03:17 David Powell <[email protected]> ha
>             scritto:
>
>
>             Ciao, Luca.
>
>             Try running it from the command prompt. Just open a
>             terminal window (ctl-alt-t should do it, or select
>             /Terminal/ from the menu bar) and type in *motion -d*.?
>             The window should stay open and let you see what happened.
>
>             You can see all of the command line options at
>
>             
> https://motion-project.github.io/motion_config.html#commandlineoptions
>
>             HTH,
>             David
>
>
>             On 6/3/22 10:30 AM, athanatos--- via Motion-user wrote:
>
>                 Hi,
>
>                 my name is Luca. I write because I want to install
>                 Motion on ubuntu (18.04, on a laptop) but I'm a
>                 Windows user (so, I'm newbie).
>
>                 I have read guide
>                 (https://motion-project.github.io/motion_build.html),
>                 installed from apt but I don't understand how to work
>                 now: I have tried to configure script
>                 (https://motion-project.github.io/motion_download.html)
>                 <https://motion-project.github.io/motion_download.html%29>
>                 but when I mark file an executable and I run the
>                 windows (terminal) remain open for few seconds.
>
>                 Can you help me?
>
>
>
>                 Sorry for my english,
>
>
>
>                 Best regards
>
>                 Luca
>
>
>
>                 _______________________________________________
>                 Motion-user mailing list
>                 [email protected]
>                 https://lists.sourceforge.net/lists/listinfo/motion-user
>                 https://motion-project.github.io/
>
>                 
> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
>
>             _______________________________________________
>             Motion-user mailing list
>             [email protected]
>             https://lists.sourceforge.net/lists/listinfo/motion-user
>             https://motion-project.github.io/
>
>             Unsubscribe:
>             https://lists.sourceforge.net/lists/options/motion-user 
>
>
>
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> 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: 2
Date: Wed, 8 Jun 2022 19:50:50 -0500
From: Barry Martin <[email protected]>
To: Brian <[email protected]>
Cc: [email protected]
Subject: Re: [Motion-user] Problems with getting chromium-browser to
        show first image
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"


Hi Brian!


> Thanks Barry. I now have it working, I dont fully understand why it 
> executed everything in that directory.
>
> Autostart? debugging seems to be lacking somewhat.
>
>
> Needless to say, I was in the wrong one. Currently the setup is in 
> test running the camera in our Kestrel nesting box.
>
Glad I was able to help.? May not be quite the right way but as long as 
it works!? As for the wrong directory, I was working on another 
unrelated to Motion project with the RPi 400.? Valid sources said to 
edit such-and-such file; didn't work.? Used /find/, found a few possible 
files, was in a completely different directory and similar filename!

Barry

>
>
> On 6/8/2022 3:51 PM, Barry Martin wrote:
>>
>>
>> Brian:
>>
>> Haven't seen an answer posted yet so will reply:
>>
>>
>>> Going off at a tangent. I made the mistake during installation of 
>>> creating a user "Rudi" instead of PI.
>>>> Is there a simple way of going back to PI?
>>
>> In one consideration you did not make a mistake: the new Raspberry Pi 
>> operating system "forces" one to create a user name other than the 
>> default 'pi' for security reasons.? The username can be forced to 
>> 'pi' for backwards compatibility.
>>
>> With that said, umm, I couldn't find how to change the username via? 
>> GUI either.?? .... I found /etc/xdg/openbox/lxde-pi-rc.xml?? which 
>> says near the top " <!-- Do not edit this file, it will be 
>> overwritten on install.?? Copy the file to $HOME/.config/openbox/ 
>> instead. --> "
>>
>> OK, the 'dot-config' means that's hidden so could explain why you 
>> couldn't find anything.? I checked here and have the .config but not 
>> an openbox subdirectory.???? Was going to suggest copying the LXDE-pi 
>> thing to LXDE-Rudi and edit as necessary but that ... Ah!? (coffee is 
>> kicking in! <g>
>>
>> ??? pi@raspberrypi:~ $ find? / -type f?? -iname LXDE*.* 2>/dev/null? 
>> | grep -i pi
>> ??? /etc/xdg/menus/lxde-pi-applications.menu
>> ??? /etc/xdg/openbox/lxde-pi-rc.xml
>> /usr/share/raspi-ui-overrides/desktop-directories/lxde-help.directory
>> /usr/share/raspi-ui-overrides/applications/lxde-logout.desktop
>> /usr/share/raspi-ui-overrides/applications/lxde-x-www-browser.desktop
>> /usr/share/raspi-ui-overrides/applications/lxde-x-terminal-emulator.desktop 
>>
>>
>> So it's at "/etc/xdg/openbox/lxde-pi-rc.xml".? I did find two (albeit 
>> quickly) instances of 'lxde-pi' which seem like should be changed to 
>> 'lxde-Rudi'.? Reminder: Linux is case-sensitive, unlike (the last 
>> time I used) Windows.
>>
>> ** Make a back up SD card before messing with any of this!! **
>>
>>
>> Might be easier and safer to use chgrp and chown.?? ls -l ("ell ess 
>> [space] hyphen ell") is probably a good place to start to see who 
>> owns, etc.? your files in question.
>>
>>
>>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>  
>       Virenfrei. www.avast.com 
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>  
>
>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...

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



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

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


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

End of Motion-user Digest, Vol 192, Issue 9
*******************************************

Reply via email to