Perhaps you could post your index.html.tmpl file? There may be other places
where tag shortcuts could be used. Or, maybe not...

On Mon, Mar 29, 2021 at 10:47 AM Paul Dunphy <[email protected]> wrote:

> I only have 19 multiplies (occurrences of the '*' character.)  4 of them
> are C to F that I'll replace with the tag, so that narrows it down to 15.
> I'll get it!
>
> - Paul VE1DX
>
> https://ve1dx.net/
>
>
> On 2021-03-29 2:41 p.m., Tom Keffer wrote:
>
> It shouldn't be hard to find at all. The version of index.html.tmpl that
> comes with the Standard skin has no  multiplies at all. It must be
> something you added. Just search for '*' and think about if there is any
> reason that the left hand side would be None.
>
> Also, why the C to F conversions? This can be done with the tag system.
>
> $current.outTemp.degree_F
>
> -tk
>
> On Mon, Mar 29, 2021 at 10:29 AM Paul Dunphy <[email protected]> wrote:
>
>> Thanks, Tom.  Unfortunately, I went to have lunch, and when I came back,
>> it was working.  This tells me it's dependent on something in the input
>> data that changed.  I'm calculating Beaufort Scale, doing C to F
>> conversions, for example.  It's windier now than it was at 6 AM.  Or the
>> sun angle is different.  Or a dozen other things.  Bugs that "fix
>> themselves" are the worst kind.  Look at that website now, and it's working
>> like it was all along.
>>
>> I will scour my index.html.tmpl file for multiplies to see if I can find
>> the "None," but no doubt there's an if statement or the like that isn't
>> true (or false) most of the time.  Talk about your needle in a haystack.
>>
>> Regardless, when it occurs again (should I not find it by looking today),
>> I can start commenting out chunks of code like a binary search and
>> narrowing it down in short order.
>>
>> On 2021-03-29 1:32 p.m., Tom Keffer wrote:
>>
>>       >snipped for brevity<
>>
>>
>> Mar 29 11:30:20 rhubarb python3[2322]: weewx[2322] ERROR
>> weewx.cheetahgenerator: ****  TypeError: unsupported operand type(s) for
>> *: 'NoneType' and 'float'
>>
>> Somewhere in /etc/weewx/skins/Standard/index.html.tmpl you are trying to
>> multiply two numbers together, and one of them (the first one) is 'None'.
>>
>> Scan the file and see where the multiplication is occurring. Then check
>> the value for None before multiplying.
>>
>> -tk
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/ae25429e-d310-03e0-6b07-4a197bcb8e2b%40gmail.com
>> <https://groups.google.com/d/msgid/weewx-user/ae25429e-d310-03e0-6b07-4a197bcb8e2b%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/G2yZaS-jqWI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEARBEPdejMJ_3a-AC0XWAjrVhTpsV-3wPKTfqqX8h6nzA%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEARBEPdejMJ_3a-AC0XWAjrVhTpsV-3wPKTfqqX8h6nzA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/0adcc7d9-13bb-97de-8e10-56583366df3e%40gmail.com
> <https://groups.google.com/d/msgid/weewx-user/0adcc7d9-13bb-97de-8e10-56583366df3e%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBu6cGGu06iPzUj%2ByLJAaap6iN1FqYsFCt0WB%2BBPNrrwA%40mail.gmail.com.

Reply via email to