IMG_6646.jpeg

Beacon Hill Weather

Beacon Hill Weather (also known as PyWeather 4 internally to keep up with the PyWeather naming scheme) is a solar-powered weather station that I’ve been building since May 2024. It is my most ambitious project from a software and hardware perspective, combining 4 software stacks and countless hardware iterations to complete.

The premise is relatively simple - I’ve always wanted a weather station since I was a kid, but now as an adult engineer, I wanted to challenge myself to build one, piece by piece, instead of buying one off the shelf.

Beacon Hill Weather had some extra challenges - it needed to be entirely solar-powered (no reliable wired power on my roof), communicate on Sub-GHz radio (2.4 GHz Wi-Fi isn’t reliable in a dense urban environment), and be New England weather-proof (single digit temperatures with heavy snow in January, but 95+ degree days in the summer).

In May 2024, I began piecing together the hardware & software necessary to make Beacon Hill Weather - the station itself, the receiver for data, a backend API, and the frontend. The station began sending readings to the API in July, but the API has a September 4 cutoff as that’s when reliable daily readings began.

Throughout the rest of 2024 and into mid 2025, a lot of work was poured into the frontend, along with reliability improvements on the station itself and the addition of an AQI sensor. Most frontend work was complete by March, and the station was pretty stable by then too.

In mid-to-late 2025, I challenged myself to add a DIY snow depth sensor, requiring months of design, prototyping, software implementation, and calibration into early 2026.

2026 saw the addition of an ambient sound sensor on the station, 2-way communication for diagnostics & debugging, more reliability improvements, and a redesigned snow depth sensor bracket & algorithm for winter 2026.

Having been worked on for 2+ years continuously, Beacon Hill Weather has turned into quite the DIY project, but certainly the best that I’ve made so far!

—

Timeframe: May 2024 - Present

Languages/Frameworks: Python, FastAPI, Pydantic, SQLAlchemy, SQLite, MariaDB, Apple WeatherKit, React, MUI

—

You can check the latest weather at https://weather.owenthe.dev (URL is clickable)!

 Here is your look at Beacon Hill Weather! The snow depth sensor is not in this photo and will be discussed later.  The station is based off of the SparkFun Weather Meter Kit, which includes the anemometer, wind vane, and rain bucket. Everything else

Here is your look at Beacon Hill Weather! The snow depth sensor is not in this photo and will be discussed later.

The station is based off of the SparkFun Weather Meter Kit, which includes the anemometer, wind vane, and rain bucket. Everything else is hardware that I put on the station over time. This includes the solar panel, solar radiation shield, junction box for electronics, and the upper sensor box.

The station is mounted on a pole, mounted to some brackets on the roof, clamped down with hose clamps. Despite the station weighing ~6-8 pounds, it is very stable and has survived 45 MPH gusts on the roof.

 And over yonder right of the station is the updated snow depth sensor & bracket, a relatively recent addition to the station.  The sensor being used is the MaxBotix MB7374 ultrasonic distance sensor, with the sensor horn extender used to narrow

And over yonder right of the station is the updated snow depth sensor & bracket, a relatively recent addition to the station.

The sensor being used is the MaxBotix MB7374 ultrasonic distance sensor, with the sensor horn extender used to narrow the beam width (for more accurate readings in snow). This reports how far away the ground is in millimeters over serial, which is read by the station. An improved algorithm on the station this year takes these readings, denoises them, and uses a combination of lowest ground reading/melt buffer to make sure snow accumulation isn’t double-counted.

The bracket is designed by myself in OnShape. The v1 bracket used during winter 2025 was 22 inches long, this year’s v2 bracket is 33 inches long. This extra clearance from the railing gives more accurate readings, so the sensor is looking at snow further away from any object of influence.

The bracket is 3D printed using ASA-CF08 with ~7-8 wall layers and ~20-25% gyroid infill. The sheer bulk of the bracket & high wall count means no supporting rod is embedded in the bracket, and by itself, the bracket does not bend or flex much (after all, it’s holding a ~50g sensor!). It’s printed in three parts due to my Bambu X1C’s smaller bed size.

The bracket is secured with hose clamps on the deck railing, which I measured & integrated mounting holes into the first part of the bracket. The wire for the snow sensor runs through the bracket out to the end, where it goes into the station through a gasket.

 And here’s the station and snow depth sensor together on the roof (aww how cute!) and a beautiful sunset in the background.  The snow depth sensor is positioned about ~4 feet away from the station. During standby and light snow operation, it points

And here’s the station and snow depth sensor together on the roof (aww how cute!) and a beautiful sunset in the background.

The snow depth sensor is positioned about ~4 feet away from the station. During standby and light snow operation, it points “out of” the roof, with a ground reference of ~745mm. Because the MB7374 has a minimum reading of 500mm, this allows for 9 inches of readable snow accumulation, and this works for lighter snow events.

If the forecast calls for >6 inches of snow, or there’s already snow on the ground and more is predicted, I will move the furniture near the station and rotate the sensor 180 degrees into the roof, giving it a ground reference of ~1150mm, or about 25 inches of readable snow accumulation. But I only do this for major snow events because it is a bit disruptive to move the furniture, put a sign up saying “please avoid the snow sensor area”, and undo all of it after the snow melts.

In 2026, I added auto ground ranging functionality so the station can determine & save the new ground reference level automatically, rather than having to rotate the sensor, let it run for ~12 hours, then go up and modify the reference level in code.

 Let’s take a closer look at the hardware on the station, starting with the right side of the station.  At the very top is the anemometer and wind vane (not seen in this photo). These are connected via an RJ11 connector and fed into the junction box

Let’s take a closer look at the hardware on the station, starting with the right side of the station.

At the very top is the anemometer and wind vane (not seen in this photo). These are connected via an RJ11 connector and fed into the junction box on the right side.

At the top is the upper sensor box: a VEML7700 for light sensing, and a LTR390 for UV sensing. Both are connected via a 4-pin cable (wired as I2C) that goes from the sensor box into the junction box. I’m hoping to replace the LTR390 with a much more accurate UV sensor, but it’s on backorder as of when I’m writing this.

The rain gauge sensor sits beside the upper sensor box - the height of the upper sensor box is positioned such that it doesn’t interfere much with the gauge. The gauge is also connected via RJ11 and is fed into the right side of the junction box.

Below all of that is the junction box (which we will get to soon!) where all the sensor wires come together, and the actual compute & batteries are for the station.

 Here is a detailed image of the upper sensor box. As you can see, it’s quite yellowed from the significant amount of UV exposure it has received over time - more than a year at this point!

Here is a detailed image of the upper sensor box. As you can see, it’s quite yellowed from the significant amount of UV exposure it has received over time - more than a year at this point!

 Over on the left side of the station are just two things: the 10-watt solar panel used for recharging the batteries on the station, and the Ambient Weather SRS100LX solar radiation shield.  The solar panel was originally 5 watts, but upgraded to 10

Over on the left side of the station are just two things: the 10-watt solar panel used for recharging the batteries on the station, and the Ambient Weather SRS100LX solar radiation shield.

The solar panel was originally 5 watts, but upgraded to 10 early in the station’s lifetime. 10 watts provides faster charging when the station batteries are low after days of overcast weather. This is especially handy in the winter when there’s only 4-6 hours of sunlight to charge the battery.

The solar radiation shield houses the temperature/humidity sensor (Sensirion SHT30), external temperature compensation sensor for the MB7374, and the AQI sensor. The radiation shield is needed because the station is out in the open on a roof, without it, the temperature sensor would be inaccurate and read about 5 degrees hotter than ambient on a sunny day.

 Under the solar radiation shield you can just barely see the AQI sensor peeking out. It is a SEN50 from Sensirion after I ditched the PMSA003I from Plantower due to reliability issues. However, the SEN50 demands being outside for accurate readings,

Under the solar radiation shield you can just barely see the AQI sensor peeking out. It is a SEN50 from Sensirion after I ditched the PMSA003I from Plantower due to reliability issues. However, the SEN50 demands being outside for accurate readings, it cannot get accurate readings inside the junction box (unlike the PMSA003I).

As such, I had to solder together a custom 6-pin cable for Sensirion’s connector and waterproof it. This is how I also got a nice scar mark on my leg because, fun fact, soldering on a couch in boxers is a really bad idea.

 Here’s the image you’ve all been waiting for, the inside of the junction box, the heart of Beacon Hill Weather. Before we start, yes, I must admit, it’s a rats nest of wires and wire caps in here. There’s a surprising amount going on inside of here

Here’s the image you’ve all been waiting for, the inside of the junction box, the heart of Beacon Hill Weather. Before we start, yes, I must admit, it’s a rats nest of wires and wire caps in here. There’s a surprising amount going on inside of here and not a lot of space to pack it in, and I am a software engineer unfortunately…so this is my best attempt at hardware engineering!

Because there’s so much in the junction box, I’ll be splitting this section up into two separate images.

 The upper half of the junction box is dominated by the power side of the station (but not entirely). At the top left, the 4-wire connector from the upper sensor box immediately terminates and splits into 4 separate wires for I2C, going to the I2C hu

The upper half of the junction box is dominated by the power side of the station (but not entirely). At the top left, the 4-wire connector from the upper sensor box immediately terminates and splits into 4 separate wires for I2C, going to the I2C hub in the lower half of the junction box.

The input wires for the solar panel (at 6 volts) come in and get connected to a Waveshare Solar Power Manager (D), which does a bunch of heavy lifting in terms of charging the battery pack and outputting 5V power for the Raspberry Pi running the show. There’s also a 5V USB-C input jack for charging the battery pack in rare circumstances.

The battery pack on the right are two 10,050 mAh batteries wired in parallel for a combined 20,100 mAh capacity. They are then wired into the MAX17048 battery gauge, which is connected via I2C to the Raspberry Pi for battery monitoring, and then the MAX17048 is connected to the solar power manager.

Next to the battery, the wire coming in at the top right is for the SHT30 temperature sensor.

You can also see the Pimoroni WeatherHAT, which terminates the RJ11 jacks for the wind/wind direction and rainfall sensors. This HAT also provides an LCD that I never use, and a BME280 that is used for the internal temperature & pressure readings on the weather station. This HAT is wired directly into the Raspberry Pi on a HAT splitter, and provides the I2C breakouts that everything relies on.

 The bottom half of the junction box is where the party  really  starts. On the middle left, the external temperature compensation sensor for the MB7374 terminates, wiring into GND and straight into the MB7374 by running across the junction box.  Bel

The bottom half of the junction box is where the party really starts. On the middle left, the external temperature compensation sensor for the MB7374 terminates, wiring into GND and straight into the MB7374 by running across the junction box.

Below that, you can see the Adafruit Stemma QT I2C hub - the I2C breakout from the WeatherHAT board goes into this board as Stemma QT, and then it goes out 4x for the SHT30, SEN50/DS3231 chain, upper sensor box chain, and the MAX17048.

Continuing to the bottom left, the 6-wire breakout for the SEN50 connection comes in, and goes into Adafruit’s SEN5x breakout board, also connected via I2C. The DS3231 RTC is connected here and is used at startup to determine the correct time (since a lot of the logic on the station relies on knowing when a new minute begins). Time is synced via radio and is corrected for the transmission delay between receiver & station.

Over on the middle right, you’ll see Adafruit’s RFM95 HAT, which provides radio functions for the station. Since 2025, the station has run on 915 MHz LoRa radio, as I found standard 915 MHz packet radio to be unreliable. Despite the lower bandwidth (the station can, as configured, transmit ~4 Kbps at most!), the reliability tradeoff is well worth it. 2-way transmission works as of 2026, as the station listens for commands after it’s done transmitting, and the receiver will transmit any queued commands ~5 seconds after it last heard a data packet transmitted. As such, I can reboot the station remotely, get logs (although only 4 KB!), and change almost every parameter of the MB7374’s operations - very useful when it is snowing outside, as in a January 2026 storm, I was going out to the station too much to fix things and almost killed it with snow ingress into the junction box.

Beneath the radio board is the Raspberry Pi Zero 2 W at the heart of the station. Yes, the station runs on a Pi, not an ESP32, but for a very good reason! The sheer number of sensors on the station would require a bespoke ESP32 with enough PSRAM to load all the libraries, and given the station has to, at minimum, read snow depth readings every 7 seconds and wind speed counts every 3, the power savings benefit from an ESP32 would probably be about 50%. With ambient sound sensing, it would probably be less!

An ESP32 would also make development much harder, logging a pain in the nuts, and running a full fat Pi makes managing the nearly dozen or so sensors a lot easier. The Pi Zero 2 W consumes about ~60-70 mW at idle when tuned correctly, and the station can last for about 4-5 days of consecutive cloudy weather in the dead of winter (which is rare). Recently, I added power saving measures so parts of the station shut off as voltage drops and transmit power goes down too.

Okay, last but not least in the middle is the ICS43434 microphone, used for ambient sound sensing. This was a recent addition in June and has been working decently well, with the station reporting L10/L50/L90 dBa and dBc. It does pick up lots of ambulances and trains going by and there is a correction algorithm to factor out wind (meaning the raw readings aren’t SUPER accurate) but it is good at reading relative sound level changes over time.

 Downstairs in my apartment, you’ll find a Raspberry Pi 3B acting as the receiver for data from the weather station. Another Adafruit RFM95 HAT is attached, and an external antenna is present for enhanced radio reception.  The receiver’s main job is

Downstairs in my apartment, you’ll find a Raspberry Pi 3B acting as the receiver for data from the weather station. Another Adafruit RFM95 HAT is attached, and an external antenna is present for enhanced radio reception.

The receiver’s main job is to receive data from the weather station, then send it to the API for ingesting. It also has a store-then-forward mechanism on it, like the weather station, for when the receiver is up but the API/internet is down.

In 2026, the receiver gained quite a few functionalities with two-way control of the weather station. A FastAPI-based API was made to run on the station to control the SQLite database used on the receiver to store commands to be sent. The main receiver program reads the command database after the station finishes packet transmission, sends them to the station, waits for a response, and records any response in the database. The API has POST & GET capabilities.

 Whenever the weather station is receiving or uploading data, it’ll flash text on the screen. During the receiving of packets, it’ll show “RX 0”, then “Uploading…” when the packet is being sent to the API. It is a quick and easy visual confirmation w

Whenever the weather station is receiving or uploading data, it’ll flash text on the screen. During the receiving of packets, it’ll show “RX 0”, then “Uploading…” when the packet is being sent to the API. It is a quick and easy visual confirmation when I’m in my apartment to know the station is continuing to work.

The RX text will change depending on the message type being received.

 The receiver also hosts a small web app to interact with the API for packet control in a similar layout to a mail app. It shows packets that have been sent on the right, and then the “message view” taking up most of the width. In this case, I was te

The receiver also hosts a small web app to interact with the API for packet control in a similar layout to a mail app. It shows packets that have been sent on the right, and then the “message view” taking up most of the width. In this case, I was testing a new message to get the last raw ground readings from the MB7374.

 The send packet button opens a modal to select a command to transmit to the station. If the command allows any input data, an input field is shown in the modal to put that in the packet. After clicking send, it gets queued on the receiver and waits

The send packet button opens a modal to select a command to transmit to the station. If the command allows any input data, an input field is shown in the modal to put that in the packet. After clicking send, it gets queued on the receiver and waits for the station to transmit again for the packet to send!

The frontend refreshes data from the API every 15 seconds so it’s easy to see when the station has responded to a command.

 This is the main homepage of Beacon Hill Weather. The frontend uses React + MUI (a common combo), but with the Toolpad Core which helps with setting up this dashboard-style React app. Routing is done via React Router.  The homepage contains all the

This is the main homepage of Beacon Hill Weather. The frontend uses React + MUI (a common combo), but with the Toolpad Core which helps with setting up this dashboard-style React app. Routing is done via React Router.

The homepage contains all the data of Beacon Hill Weather at a glance. The current condition (although when it’s raining, I populate the current condition based on rainfall rates), sunrise, and sunset times are fetched from Apple WeatherKit.

Below that is quite the data dump from every sensor & data point the station can collect, but it goes to show how much data this station is collecting (which is impressive).

On the right of the home page is the daily almanac, which shows (in a very big table that will hopefully go the way of the dodo for something better) the max, avg, and min of a variety of data points for the day.

The homepage also shows NWS alerts when they are active for the region that Beacon Hill Weather is in, along with system-level alerts before the current conditions box when they are active (mostly used for maintenance alerts).

Data is refreshed via websocket, but can fall back to the old interval-based refreshing system if needed.

 When clicking on any NWS alert’s more info button, a modal pops up that shows you details about when the alert was sent, the onset time, expiry data, and severity. The alert text is also shown verbatim from the NWS.

When clicking on any NWS alert’s more info button, a modal pops up that shows you details about when the alert was sent, the onset time, expiry data, and severity. The alert text is also shown verbatim from the NWS.

 In case of disruptions to Beacon Hill Weather (or to announce upcoming maintenance), the frontend will dynamically fetch PW4 System Alerts from the API that I create. These alerts can be of 4 severities and will show a last updated time if an alert

In case of disruptions to Beacon Hill Weather (or to announce upcoming maintenance), the frontend will dynamically fetch PW4 System Alerts from the API that I create. These alerts can be of 4 severities and will show a last updated time if an alert has been updated more than once.

 Below that on the homepage is the system status box, which shows the battery level, internal tempeature, signal strength, and SNR at a glance.  Finally - the daily data graph shows all the data points collected during the day, with a select dropdown

Below that on the homepage is the system status box, which shows the battery level, internal tempeature, signal strength, and SNR at a glance.

Finally - the daily data graph shows all the data points collected during the day, with a select dropdown to choose from lots of data categories (humidity, dew point, rainfall, wind speed, the list goes on).

 The next page on Beacon Hill Weather is the history page, which allows you to see a day-by-day history of every day that has been recorded on the station. At the top, you can select by month, and go from there with all the days.  Each card shows the

The next page on Beacon Hill Weather is the history page, which allows you to see a day-by-day history of every day that has been recorded on the station. At the top, you can select by month, and go from there with all the days.

Each card shows the max & min temperature, sunrise & sunset times (additional times can be shown by hovering over one), wind speed average & max, rain/snowfall (and rainfall rate max), along with more data on the right.

 Clicking on any history page card opens the detailed page for that specific day. At the top, links to the previous & next days are provided for easy inter-day navigation. Below that is a repeat of the card on the history page.  Finally, a graph

Clicking on any history page card opens the detailed page for that specific day. At the top, links to the previous & next days are provided for easy inter-day navigation. Below that is a repeat of the card on the history page.

Finally, a graph for all the daily data is provided, and below that is another almanac table that’s identical to the one on the homepage (just with a different title).

 Next up is the climatology page, which is intended to allow users to see long-term climate data from Beacon Hill Weather. It starts off by showing the full-year chart of the current year, but I wanted to show the 2025 climate chart of the temperatur

Next up is the climatology page, which is intended to allow users to see long-term climate data from Beacon Hill Weather. It starts off by showing the full-year chart of the current year, but I wanted to show the 2025 climate chart of the temperature (which is very cool!).

You can narrow down your year & month selection by using the two dropdowns in the first box - this affects the graph & another almanac table below the chart.

The graph shows the max, avg, and min color-coded as different lines. You can easily turn the series off with checkboxes, and another dropdown for data type is available to see humidity, dew point, wind speed, pressure trends, or show bar charts for daily snowfall/rainfall.

The almanac table below this also has a switch to see lifetime stats, which is pretty nifty.

 Here is a screenshot of the Almanac Summary table for 2025. Very cool, very nifty, but this table is gigantic. I’m hoping to add some sliders with color ranges to make this look a lot better.

Here is a screenshot of the Almanac Summary table for 2025. Very cool, very nifty, but this table is gigantic. I’m hoping to add some sliders with color ranges to make this look a lot better.

 The next page on Beacon Hill Weather is the data explorer page. This is where anyone can query data from Beacon Hill Weather for any time range, up to 60 days (to prevent my server from exploding with all the Pydantic validations). Once you hit subm

The next page on Beacon Hill Weather is the data explorer page. This is where anyone can query data from Beacon Hill Weather for any time range, up to 60 days (to prevent my server from exploding with all the Pydantic validations). Once you hit submit, away you go, and you get a lovely graph with another dropdown to select from 9 million data types.

This page has a couple cool features where it can use cumulative rainfall/snowfall totals rather than going by day (since the count resets to 0 at midnight), and dumping to a JSON file if you’d like.

 The next three pages on the sidebar (below the divider) are basically support pages for the entire website.  The about page does exactly what it says - it tells you about Beacon Hill Weather in excruciating technical detail. I’ll spare you that on m

The next three pages on the sidebar (below the divider) are basically support pages for the entire website.

The about page does exactly what it says - it tells you about Beacon Hill Weather in excruciating technical detail. I’ll spare you that on my portfolio entry though.

 Next up is the changelog page which, well, tells you what changes in each version of Beacon Hill Weather! It’s an accordion setup within MUI that shows each version, when it was released, and then a changelog that I type up for each version.  At som

Next up is the changelog page which, well, tells you what changes in each version of Beacon Hill Weather! It’s an accordion setup within MUI that shows each version, when it was released, and then a changelog that I type up for each version.

At some point in 2026, I split up the station & web changelog so it’s easier to denote what changed on the station itself versus the website.

 Lastly is the public API page, which is basically a fancy redirector to the API for Beacon Hill Weather.  In the spirit of weather data being publicly accessible for anyone - I’ve done exactly the same for Beacon Hill Weather and opened up the API f

Lastly is the public API page, which is basically a fancy redirector to the API for Beacon Hill Weather.

In the spirit of weather data being publicly accessible for anyone - I’ve done exactly the same for Beacon Hill Weather and opened up the API for anyone to use without a key.

 The link takes you to a Swagger page generated by FastAPI (the library being used for the API), with interactive elements and all the routes in one convenient place!

The link takes you to a Swagger page generated by FastAPI (the library being used for the API), with interactive elements and all the routes in one convenient place!

 In recent months, I added an uptime page to show a detailed history of Beacon Hill Weather’s (sometimes rocky) uptime stats. This use to be a month picker with a <ul> of individual dates in a map function, but has been updated to this excellen

In recent months, I added an uptime page to show a detailed history of Beacon Hill Weather’s (sometimes rocky) uptime stats. This use to be a month picker with a <ul> of individual dates in a map function, but has been updated to this excellent UI showing a day-by-day, color-coded uptime view.

 There’s also a secret system alerts manager page where I manage system alerts from, with an input modal to either create or edit alerts from. And if you stumble upon this page yourself, you still need to know the right key to make an alert!

There’s also a secret system alerts manager page where I manage system alerts from, with an input modal to either create or edit alerts from. And if you stumble upon this page yourself, you still need to know the right key to make an alert!

 Oh, and did I mention there’s also dark mode? By default, Beacon Hill Weather will load into whatever your system appearance is, with options to change into manual light/dark mode. Your setting is saved to local storage.

Oh, and did I mention there’s also dark mode? By default, Beacon Hill Weather will load into whatever your system appearance is, with options to change into manual light/dark mode. Your setting is saved to local storage.

 To round us off, here’s Beacon Hill Weather out during the February 2026 blizzard we had in Boston. The station kept on going like nothing was happening! In this photo, you can see the snow bracket pointed into the roof, and the shorter v1 snow sens

To round us off, here’s Beacon Hill Weather out during the February 2026 blizzard we had in Boston. The station kept on going like nothing was happening! In this photo, you can see the snow bracket pointed into the roof, and the shorter v1 snow sensor bracket.

Beacon Hill Weather has been nothing but an absolute joy to build for the last 2 years running. It has been, by far, the best project of mine and I love running it, maintaining it, and sometimes forgetting that I built a weather station that reports accurate data every minute. But I suppose that’s the best part of a project, when it becomes a normal part of your life!

—

Now, in case anyone asks, Beacon Hill Weather is expensive. It’s by far my most expensive project. If I were to buy everything as it stands today, the total part cost is about ~$1,000. Including dead parts/bad batteries/unused sensors/prototyping filament, the total cost is about $1,500 if not more.

I am very, painfully aware that you can buy a Davis Vantage2 Pro Plus for ~$1,200 to $1,600 depending on your configuration. And yeah, sometimes I wish I bought one instead of building Beacon Hill Weather. I actually wanted one as a kid. My parents shot down that idea real quick (boohoo it would still be running to this day, Davis stations don’t break).

Despite Beacon Hill Weather being cheaper in part cost and much more expensive in labor, prototyping, emotional fatigue when the station goes down at 2 AM, it was a fantastic learning experience, taught me a lot about building resilient systems, and yeah, now I get to say that I built a weather station this complex on my roof. And it’s still kicking!

I am anxiously awaiting the winter to see how the improved snow depth sensing system goes!