VayuSathi: the smog plan I wish my family had
Every Delhi winter, the same scene repeats in my house. It is 4pm, the sky is grey, and my mother asks the question no AQI app can answer: can the kid go out and play, or not?
The apps all show a number. Over 300. Severe. Stay indoors. But the kid has been indoors since morning, the homework is done, and "stay indoors" is not a plan. It is a shrug. And tomorrow the same question comes back, because the number will be different at 3pm than it was at 7am, and nobody in the house knows that.
That is the problem VayuSathi is built for. Not another dashboard with a big red number, but a plan: what to do, when to do it, and how much it actually helps.
The idea is simple. Air pollution changes through the day. In Delhi in winter it is usually worst early in the morning and after sunset, and least bad in the middle of the afternoon. So a walk at 7am and a walk at 3pm are not the same walk, even though they feel the same. One can mean breathing in almost twice as much PM2.5 as the other. If you know that, you can move the walk. You can move the play. You can keep the routine and change the timing, and that costs nothing.
VayuSathi does that arithmetic for a whole family. You add who lives at home, a child, a parent, a grandmother, and tick the things that matter, asthma, a heart condition, pregnancy. You add the outdoor things you usually do, the morning walk, evening play, the market run, with the time you usually do them. The app looks at the next 48 hours of air data and moves each activity to the cleanest hour it can happen in, today or tomorrow if today is all bad. Then it shows the difference, in plain numbers: how many micrograms less PM2.5 each person breathes in, and what that means in cigarette equivalents, so the saving is something a person can feel rather than a percentage on a chart.
The numbers are not made up by an AI. That matters, and it is the part I was most careful about. The dose is PM2.5 multiplied by breathing rate multiplied by hours, with breathing rates from the US EPA Exposure Factors Handbook. The cigarette comparison comes from Berkeley Earth. Purifier sizing follows the AHAM rule. The live air comes from Open-Meteo, which is free and needs no key. Where the app has to estimate, it says Estimate. Where the data is a demo because the live feed could not be reached, it says Demo in plain sight. The AI in this app, Gemini, is only allowed to reword explanations. It never writes a number, and if it ever tried, the code throws its answer away. I would rather the app say less than say something it cannot prove.
The part I am proudest of is SchoolSafe, and it came from that 4pm question. It answers one thing, hour by hour, for kids aged 4 to 14: GO, CAUTION, or NO-GO. Play and sports get stricter treatment than assembly, because a child breathes far harder running than standing. If a child has asthma, every threshold gets tighter, and the app says why. It also plans the classroom, whether the windows should be shut, what size purifier the room actually needs, and it writes a short alert a parent can copy and send to the family group, in plain English and Hindi, with no jargon. On a bad day in Delhi it will say the honest thing, which is that there is no good outdoor hour today, and play should move indoors. An app that only ever says yes is not helping anyone.
There is also an Indoor Lab, because most of the day in winter is spent inside, and inside is not automatically safe. Shutting the windows during peak smog, stopping the mosquito coil indoors, running a right-sized purifier, these are small decisions with measurable effects, and the app ranks them by how much PM2.5 they actually cut and what they cost. And a transport comparison, because the metro is usually the cleanest fast way across Delhi, but walking on a bad-smog day means breathing more for longer, and that tradeoff should be visible before you choose, not after.
I built it as a small FastAPI app with a plain mobile-first page, no heavy frameworks, so it loads fast on a cheap phone at 7am, which is when it is actually needed. There are 73 tests, and the important numbers in them are hand-checked, like a dose of 100 times 0.9 times 1 hour coming out as exactly 90 micrograms, and a 150 square foot room needing exactly 225 CFM of purifier. If a number is wrong, a test should catch it before a parent ever sees it.
What it cannot do, I want to be honest about too. It is a planning guide, not medical advice, and a child's doctor always overrules it. The indoor model is a steady-state estimate, not a measurement from a sensor in your room. The US AQI number is mapped onto Indian CPCB bands as an approximation, and the two scales are not the same thing. The school thresholds are planning thresholds I chose and wrote down in the code, not a medical guideline. And on the worst days, the honest answer is that shifting the timing only helps a little, because the air is bad all day. The app shows that too, instead of pretending a 3pm walk fixes a 400 AQI day.
What is next is the part I want to build with real users. I want to test SchoolSafe with two or three real schools, because a principal will spot problems in a week that I would take months to find. I want a morning WhatsApp-style alert, one message at 7am with the day's call, because nobody opens an app before school. And I want the plan to learn a family's real routine instead of asking them to type it in every time.
If you live with Delhi winter air, you already know the question at 4pm. VayuSathi is my attempt at a real answer to it, with numbers you can check, in words a parent can use in ten seconds.
Try it live: https://vayusathi.onrender.com
Code: https://github.com/Duke2nuke/vayusathi
原文:https://www.a8q9.cn/en/article/vayusathi-the-smog-plan-i-wish-my-family-had-795387.html