Formatted data presented to WeeWx through driver

34 views
Skip to first unread message

DR

unread,
Apr 12, 2026, 11:10:03 PM (4 days ago) Apr 12
to 'Jon Fear' via weewx-user
I'm on the brink of trying to modify a driver to take data from a source
it wasn't written for, but is pretty close.

Something that the Campbell does is digitize the voltage on the inputs
to a lot of digits. For those of us recalling our physics or chemistry
hearing the Teaching Assistants drill into us that just because it has
six digits beyond the decimal point, doesn't mean it is helpful or true.

I am fine tuning the datalogger to put out the data in the most helpful
form.  I can just send the value with all the decimals to the packet
generator and therefore to WeeWx, or I can go to the 'trouble' of
formatting the values to something more sane, such as tenths for the
temperature, round off the wind speed to whole digits and the direction
to the degree, and so on.


Question (I haven't found this talked about or didn't look in the right
place):

Does Weewx work better with values like 22.2 vs. 22.21145 if it were to
be optimal for the amount of work that it has to do for summaries, etc.
or storing into the database archive?

Once I get that cleaned up, if necessary (obviously it is easier to just
pass all the decimal places, but to me makes little sense) then I'll
move on to getting the driver to properly packetize them.

Dale


Vince Skahan

unread,
Apr 12, 2026, 11:39:00 PM (4 days ago) Apr 12
to weewx-user
You are overthinking. Weewx stores data into the db and calculates and presents as you specify. You can save the data any way you see fit.

DR

unread,
Apr 13, 2026, 8:46:21 AM (4 days ago) Apr 13
to weewx...@googlegroups.com
Thanks.

I didn't know if there was more 'work' done with long values.

Dale


Reply all
Reply to author
Forward
0 new messages