weather-dashboard
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.
weather.ts
https://stevekrouse--f1b17e06365a11f08e869e149126039e.web.val.run
A minimalist, server-rendered weather application built on Val Town. This app requires no client-side JavaScript and works entirely through server-side rendering.
- Search for weather by location name
- View current weather conditions including:
- Temperature
- "Feels like" temperature
- Humidity
- Precipitation
- Wind speed
- Weather description with emoji
- 7-day weather forecast
- Fully responsive design
- No client-side JavaScript required
- The app uses an HTTP val to handle requests
- When you search for a location, it:
- Geocodes the location name to coordinates using Open-Meteo's Geocoding API
- Fetches weather data from Open-Meteo's Weather API
- Renders the results as HTML
- All processing happens on the server, making this a true server-rendered application
- Val Town - Hosting and execution environment
- Open-Meteo API - Free weather data without API keys
- Twind - For styling (loaded from CDN)
- TypeScript - For type safety
Simply enter a location in the search box and click "Get Weather" to see current conditions and forecast.
- Weather data provided by Open-Meteo
- Built with Val Town