On Monday, September 26, 2016 at 9:20:09 PM UTC-4, Steve Sykes wrote:
>
> I still would like to know why the values in the database and webpage 
> don't agree, for instance the web page reports 1 mile and the database .62 
> for the same sample. I think weewx is saying 1 mile but means 1 km, even 
> though it is set to US units.
>

steve,

in the default installation, there are two fields added to each archive 
record (or loop packet, if binding=loop).  these are lightning_strikes (the 
number of strikes in the period) and avg_distance (the average of the 
distance for each of the strikes).  when you run weewxd directly, you 
should see these values, and the units of avg_distance will be in the unit 
system of whatever units your weather station hardware puts out (look at 
the usUnits field of record/packet).

these two fields will not be saved to the database until/unless you extend 
your database schema.  once you have extended the schema, you should see 
values for lightning_strikes and avg_distance in your database.  the units 
in your database will be in whatever unit system you specified in 
StdConvert.target_unit.

saving to a separate database has nothing to do with the weewx database 
specified in wx_binding.  if you set data_binding with a proper lightning 
database configuration, then you will see a table with three columns: 
dateTime, usUnits, and distance.  there will be a row for each lightning 
strike.  the distance in the lightning database is kilometers, since the 
unit system of the lightning database is weewx.METRIC.  once again, the 
lightning database has nothing to do with your wx_binding database.

what you see in web pages will depend on what you have written in your 
templates.

m

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to