Mikael,
The report_timing stanza that you currently have under the wxobs
section in weewx.conf generates the report once every hour.
That means that any changes you make to the configuration files will
not be propagated to the report pages (webserver) until the clock
chimes on the hour.
If you're not aware of that, it can make troubleshooting a real 'hair
pulling' exercise! What you change will not appear when you expect it.
Comment that line out until everything is working, then re-instate it
if you want to save some CPU cycles.
restart weewx when it's commented out.
This is not a bug that I can reproduce here (I'm running version 0.7.2).
Any temperature changes , combinations, that I make here to skin.conf
in this version are acted on and the generated page (index.php)
adjusts itself accordingly.
If you still have the temperature_convert line uncommented in
wxobs/skin.conf as you had before...
temperature_convert = FtoC # degree F in database to degree C in report
then any database values for temperature will have the FtoC conversion
applied. That conversion is found in the webservers index.php file
found on (line 103)
function FtoC($x)
{
return ($x - 32.0) * 5.0 / 9.0;
}
If that skin.conf option has been selected (as you've done) , and is
being applied to the generated index.php file then the calls to it
will be made from various locations such as found around line 711 (and
others)...
echo "<td>$metTemp</td>";
$x = FtoC ($latest_row[2]);
$metappTemp = round($x, 1);
echo "<td>$metappTemp</td>";
$x = FtoC ($latest_row[3]);
$metdew = round($x, 1);
That FtoC fuction name can be one of 3 things. FtoC, CtoF or NTC
(NoTemperatureCoversion)
If you have anything other than FtoC then the index.php script is not
being generated correctly.
As it's a skin.conf option, any changes you make will be propagated
through to index.php on the next report cycle (archive interval).
Check that what I've outlined above has been applied to your index.php
file. You can also also check it after you've changed CtoF or no
conversion (NTC) when the values should change accordingly.
If nothing is changing, then we need to dig a lot deeper and to do
that we'll take it off-list, to my address in these headers.
Send me your full syslog, the last copy of wxobs/index.php and your
weewx.conf (run that file through wee_debug and check that it's been
correctly stripped of passwords before sending).
On 06/09/2020, Mikael Fredriksson <[email protected]> wrote:
> Glenn, thank you for your answer!
>
> I did the change and moved those lines to weewx.conf, then I restarted
> Weewx.
> But this doesn't change the values unit. It's still in US unit (F).
> I hope that it was clear that I meant the values, not the labels.
>
> I looked at the section How options work in the Customizing Guide that TK
> pointed at but I can't figure out if that could help me... I feel that it is
> a little too advanced for me at this point.
>
> This is how it looks in weewx.conf after the change.
>
> [[wxobs]]
> HTML_ROOT = /var/www/html/weewx/wxobs
> skin = wxobs
> report_timing = 0 * * * *
> [[[Units]]]
> [[[[Groups]]]]
> group_rain = mm
> group_temperature = degree_C
> group_speed = km_per_hour
>
> What else can I provide to get help to sort this out?
>
> /Mikael
>
> --
> 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/3fe91512-4cc9-4fa5-b58a-b1abb45bd8c1o%40googlegroups.com.
>
--
Cheers
Glenn
rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie
--
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/CAAraAzir84oABaz-bWYki63jxwoHVH2rQXhP%2BD0PbicGVFnaow%40mail.gmail.com.