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