"Will the weather be perfect anytime in the next couple of days?"
The Sandex is the index of how the weather in West Chester, PA compares to the theoretically-perfect weather in San Diego, California in the next couple of days.
"Room Temperature" was invented by professor Ole Fanger. Here's a PDF link where you can read about it.
This site checks the hourly weather coming up, and sees whether the bounds of temperature and humidity match the parameters for perfect thermal comfort.
By oversimplifying Ole Fanger's rubric, the Sandex deems that the weather outside is perfect when:
- The temperature is between 68 degrees and 76 degrees Fahrenheit, AND
- The relative humidity is between 30 and 60%.
The box is not square; at 76 degrees, the relative humidity must be lower in order to be perfectly comfortable.
There used to be a site at sandex.me
which used Rails to display a Sandex chart coming up. That site was powered by the DarkSky API. The DarkSky API went away, and these days a full Rails site running on Heroku is overpowered for this application, so John recreated the Sandex site in React, using forecast data from Tomorrow.io.
Feel free to contact John with any questions or ridicule at john@tikaro.net
This project was bootstrapped first with Create React App, and then a second time with Vite.
Every day, a Github action fetches the forecast as a blob of JSON from tomorrow.io and commits that blob to the repository. So there's no API call for the user; it's an API stub that happens to be updated every day.
Every push to the main
branch results in a Vercel deployment to https://sandex.me
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches a vitest test runner and runs test.
Builds the app for production to the dist
folder.\
See the section about deployment for more information.