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

devthom_studios

Weather-Map

Public
Like
Weather-Map
Home
Code
3
frontend
1
README.md
H
index.ts
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://devthom_studios--d023c70c34f311f0bda89e149126039e.web.val.run
README.md

Interactive Weather Map

An interactive weather map application built on Val Town that allows users to search for locations or click anywhere on a map to see current weather conditions and 5-day forecast.

Features

  • Search bar to find specific locations by name, address, or place
  • Interactive map powered by Leaflet.js
  • Real-time weather data from Open-Meteo API (no API key required)
  • Current weather conditions displayed in a clean table format
  • 5-day weather forecast with daily temperature ranges and precipitation chances
  • Visual weather indicators with emojis for all conditions
  • Location name detection using reverse geocoding
  • Pre-defined markers for major cities
  • Responsive design with Tailwind CSS

How to Use

  1. Open the application in your browser
  2. Search for a specific location using the search bar
  3. Or click anywhere on the map to see current weather conditions
  4. Click on city markers to quickly view weather in major cities
  5. View detailed current weather in the table format
  6. Check the 5-day forecast for planning ahead

Weather Information Displayed

Current Weather

  • Weather condition with visual indicator
  • Current temperature and "feels like" temperature
  • Humidity percentage
  • Precipitation amount
  • Wind speed and direction

5-Day Forecast

  • Daily weather conditions with visual indicators
  • Daily minimum and maximum temperatures
  • Daily precipitation amount and probability
  • Formatted dates for easy reading

Technical Details

  • Frontend: HTML, JavaScript, Leaflet.js, Tailwind CSS
  • Backend: Val Town HTTP handler with Hono.js
  • Weather Data: Open-Meteo API (free, no API key required)
  • Map Data: OpenStreetMap
  • Geocoding: Nominatim API for location search and reverse geocoding

Project Structure

  • /index.ts - Main HTTP handler and API endpoints
  • /frontend/index.html - Frontend application with map and weather display

Credits

  • Weather data provided by Open-Meteo
  • Map tiles by OpenStreetMap
  • Geocoding by Nominatim
  • Built on Val Town

Technical Details

  • Frontend: HTML, JavaScript, Leaflet.js, Tailwind CSS
  • Backend: Val Town HTTP handler with Hono.js
  • Weather Data: Open-Meteo API (free, no API key required)
  • Map Data: OpenStreetMap

Weather Information Displayed

  • Current temperature and "feels like" temperature
  • Weather conditions with visual indicator
  • Humidity percentage
  • Precipitation amount
  • Wind speed and direction

Project Structure

  • /index.ts - Main HTTP handler and API endpoints
  • /frontend/index.html - Frontend application with map and weather display

Credits

  • Weather data provided by Open-Meteo
  • Map tiles by OpenStreetMap
  • Built on Val Town
HTTP
  • index.ts
    devthom_studios--d0…9e.web.val.run
Code
frontendREADME.md
H
index.ts
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.