On Saturday, 12 January 2019 07:12:04 UTC+10, monmul wrote: > > weewx.UnitError: Unit system of incoming record (0x10) differs from > 'archive' table in 'weewx.sdb' database (0x01) >
This line is telling us that the unit system used by your database (in this case 0x01 or US customary) does not match the unit system of the record (in this case 0x10 or Metric) that is about to be saved to database. When you rebuilt your system what did you put in weewx.conf for setting target_unit under [StdConvert], it should match the units system of your database (ie target_unit = US) but I am guessing it says target_unit = METRIC? If so you have two options. Firstly, you can change target_unit back to target_unit = US or secondly you can delete you database and let weeWX build a new one when your restart weeWX. The advantage of the first option is that you retain any existing data, for the second option you lose any historical data and your database will now be in Metric units not the default US. The unit system of your database does not really matter, weeWX handles all conversions so you will still see your preferred (Metric ?) units displayed in reports. It is just the underlying database data that is in US customary units. Most folks never interact directly with their databases anyway. You will find a bit of information about unit systems under [StdConvert] <http://weewx.com/docs/usersguide.htm#StdConvert> in the User's Guide and under Changing the unit system <http://weewx.com/docs/customizing.htm#Changing_the_unit_system> and in the Units appendix <http://weewx.com/docs/customizing.htm#units> in the Customization Guide. Of course if target_unit actually is set to US then we have some other issue going on. Gary -- 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]. For more options, visit https://groups.google.com/d/optout.
