How to debug weather34 skin?

93 views
Skip to first unread message

jmc...@gmail.com

unread,
May 17, 2022, 8:29:47 PM5/17/22
to weewx-user
Hi!

Is there any way to debug weather34 skin?

I have weewx running for a couple of years with beltchertown skin and no problems at all. I'm running weewx 4.8.0 on Debian 11 with php8.1 and apache.

Weewx still running fine with all data (from past 2 years and current data), weather34 installers runs fine and no error/problem....but just a blank page while trying to open html report.
Apache shows no errors, just a blank page on dev console (from browser).

Also, weewx shows no error while doing report generation.

What else can I do to debug this problem? I'm kind lost here.

vince

unread,
May 17, 2022, 10:18:09 PM5/17/22
to weewx-user
(This thread) seems to indicate you are likely missing a php prerequisite - perhaps the sockets stuff (?)

jmc...@gmail.com

unread,
May 18, 2022, 9:02:42 AM5/18/22
to weewx-user
Solved!
The problem is that some values from weewx are empty, causing number_forma() function to fails (expect first argument to be a float, receiving a string (empty).
I've solved casting the first argument to float, descpiste the value (w34CombinedData.php):

$weather["temp_indoor_trend"] = number_format(floatval($weewxrt[22]), 1) - number_format(floatval($weewxapi[70]), 1);
$weather["temp_humidity_trend"] = number_format(floatval($weewxrt[23]), 1) - number_format(floatval($weewxapi[71]), 1);

Steven Sheeley

unread,
May 19, 2022, 8:21:17 AM5/19/22
to weewx-user
What version of the skin are you running?
Reply all
Reply to author
Forward
0 new messages