On Thursday, July 4, 2019 at 8:30:49 AM UTC-4, Tadej Javornik wrote: > > When i made weewx for the first time I didn change unit sistem I left it > in US so my database is in US format. My webpages that are generated are > all in METRIC (mm, m/s..) what is okay because i'm from EU(Slo.) I don't > really know how I set it up that this is working because it was 5 years > ago. All my other services are plain numbers, I used database schema and > occupied those fields. At first I was having problems because for example I > wanted to put in extraTemp1 my data from .txt file which was measurement > from dust sensor( ex. 330) but the weewx thought that it was temperature in > F and it converted it to C in web page generation so the number was > different. I then simply used another database field with no calculation > example:UV.. So I made quiet a mess.. But it is working normaly :) > But I didn't touch any rain data .. >
any service that adds observations to a packet/record must ensure that the units of each observation match the unit system of the packet/record to which it is adding any driver that creates a packet/record must ensure that the units of each observation are consistent with the unit system of the packet you must also ensure that the units are defined for any database fields that have units, otherwise you'll get unexpected behavior in your reports but that is not really the issue here if 'augment_record' is true (the default), then the mqtt uploader attempts to add some rain calculations to the packets it uploads. it does this using the get_record method in restx, whether or not there are any rain observations in the packet, and no matter what the unit system of the packet as a short-term fix, set augment_record=False then restart weewx 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e2a70d41-aeeb-461c-8349-df535f2191f3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
