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: Adding text to photos/videos (bobby) 2. Re: Adding text to photos/videos (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Thu, 19 Nov 2020 12:34:36 -0500 From: bobby <architectofthefut...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Adding text to photos/videos Message-ID: <caebhf_dthxsft3rpt8hfo-e6qzsaetnwo2wbxswzhadmwsg...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" curl http://localhost:8080/1/config/set?text_left=$TEXTLEFT On Mon, Nov 2, 2020 at 1:48 PM tosiara <tosi...@gmail.com> wrote: > Can you paste the exact full curl command that does not work for you using > 4.3.2 version? > > On Mon, Nov 2, 2020 at 8:14 PM bobby <architectofthefut...@gmail.com> > wrote: > >> I did all of this. The only difference I did was that I set >> webcontrol_parms to 2. >> It still does not work - same error. >> >> On Mon, Nov 2, 2020 at 12:26 PM Babau <ba...@mail.com> wrote: >> >>> In motion.conf add or edit: >>> >>> /# Webcontrol configuration parameters// >>> //############################################################// >>> // >>> //# Port number used for the webcontrol.// >>> //webcontrol_port 8080// >>> // >>> //# Restrict webcontrol connections to the localhost.// >>> //webcontrol_localhost off// >>> // >>> //# Type of configuration options to allow via the webcontrol.// >>> //webcontrol_parms 1/ >>> >>> >>> in camera1.conf or motion.conf add or edit: >>> >>> /# Numeric identifier for the camera.// >>> //camera_id 1/ >>> >>> /# The port number for the live stream.// >>> //stream_port 8081// >>> / >>> >>> in the script >>> >>> >> curl http://localhost:8080/1/config/set?text_left=$TEXTLEFT >>> >>> _for me this works_ >>> >>> Il 02/11/2020 14:35, bobby ha scritto: >>> > I am trying to add text to photos/videos. I have the following in a >>> > script that I execute: >>> > #!/bin/bash >>> > LOAD=`top -b -n2 | grep "Cpu(s)" | awk '{print $2+$4}' | tail -n1` >>> > TEXTLEFT="" >>> > TEXTLEFT=$TEXTLEFT"System at %{host}" >>> > TEXTLEFT=$TEXTLEFT"\nCPU $LOAD " >>> > TEXTLEFT=$TEXTLEFT"\nfps: %{fps}" >>> > TEXTLEFT=$TEXTLEFT"\nDate: %Y-%m-%d" >>> > TEXTLEFT=$TEXTLEFT"\n%T-%q" >>> > # Replace special chars with needed urlcodes >>> > TEXTLEFT="${TEXTLEFT//%/%25}" #Replace % with %25 >>> > TEXTLEFT="${TEXTLEFT// /%20}" #Replace spaces with %20 >>> > TEXTLEFT="${TEXTLEFT//\{/%7B}" #Replace { with %7B >>> > TEXTLEFT="${TEXTLEFT//\}/%7D}" #Replace } with %7D >>> > curl http://localhost:8080/1/config/set?text_left=$TEXTLEFT >>> > >>> > When I run it, this is the response that I get: >>> > <!DOCTYPE html> >>> > <html> >>> > <body> >>> > <h1>Not Valid</h1> >>> > <p>The requested URL is not valid.</p> >>> > </body> >>> > </html> >>> > <a href=/><– back</a> >>> > </body> >>> > </html> >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > 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 >>> >>> >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> 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 > > _______________________________________________ > 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: 2 Date: Thu, 19 Nov 2020 22:03:57 +0200 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Adding text to photos/videos Message-ID: <cachtdwqommw3vmy-7q4nlhiyewpmlm6kon4cozdzf1qsuqz...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" TEXTLEFT in this command is a variable, I can't see it Can you save the whole command? On Thu, Nov 19, 2020 at 7:36 PM bobby <architectofthefut...@gmail.com> wrote: > curl http://localhost:8080/1/config/set?text_left=$TEXTLEFT > > On Mon, Nov 2, 2020 at 1:48 PM tosiara <tosi...@gmail.com> wrote: > >> Can you paste the exact full curl command that does not work for you >> using 4.3.2 version? >> >> On Mon, Nov 2, 2020 at 8:14 PM bobby <architectofthefut...@gmail.com> >> wrote: >> >>> I did all of this. The only difference I did was that I set >>> webcontrol_parms to 2. >>> It still does not work - same error. >>> >>> On Mon, Nov 2, 2020 at 12:26 PM Babau <ba...@mail.com> wrote: >>> >>>> In motion.conf add or edit: >>>> >>>> /# Webcontrol configuration parameters// >>>> //############################################################// >>>> // >>>> //# Port number used for the webcontrol.// >>>> //webcontrol_port 8080// >>>> // >>>> //# Restrict webcontrol connections to the localhost.// >>>> //webcontrol_localhost off// >>>> // >>>> //# Type of configuration options to allow via the webcontrol.// >>>> //webcontrol_parms 1/ >>>> >>>> >>>> in camera1.conf or motion.conf add or edit: >>>> >>>> /# Numeric identifier for the camera.// >>>> //camera_id 1/ >>>> >>>> /# The port number for the live stream.// >>>> //stream_port 8081// >>>> / >>>> >>>> in the script >>>> >>>> >> curl http://localhost:8080/1/config/set?text_left=$TEXTLEFT >>>> >>>> _for me this works_ >>>> >>>> Il 02/11/2020 14:35, bobby ha scritto: >>>> > I am trying to add text to photos/videos. I have the following in a >>>> > script that I execute: >>>> > #!/bin/bash >>>> > LOAD=`top -b -n2 | grep "Cpu(s)" | awk '{print $2+$4}' | tail -n1` >>>> > TEXTLEFT="" >>>> > TEXTLEFT=$TEXTLEFT"System at %{host}" >>>> > TEXTLEFT=$TEXTLEFT"\nCPU $LOAD " >>>> > TEXTLEFT=$TEXTLEFT"\nfps: %{fps}" >>>> > TEXTLEFT=$TEXTLEFT"\nDate: %Y-%m-%d" >>>> > TEXTLEFT=$TEXTLEFT"\n%T-%q" >>>> > # Replace special chars with needed urlcodes >>>> > TEXTLEFT="${TEXTLEFT//%/%25}" #Replace % with %25 >>>> > TEXTLEFT="${TEXTLEFT// /%20}" #Replace spaces with %20 >>>> > TEXTLEFT="${TEXTLEFT//\{/%7B}" #Replace { with %7B >>>> > TEXTLEFT="${TEXTLEFT//\}/%7D}" #Replace } with %7D >>>> > curl http://localhost:8080/1/config/set?text_left=$TEXTLEFT >>>> > >>>> > When I run it, this is the response that I get: >>>> > <!DOCTYPE html> >>>> > <html> >>>> > <body> >>>> > <h1>Not Valid</h1> >>>> > <p>The requested URL is not valid.</p> >>>> > </body> >>>> > </html> >>>> > <a href=/><– back</a> >>>> > </body> >>>> > </html> >>>> > >>>> > >>>> > >>>> > >>>> > _______________________________________________ >>>> > 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 >>>> >>>> >>>> _______________________________________________ >>>> 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 >>> >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> 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 > > _______________________________________________ > 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... ------------------------------ ------------------------------ 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 173, Issue 10 ********************************************