• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
dukky

dukky

weather

Public
Like
weather
Home
Code
4
backend
2
frontend
4
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
index.ts
https://dukky--7c5b29c640bf11f087df76b3cceeab13.web.val.run
README.md

UK Weather Forecast Site

A comprehensive weather forecast application for the UK featuring:

  • Interactive weather map showing current conditions across the UK
  • Location-specific detailed forecasts
  • 7-day weather outlook
  • Current weather conditions
  • Responsive design for mobile and desktop

Features

  • Weather Map: Visual representation of weather conditions across the UK
  • Location Search: Enter any UK location to get detailed forecasts
  • Geolocation Support: Use your current location with one click
  • Detailed Forecasts: Hourly and daily weather predictions
  • Current Conditions: Real-time weather data
  • Mobile Responsive: Works seamlessly on all devices

Technology Stack

  • Frontend: React with TypeScript, TailwindCSS
  • Backend: Hono API framework
  • Weather Data: Open-Meteo API (no API key required)
  • Mapping: Leaflet for interactive maps
  • Geocoding: Open-Meteo geocoding API

Project Structure

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ index.ts           # Main API server
β”‚   └── routes/
β”‚       β”œβ”€β”€ weather.ts     # Weather data endpoints
β”‚       └── geocoding.ts   # Location search endpoints
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html         # Main HTML template
β”‚   β”œβ”€β”€ index.tsx          # React app entry point
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ App.tsx        # Main app component
β”‚   β”‚   β”œβ”€β”€ WeatherMap.tsx # Interactive weather map
β”‚   β”‚   β”œβ”€β”€ LocationSearch.tsx # Location input component
β”‚   β”‚   β”œβ”€β”€ WeatherDisplay.tsx # Weather details display
β”‚   β”‚   └── ForecastCard.tsx   # Individual forecast cards
β”‚   └── style.css          # Custom styles
└── shared/
    └── types.ts           # Shared TypeScript types

API Endpoints

  • GET /api/weather?lat={lat}&lon={lon} - Get weather data for coordinates
  • GET /api/geocoding?q={location} - Search for locations
  • GET /api/weather/map - Get weather data for UK map overlay

Usage

  1. Visit the site to see the UK weather map with real-time weather markers
  2. Use your location by clicking the "Use My Location" button for instant local weather
  3. Search for locations using the search box to find specific places
  4. Click on the map anywhere to get weather for that specific location
  5. Click on weather markers to get detailed forecasts for major UK cities
  6. View detailed information including:
    • Current weather conditions with temperature, wind, humidity, and pressure
    • 24-hour hourly forecast with precipitation and wind details
    • 7-day daily forecast with min/max temperatures and weather conditions
    • Sunrise/sunset times and UV index information

Features in Detail

Interactive Weather Map

  • Real-time weather data for 15+ major UK cities
  • Click anywhere on the map to get weather for that location
  • Weather markers show current temperature and conditions
  • Popup details with quick forecast access

Location Search

  • Search for any UK location by name
  • Auto-complete suggestions with location details
  • Prioritizes UK locations in search results
  • Shows coordinates and administrative regions

Comprehensive Weather Data

  • Current Conditions: Temperature, weather description, wind speed/direction, humidity, pressure, visibility, UV index
  • Hourly Forecast: Next 24 hours with temperature, precipitation, wind, and weather icons
  • Daily Forecast: 7-day outlook with high/low temperatures, precipitation, wind, UV index, sunrise/sunset
  • Weather Icons: Emoji-based weather representations for easy understanding

Responsive Design

  • Mobile-friendly interface that works on all screen sizes
  • Touch-friendly map controls and buttons
  • Optimized layout for both portrait and landscape orientations
HTTP
  • index.ts
    dukky--7c5b29c640bf11f087df76b3cceeab13.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.