saulyte
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v11View latest version
A simple weather website designed for photographers to check upcoming weather conditions with focus on cloud cover, visibility, and lighting conditions.
- 7-day hourly weather forecast
- Photography-specific metrics (cloud cover, visibility, golden hour times)
- Clean, mobile-friendly interface
- Automatic location detection with manual override
- Visual indicators for optimal photography conditions
Uses Open-Meteo KNMI API with the following parameters:
- Hourly: temperature, cloud cover (total, low, mid, high), surface pressure, visibility
- Daily: sunrise, sunset times
- Timezone: Auto-detected
├── backend/
│ └── index.ts # Main API server with weather endpoints
├── frontend/
│ ├── index.html # Main page
│ ├── index.tsx # React app
│ └── style.css # Custom styles
└── README.md
The main endpoint serves the weather dashboard. The API automatically detects location or allows manual coordinates input.
- Photography Score: 1-10 rating based on cloud cover, visibility, and lighting conditions
- Golden Hour Detection: Automatically identifies optimal lighting times (±1 hour from sunrise/sunset)
- 7-Day Forecast: Hourly weather data for the next week
- Location Detection: Auto-detects your location or allows manual coordinate input
- Mobile Responsive: Works great on all devices
- Excellent (☀️): <20% cloud cover - Perfect for most photography
- Very Good (🌤️): 20-40% cloud cover - Great conditions with some interesting clouds
- Good (⛅): 40-60% cloud cover - Good for dramatic skies
- Fair (☁️): 60-80% cloud cover - Overcast but workable
- Poor (🌧️): >80% cloud cover - Limited lighting options
- Golden Hour (🌅): Special highlighting for optimal portrait/landscape times
GET /- Main dashboardGET /api/weather?lat={lat}&lon={lon}- Weather data with photography insightsGET /api/location- Auto-detect location from IP