User Guide to create a driver

54 views
Skip to first unread message

Craig Young

unread,
Aug 31, 2023, 4:06:18 PM8/31/23
to weewx-user
My weather station (Campbell Scientific CR300 data logger) is not supported by weewx.  What I can do though is take an existing driver that closely matches what I need and change it to create a new driver for the CR300.  I have looked around for a user guide on how to do this and I thought I had found one a few weeks ago but can't relocate it.  Is there a recommended User Guide for creating a new driver from an existing driver?  For this project is it better to download the driver source code to my raspberry pi, modify it and install it locally as a new driver rather than putting it in the public GitHub repositories.

Craig

gjr80

unread,
Aug 31, 2023, 4:39:10 PM8/31/23
to weewx-user
Have a look at the Porting to new hardware section in the Customization Guide. Perhaps that is what you saw? You might also find some benefit in looking through the Notes for Developers guide.

In terms of where to do your development/keep your driver - it's entirely up to you. A public GitHub repo is great, makes reversion easy and gives you an offsite backup in case the worst happens. Depending on what you want to do with GitHub it can be a bit daunting at first, but the effort is well worth it. The big plus for others is that users of the same/similar hardware now have access to a driver.

Gary

Craig Young

unread,
Aug 31, 2023, 5:04:22 PM8/31/23
to weewx-user
Thanks Gary, I will start with that.
Reply all
Reply to author
Forward
0 new messages