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.