See the section *Porting to new hardware <https://www.weewx.com/docs/5.1/custom/drivers/>* in the docs. I think it answers all of your questions.
-tk On Thu, Jul 31, 2025 at 12:22 PM HA3MAK <karika...@gmail.com> wrote: > Hi, > > I'm new to weewx development so maybe I missed what I'm looking for but I > can't find it in the docs. I'm building a weather station with a Bosch > BME280 sensor for temperature, humidity and pressure, a TechnoLine TX-20 > anemometer and a technoline WS2307RAIN sensor. My driver works fine but I > have became uncertain aboout properties of the packet in genLoopPackets(). > I send the following packets: > > > In case of the following metrics I'm sure that I use the correct metrics > and units: > > #Time of the packet: int(time.time() + 0.5) > _packet['dateTime'] > > #Type of metrics. I use weewx.METRIC > _packet['usUnits'] > > # Wind speed in km/h > _packet['windSpeed'] > > # Wind direction in degrees > _packet['windDir'] > > #Outdoor temperature in celsius > _packet['outTemp'] > > #Outdoor humidity in % > _packet['outHumidity'] > > #Pressure in hPa/mbar; "barometer" is the "relative pressure" at the > altitude of my station > _packet['pressure'] > > > Here's the part I'm unsure with: > > #Rain quantity between packets in cm/h? > _packet['rain'] > > My rain sensor gives impulses. 1 impulse equals to 0.518 mm rain. If I > detect an impulse I send a packet with "_packet['rain'] = 0.518/10" and if > I didn't detect new impulse the next packet reports "_packet['rain'] = 0". > Is it correct? > > So, is there any documentation where I can see the accepted packet > properties with units and functions? > > Thanks, HA3MAK > > -- > You received this message because you are subscribed to the Google Groups > "weewx-development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to weewx-development+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/weewx-development/6fdc09ab-9202-41f0-a1dd-d790bf9a7856n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/6fdc09ab-9202-41f0-a1dd-d790bf9a7856n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-development+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/weewx-development/CAPq0zECsUuzG%3DDgN-VpSkUyecX5z7arb25mxq0r2%2BfGzthvkvA%40mail.gmail.com.