How it's made
Why
I'd rather have the windows open. Just not at 38°F, not on a muggy 70°F dew point night, and not with smoke in the air. Knowing which meant checking a forecast, an air quality map and my own guess about humidity, every day the seasons were changing.
I wanted one glance to settle it.
What it does
Freshen does that check and gives back two things: open or not, and why.
The answer is a picture before it is a number. The sash is the verdict: raised, cracked or shut. The weather drawn is the reason: frost, heat haze, fogged glass, rain or a brown pall of bad air. The sky is the real sky at that hour, from the sun's position.
A no always says when it turns to yes, by the clock where you live: “Open at 5 PM tomorrow”, not “Try again later”.
The rule
Every hour of your ZIP's forecast gets four checks. All four have to pass to open.
- Temperature 52 to 78°F by day, 45 to 67°F overnight. Wider than indoor comfort on purpose: with the windows open, a house stays 3 to 8°F warmer than outside.
- Dew point 60°F or lower by day, 58°F overnight. Dew point, not relative humidity, is what makes air feel sticky, and sleep is less forgiving of it.
- Air quality AQI 100 or lower, or 50 for anyone in a sensitive group.
- Rain Under a 20% chance.
One failure keeps the windows closed. A near miss means open briefly. A warning for wind, smoke or dust closes them whatever the numbers say.
The defaults lean toward open, because the people asking already want fresh air. A stricter preset is in settings, and every threshold can be moved.
What I left out
- Accounts, email capture and ads A ZIP in, an answer out.
- A location prompt before the answer The answer comes first: the first verdict is for the ZIP your connection suggests, marked as a guess, with Keep and Change.
- A map library The national map is drawn by the page from a 16 KB outline. The library and street tiles it replaced came to over 2 MB, most of it hidden under the colors.
- Puns Fresh, open and air have all been done, and they cheapen the answer.
Where the data comes from
- National Weather Service
- The hourly forecast for your ZIP: temperature, dew point, wind and chance of rain. Checked every 10 minutes.
- National Weather Service alerts
- Active warnings where you are. Checked every 2 minutes.
- EPA AirNow
- Air quality now: ozone and particle readings from the three nearest monitors within 25 miles, weighted by distance. Readings older than 3 hours are dropped.
- Open-Meteo air quality
- Air quality for the hours ahead, from the European CAMS model. Where no monitor is in range, it stands in for the reading and is labeled an estimate.
- Open-Meteo weather
- The national map: about 490 points across the country, refreshed hourly and judged by the same rule.
- Zippopotam.us
- Turns a ZIP code into a latitude and longitude.
- U.S. Census Bureau
- Turns your location into a ZIP, only when you share it, with OpenStreetMap as a fallback. Its boundaries also draw the map's counties and states.
All of it is public and free.
How it's built
One page and a small server on Vercel, built to be free to run. The server asks each source above, keeps the answer briefly so neighbors share one request, and keeps its keys off your device. There is no database to keep: each hour is judged fresh, and the rule is checked by unit tests.
What it can't see
- Your house. It assumes a home with the windows open runs 3 to 8°F warmer than outside, which is why its ranges are wider than indoor comfort.
- Pollen, mold and the first hours of wildfire smoke. The air quality index does not measure them, so a pass means the AQI is within your limit, not that the air is clean for every reason.
- Your street. The forecast is for the middle of your ZIP.
What it keeps
Your ZIP and settings stay in this browser. On a first visit the ZIP is guessed from your internet connection; the guess is not saved unless you keep it, and never logged. Page views are counted without cookies.