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. Getting a Percent Sign (%) into on-Screen Text (John Vaccaro) 2. Re: Getting a Percent Sign (%) into on-Screen Text (Steve) ---------------------------------------------------------------------- Message: 1 Date: Mon, 12 Oct 2020 16:40:39 -0400 From: John Vaccaro <jvacc...@gmail.com> To: motion-user@lists.sourceforge.net Subject: [Motion-user] Getting a Percent Sign (%) into on-Screen Text Message-ID: <4499cd28-6cf8-40f0-f350-2deeb1ce5...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Hello Motion Users; I'm using Motion 4.3.1-1 on a Raspberry Pi 3 Model2? using PiOS (Raspbian GNU/Linux 10 (buster); Kernel 5.4.51-v7 5.4.51-v7) All is working as advertised and I have bash code to collect weather and rainfall stats and put them into the picture using text_left via /curl/. The problem I'm encountering is trying to include the Percent sign (%) after the humidity level. No amount of jiggering will get the % appended to the humidity value. This is the string I am feeding to string_left that works correctly: /Partly%20Cloudy%2079F%20Humidity%3A60\nWind:South@{10}mph/ This string gets me an error message from Motion daemon: /Mostly%20Cloudy%2081F%20Humidity%3A58%25\nWind:South@{11}mph/ The error message is *The server did not understand your request.* What do I do to protect the /%/ sign or its hex equivalent /%25/ from having Motion interpret**the string as a hex code other than that of the percent sign?* * -- All the Best? /John / -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Mon, 12 Oct 2020 15:16:50 -0600 From: Steve <sch...@msn.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Getting a Percent Sign (%) into on-Screen Text Message-ID: <mwhpr0501mb3739ef4a344224c7a45ed4efc5...@mwhpr0501mb3739.namprd05.prod.outlook.com> Content-Type: text/plain; charset="utf-8" Try putting a backslash "\" right before the "%" On Oct 12, 2020, 2:42 PM, at 2:42 PM, John Vaccaro <jvacc...@gmail.com> wrote: >Hello Motion Users; > >I'm using Motion 4.3.1-1 on a Raspberry Pi 3 Model2? using PiOS >(Raspbian GNU/Linux 10 (buster); Kernel 5.4.51-v7 5.4.51-v7) > >All is working as advertised and I have bash code to collect weather >and >rainfall stats and put them into the picture using text_left via >/curl/. > >The problem I'm encountering is trying to include the Percent sign (%) >after the humidity level. > >No amount of jiggering will get the % appended to the humidity value. > >This is the string I am feeding to string_left that works correctly: >/Partly%20Cloudy%2079F%20Humidity%3A60\nWind:South@{10}mph/ > >This string gets me an error message from Motion daemon: >/Mostly%20Cloudy%2081F%20Humidity%3A58%25\nWind:South@{11}mph/ > >The error message is *The server did not understand your request.* > >What do I do to protect the /%/ sign or its hex equivalent /%25/ from >having Motion interpret**the string as a hex code other than that of >the >percent sign?* >* > >-- > >All the Best? > >/John / > > >------------------------------------------------------------------------ > > > >------------------------------------------------------------------------ > >_______________________________________________ >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 172, Issue 7 *******************************************