Using Weewx with home-made weather station and RPi

191 views
Skip to first unread message

johnm...@btinternet.com

unread,
Mar 14, 2021, 11:08:24 AM3/14/21
to weewx-user
I have developed a simple Raspberry Pi based weather station using the BME280 temperature, pressure, humidity sensor and a Davis anemometer and wind vane.  I have written a short programme in Python3 which takes in the raw sensor values, does some calculations, prints the current measurements from each sensor and stores mean and max values of windspeed and average values for wind direction as a record in a LibreOffice spreadsheet at 5 minute archive intervals.

I now want to expand this to take advantage of the functionality of Weewx.  I've read much of the guidance in the Weewx wiki, but am still not clear on the best approach.  So, I'd be keen to hear from anyone who has already done this.  In particular, my questions are:

How much of the above functionality in my current python software would Weewx replace?
Is there a step-by-step guide available for writing a Weewx driver for a home-made station?

p q

unread,
Mar 14, 2021, 11:19:07 AM3/14/21
to weewx...@googlegroups.com
I'm not an expert so I'll leave it to the experts to offer advice. My only thought is you might want to take a look at the simulator driver to get an idea of what a driver looks like. 

My instinct is to first leave everything as it is and modify the simulator driver to read from your spreadsheet. Mostly to gain experience.

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/180621f8-50aa-45b8-9659-73ca03eb9257n%40googlegroups.com.


--
Peter Quinn
(415)794-2264

Tom Keffer

unread,
Mar 14, 2021, 11:33:54 AM3/14/21
to weewx-user
1. There is any number of threads on weewx-user and weewx-development on writing drivers for homemade weather stations. Try a search on 'homemade'
2. The Customizing Guide is the place to go for details on writing a driver. See the section Porting to new hardware.

On Sun, Mar 14, 2021 at 8:08 AM 'johnm...@btinternet.com' via weewx-user <weewx...@googlegroups.com> wrote:
--

storm...@gmail.com

unread,
Mar 14, 2021, 1:39:58 PM3/14/21
to weewx-user
Reply all
Reply to author
Forward
0 new messages