Display units/labels and database units are irrelevant when it comes to inserting an observation into loop packets or archive records (or for that matter any packet/record/python dict containing a field usUnits). What you must do is insert observations that reflect the unit system in the packet/record. This is normally done by checking the usUnits field in the packet and converting the incoming observation to the units used for the relevant observation group in the unit system specified by the usUnits field. In some cases it may appear that you can get away with not doing this conversion ie it may just work. However, this is likely just good luck and should something ever change, or should someone else use your code, it may well fail as different drivers emit loop packets/archive records using different unit systems.
As for the OP problem, it is impossible to give any specific advice without knowing the config of your system, ie what driver/station and how are you getting pressures (ie one or more of WeeWX fields altimeter, pressure or barometer) into WeeWX. 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/fc97af1e-c4c6-4edd-bdbf-f2f4ae7bb56an%40googlegroups.com.
