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

stevekrouse

weather-dashboard

Public
Like
weather-dashboard
Home
Code
2
README.md
H
weather.ts
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
/
Code
/
Search
weather.ts
https://stevekrouse--f1b17e06365a11f08e869e149126039e.web.val.run
README.md

Simple Server-Rendered Weather App

A minimalist, server-rendered weather application built on Val Town. This app requires no client-side JavaScript and works entirely through server-side rendering.

Features

  • 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

How It Works

  1. The app uses an HTTP val to handle requests
  2. 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
  3. All processing happens on the server, making this a true server-rendered application

Technologies Used

  • 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

Usage

Simply enter a location in the search box and click "Get Weather" to see current conditions and forecast.

Credits

  • Weather data provided by Open-Meteo
  • Built with Val Town
HTTP
  • weather.ts
    stevekrouse--f1…9e.web.val.run
Code
README.md
H
weather.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.