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

stevekrouse

weather-app

Public
Like
weather-app
Home
Code
3
backend
1
frontend
1
README.md
Branches
2
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
/
README.md
Code
/
README.md
Search
5/21/2025
README.md

Simple Weather App

A super simple weather application built on Val Town that allows users to search for weather information by city name.

Features

  • Search for weather by city name
  • Display current weather conditions including:
    • Temperature
    • "Feels like" temperature
    • Humidity
    • Precipitation
    • Wind speed
  • Visual weather indicators with emojis
  • Responsive design that works on mobile and desktop

Technical Details

  • Backend: Hono.js API that fetches data from Open-Meteo
  • Frontend: Simple HTML/CSS/JS with Twind for styling
  • APIs Used:
    • Open-Meteo Weather API (free, no API key required)
    • Open-Meteo Geocoding API (for converting city names to coordinates)

Project Structure

  • /backend/index.ts - API endpoint for weather data
  • /frontend/index.html - Main UI with embedded JavaScript

How to Use

  1. Enter a city name in the search box
  2. Click "Get Weather" or press Enter
  3. View the current weather conditions for that location

API Endpoints

  • GET /api/weather?city={cityName} - Returns weather data for the specified city

Credits

  • Weather data provided by Open-Meteo
  • Built on Val Town
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
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.