Patrick, The code that reads the pressure from your BMP280 returns a value in hPa and the driver adds this value to loop packets as the pressure field. The problem is that the units field for loop packets is being set to US (within weeWX loop packets and archive records both have a field named units that determines the unit system used by that packet/record. There are three unit systems used by weeWX; US, Metric and MetricWX. Each of these units systems has a different combination of units for obs like temperatures, wind speeds, rain and pressures. It generally does not matter what unit system is used use but you must make sure that any values you add to the packet/record are in the correct units). This means that pressure related fields (altimeter, barometer and pressure are the common ones) will be interpreted by weeWX as being in units of inHg. So weeWX takes your pressure of 1019.49799998 as being 1019.49799998 inHg which falls outside the min/max limits, hence the error you are getting and your pressures are set to None. I suspect you will find a similar issue with temperatures as the US unit system requires temperatures to be in F (I suspect your BMP280 code will return temperatures in C). Humidity is not a problem as that is % which is the same in all unit systems that weeWX uses.
So what is the solution? You have two options. Option one is to continue to emit loop packets using the US unit system presently in use, that means you will need to change your temperatures to F, rain to inches, pressure to inHg and wind speeds to mph. The other option is to change the unit system of your loop packets to either Metric or MetricWX, you can then leave your temperature as C and pressure as hPa. Wind speed and rain will need to be in kph or m/s and cm or mm respectively. Have a look at the units used by each observation type in each of the three unit systems. You will find that detail in the Units appendix <http://weewx.com/docs/customizing.htm#units> to the Customization Guide <http://weewx.com/docs/customizing.htm>. I suggest you read through and understand each of the unit systems. If it were me I would be changing the genPackets() method to emit a packet in either Metric or MetricWX (ie 'usUnits': weewx.METRIC or 'usUnits': weewx.METRICWX) and then (as required) change your wind speed and rain calculations to provide values in the respective units for the unit system you have chosen. There is a bit to digest there, I will let you see how you go with that. Gary On Tuesday, 8 January 2019 00:34:32 UTC+10, Patrick Tranchant wrote: > > hello Gary > thanks; I joint in attach files, the follows : > weewx.conf, byows.py ( driver done by PAT ) and skin.conf > Don't worry for user,password etc; My station is not again on Internet. > > I search also but I am not a programmer > > Patrick > > On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote: >> >> hello I am a newbie from France ( sorry for my english ) >> >> I want to use weewx on a raspberry with a weather station built by myself >> (view on Magpi) >> I don't see my station on your website to configure : >> >> Weather Station Hardware Comparison: I don't found my weather station. >> Do you have a solution or how to configure Weewx >> >> thank you for your help >> >> Patrick >> > -- 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.
