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: Getting a Percent Sign (%) into on-Screen Text (tosiara)
   2. Re: text scale bug (tosiara)


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

Message: 1
Date: Wed, 18 Nov 2020 11:36:41 +0200
From: tosiara <tosi...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Getting a Percent Sign (%) into on-Screen
        Text
Message-ID:
        <CACHTdwRO4PQAbsSGW_6GmhWsZ1SbDf3T27=G5GL=uezqzfh...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Try to update to 4.3.2

On Wed, Nov 18, 2020 at 1:21 AM John Vaccaro <jvacc...@gmail.com> wrote:

> Hello;
>
> Any update on where this bug stands in the list of priorities and when a
> fix might be expected?
>
> If anyone has found a workaround that will let me display the percent sign
> (%) in the text overlays, I'd be pleased to hear it.
>
> --
>
> All the Best?
>
> *John *
> On 10/20/20 7:17 AM, tosiara wrote:
>
> When using curl to communicate with motion, all the params must be
> URL-encoded as required by HTTP protocol. Percent symbols is a special one
> that is used to encode hex values. In order to use percent symbol as is it
> is required to encode it as double percent: %%, or as a hex value (like you
> are using) %25
>
> However, the percent symbol is also a reserved special symbol in motion.
> So after the URL conversion you will end up having a string with a trailing
> percent sign. Which confuses motion as it expects a specifier to follow.
>
> Registered as a bug: https://github.com/Motion-Project/motion/issues/1227
>
>
> On Mon, Oct 12, 2020 at 11:41 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
>
>
>
> _______________________________________________
> Motion-user mailing 
> listMotion-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/motion-userhttps://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Wed, 18 Nov 2020 12:49:48 +0200
From: tosiara <tosi...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] text scale bug
Message-ID:
        <CACHTdwSY+QzRb1m=uazbokq5lsatno7kkm3pcdvggo5jryu...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You probably meant text_rightfor your example?

I tried setting:


# Text to be overlayed in the lower right corner of images.
text_right "%D \n%N \n%Y-%m-%d %T-%q \n\n"
text_scale 2

And no matter which changed pixels number is shown the scale remains the
same.

Do you have a sample video recording that demonstrates the issue?
And please send the exact config file you were testing with

On Sat, Nov 7, 2020 at 11:31 PM S Andreason <sandrea...@gmail.com> wrote:

> Hi developers,
>
> I have found some settings of text_right that are edge case, causing the
> text_scale to alternate between 1 and 2 multiple times in the same event.
>
> text_scale "%D\n%Y-%m-%d %T-%q\n\n" stays at scale 2
> Then I started adding some vars back in:
>
> text_scale "%D \n%N \n%Y-%m-%d %T-%q \n\n" is text_scale 1 when %D >=
> 10000 and scale 2 when %D <= 9999
>
> text_scale "%D \n%K,%L \n%N \n%Y-%m-%d %T-%q\n%{fps}" is also switching
> at %D = 10000
> In this last case, I saw scale stay at 2 with %D > 10000 so perhaps
> there is another variable yet to be discovered.
>
> Stewart
>
>
> S Andreason wrote:
> > I thought I had it figured out, but it is still jumping back and forth
> > between text_scale 1 and 2, even though I am keeping the text in the
> > lower right quarter of screen.
> >
> > My current setting:
> > text_right %D \n%K,%L \n%N \n%Y-%m-%d %T-%q\n%{fps} MrDave wrote:
> >>>> Anything special about the text being scaled?  Perhaps put in the
> >>>> %{ver} just to make sure the correct version is being run.
> >>>
> >>
> >
>
>
>
> _______________________________________________
> 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 8
*******************************************

Reply via email to