Skip to content

A simple web app that makes it easy to determine if the conditions are right to burn weeds on your property.

Notifications You must be signed in to change notification settings

paulcushing/ShouldIBurn

Repository files navigation

This is a small project to build a simple web app that will provide users with one place to check the conditions and know whether it's safe to burn weeds on their property today. It uses the OpenWeather API and the AirNow API for weather and air quality index data. ShouldIBurn is a Next.js 16 App Router project bootstrapped with create-next-app.

Local development

Create a .env file with required environment variables:

OW_API_KEY=********************
AN_API_KEY=********************
# Required in production: Sentry DSN for error monitoring
SENTRY_DSN=************************

Install dependencies and run the dev server:

yarn install
yarn dev

Chrome doesn't appreciate you using the geolocation features on non-https domains, so local development against the geolocation parts is best done with Firefox or Safari.

API route handlers live under app/api/*/route.js and are accessible at http://localhost:3000/api/.

Currently, routes weather and airquality accept a POST request with a JSON body including the latitude and longitude of the desired location.

{
    "latitude": 43.5441,
    "longitude": -116.566
}

Status

The app is currently deployed to ShouldIBurn.com. I'd like to keep things simple and useful, but here are a few things that still need done.

  • Add Sentry.io for monitoring
  • Allow user to reset cookies (location) to avoid stale data if they've changed locations

Deployment

This app uses Next.js 16 App Router. Build with:

yarn build
yarn start

If deploying to Netlify, ensure environment variables (OW_API_KEY, AN_API_KEY, SENTRY_DSN) are configured. Source map uploads for Sentry are disabled locally.

  • Allow user to choose location rather than rely on geolocation

About

A simple web app that makes it easy to determine if the conditions are right to burn weeds on your property.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •