Maybe just go metric..... :-) There are only 3 countries officially not metric in the world.
On Saturday, 8 August 2020 07:34:44 UTC+10, Randy wrote: > > Running weewxd directly nothing weird except a python error with weather34 > and I am not looking at that. I have the default skin. > > target_unit = US > which was the default. > > *select min(usUnits), max(usUnits);* > No such column usUnits > > I can list tables. A bunch with the name archive. > > select datetime(dateTime, 'unixepoch', 'localtime'), outTemp, usUnits from > archive order by dateTime desc limit 20; > 2020-08-05 08:50:00|30.3946778669233|1 > 2020-08-05 08:45:00|30.4855480335825|1 > 2020-08-05 08:40:00|30.5857060224786|1 > 2020-08-05 08:35:00|30.6951041638333|1 > 2020-08-05 08:30:00|30.8136903900564|1 > 2020-08-05 08:25:00|30.9414082605267|1 > 2020-08-05 08:20:00|31.0781969884552|1 > 2020-08-05 08:15:00|31.2239914698158|1 > 2020-08-05 08:10:00|31.3787223143316|1 > 2020-08-05 08:05:00|31.5423158785006|1 > 2020-08-05 08:00:00|31.7146943006468|1 > 2020-08-05 07:55:00|31.8957755379769|1 > 2020-08-05 07:50:00|32.0854734056296|1 > 2020-08-05 07:45:00|32.2836976176936|1 > 2020-08-05 07:40:00|32.4903538301798|1 > 2020-08-05 07:35:00|32.6378788638721|1 > 2020-08-05 07:30:00|32.2300093984879|1 > 2020-08-05 07:25:00|32.4344265298156|1 > 2020-08-05 07:20:00|32.609169593389|1 > > Not sure why I have no data coming in right now. That might be the issue. > > I am attaching syslog file. > > Thank you > Randy > > > > On Thursday, August 6, 2020 at 7:23:51 PM UTC-4, Tom Keffer wrote: >> >> Assuming you have not made any modifications, here are some things to try >> >> 1. Run weewxd directly >> <http://weewx.com/docs/usersguide.htm#Running_directly> from the command >> line. It will print out LOOP packets and archive records. What unit system >> do they use? Do the values make sense? >> >> 2. If that doesn't help, double check your copy of weewx.conf. What is >> the value for target_unit.? >> >> 3. Instead of guessing what's in your database, see what is actually in >> it. Here are a couple of queries to try. This assumes your database is at >> /var/lib/weewx/weewx.sdb >> >> $ *sqlite3 /var/lib/weewx/weewx.sdb* >> # Make sure there aren't mixed units in the database: >> sqlite> *select min(usUnits), max(usUnits);* >> # Print out the last 20 records: >> sqlite> *select datetime(dateTime, 'unixepoch', 'localtime'), outTemp, >> usUnits from archive order by dateTime desc limit 20;* >> >> Do these values look reasonable? >> >> 4. Finally, when all else fails, send the log >> <https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user>! >> >> -tk >> >> >> >> >> >> On Thu, Aug 6, 2020 at 4:05 PM Randy <[email protected]> wrote: >> >>> I am using this driver: >>> https://github.com/captain-coredump/weatherflow-udp and specifically >>> the settings for the tempest here: >>> https://github.com/captain-coredump/weatherflow-udp/blob/master/sample_Tempest_sensor_map. >>> >>> The docs for the tempest UDP indicate the data is metric. Also, I grabbed >>> packets using WIreShark and was able to confirm metric. Looking at the >>> Python code for the drive I see " 'usUnits' : weewx.METRICWX}" >>> >>> Randy >>> >>> On Thursday, August 6, 2020 at 7:14:55 AM UTC-4, John Kline wrote: >>>> >>>> If the driver is incorrectly setting usUnits to ‘US’, one would see >>>> this behavior. What driver are you using? Perhaps you are missing a >>>> setting >>>> in weewx.conf to tell the driver the station is sending metric data. BTW, >>>> do you know for sure if the data coming from the weather station is metric? >>>> >>>> On Aug 6, 2020, at 3:23 AM, Randy <[email protected]> wrote: >>>> >>>> >>>> I can change the unit in the skin without issue. I guess the problem >>>> is that it appears the data in the database (which is set to US) is >>>> actually metric data. So when I change the units in the skin, the data is >>>> displayed. For example, the default skin for weewx shows my temp as: >>>> 30.4°F. When that temp is actually 30.4 C. Maybe I should go set the >>>> DB to Metric (which I saw info on and the info indicated this was >>>> challenging). Or maybe a clean reinstall. >>>> >>>> Randy >>>> >>>> On Wednesday, August 5, 2020 at 9:55:47 PM UTC-4, gjr80 wrote: >>>>> >>>>> Hi, >>>>> >>>>> A couple of WeeWX basics might help. You may well find that different >>>>> units are used by different parts of WeeWX depending on a number of >>>>> things. >>>>> The driver used to obtain data from your station may use metric or US >>>>> customary units, this is dependent on your station and/or the driver. >>>>> Once >>>>> in WeeWX the data will be converted (if necessary) to the units used >>>>> within >>>>> your WeeWX database, this could be one of the Metric based unit systems >>>>> supported by WeeWX or it could be US customary. The default is US >>>>> customary >>>>> and this is where the StdConvert service comes into play, StdConvert >>>>> converts the data from the driver from whatever units the driver used to >>>>> whatever units your database uses. Then you have the reporting system, >>>>> the >>>>> reporting system uses the Cheetah template engine and a system of tags >>>>> that >>>>> can be used to specify, among other things, the units for a given >>>>> observation/metric you are displaying. Again there is a default and when >>>>> you installed WeeWX you should have been asked what display units to use, >>>>> eg: >>>>> >>>>> Indicate the preferred units for display: ['us', 'metric'] >>>>> units [metric]: >>>>> >>>>> Your answer here would have been used to set the defaults. So there >>>>> are three broad areas where data exists within WeeWX and it is quite >>>>> possible that each could be different, at the end of the day whether the >>>>> data from station to WeeWX or within the WeeWX database is stored in US, >>>>> metric or Martian units is mostly irrelevant, what most people are >>>>> concerned with are what units are displayed on screen. >>>>> >>>>> If you are using the skins packaged with WeeWX (Standard or Seasons) >>>>> then you can alter the displayed units by changing config settings in >>>>> weewx.conf, these settings will likely have been set at install but >>>>> can easily be changed. You should find all you need in the How to >>>>> change units section >>>>> <http://weewx.com/docs/customizing.htm#how_to_change_units> in the >>>>> Customization Guide. If you are using some other skin then it is possible >>>>> they follow a similar system or they could do things in their manner. >>>>> Best >>>>> to seek guidance from the skin author/maintainer. >>>>> >>>>> Gary >>>>> >>>>> On Thursday, 6 August 2020 02:21:43 UTC+10, Randy wrote: >>>>>> >>>>>> I am new to weewx. I have data coming in from my device is coming in >>>>>> as metric (specifically, temp is C). I want to display that data as US, >>>>>> F. The default weewx skin is showing the data as metric values like 20F >>>>>> which is actually 20C whereas it should be 68F. Where does this >>>>>> conversion >>>>>> happen or where do I chance the configuration? >>>>>> >>>>>> Thank you >>>>>> Randy >>>>>> >>>>> -- >>>> 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/5ebb452c-53b0-4d91-a638-d80a99b3f986o%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/5ebb452c-53b0-4d91-a638-d80a99b3f986o%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> -- >>> 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/82b6fe11-9b6f-4e19-9996-f4abf30c5debo%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/82b6fe11-9b6f-4e19-9996-f4abf30c5debo%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/39ce05d1-c079-46e2-8922-c07a20bb76f1o%40googlegroups.com.
