WEATH
A minimal Android weather and news reader with an amber-on-black terminal aesthetic.
by Jason Page · store.amfile.org · 2026
---
Features
Weather (page 1)
- Current conditions — temperature, hi/lo, wind, precipitation, relative humidity, and US Air Quality Index
- 7-day half-day forecast — each NWS period (daytime and overnight) on its own row with labelled columns:
DAY / HI/LO / WIND / PCPN / RH / AQI
- All precipitation types — Rain, Drizzle, T-Storm, Freezing Rain, Sleet, Ice, Snow (with accumulation amounts where forecast)
- Active advisories — NWS watches, warnings, and advisories listed below the forecast
- Imperial or Metric — °F/mph/inches or °C/km/h/cm, converted throughout
- No NWS API key required — uses the free public api.weather.gov
News (page 2)
- RSS feed reader — add any number of RSS 2.0 or Atom feeds
- Unified feed — articles from all sources merged and sorted latest-first
- Lazy loading — displays 25 articles at a time; tap "Load 25 more…" to page through
- Full headlines and body — feed name, publish date, headline, and article preview shown per item
- Tap to open — tapping an article opens it in the system browser
Settings (page 3)
- ZIP code entry and Imperial/Metric unit toggle
- RSS feed management — add feeds by URL, remove existing feeds with one tap
---
Screenshots
WEATH by Jason Page · store.amfile.org · 2026
────────────────────────────────────────────────────────────────────
Boston, MA ← News
┌─ This Afternoon ──────────────────────── Partly Cloudy ──────────┐
│ 38°F 12 mph │
│ Hi 42°/Lo 28°F ↘ NW │
│ RH 55% AQI 34 │
└───────────────────────────────────────────────────────────────────┘
7-DAY
DAY HI/LO WIND PCPN RH AQI
Tonight 42/28°F ↑ 8 mph Snow 1-2in 62% 28
Mon 48/31°F ↘ 15 mph — 55% 34
Mon Nt 31/48°F ↑ 10 mph Snow 60% 28
Tue 50/36°F ↖ 5 mph Rain 70% 41
Tue Nt 36/50°F ↘ 8 mph — 65% 38
Wed 54/40°F → 10 mph Drizzle 72% 44
Wed Nt 40/54°F ↑ 6 mph Frzg Rain 68% 40
────────────────────────────────────────────────────────────────────
ACTIVE ADVISORIES
WINTER STORM WARNING
Winter Storm Warning in effect until 6 AM EST Tuesday…
● ● ○
WEATH by Jason Page · store.amfile.org · 2026
────────────────────────────────────────────────────────────────────
NEWS (page 2 of 3)
reuters.com Mar 7 14:32
Markets rally as inflation data comes in below expectations
Stocks climbed sharply Friday after the Labor Department reported
consumer prices rose less than anticipated in February, easing
concerns about prolonged high interest rates…
────────────────────────────────────────────────────────────────────
bbc.co.uk Mar 7 13:10
Scientists confirm new deep-sea species discovered off Pacific coast
Researchers at the Monterey Bay Aquarium Research Institute have
announced the discovery of three new species of bioluminescent…
────────────────────────────────────────────────────────────────────
Load 25 more…
---
Data Sources
No API keys are required for any service.
---
Requirements
Android 8.0 Oreo or later (API 26+)
Internet connection
US ZIP codes only (api.weather.gov covers the United States and territories)
---
Building
Prerequisites
Android SDK with build tools 34
JDK 21 (JDK 17 also supported; JDK 25 requires Gradle 8.10+)
Gradle 8.6 (use cached wrapper distribution or a local install — see note below)
>
Note: The
gradlew wrapper script and JAR are not committed to this repo.
> Build directly with a local Gradle installation:
>
bash
> gradle assembleDebug
>
> or point to a cached distribution:
>
bash
> JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 \
> ~/.gradle/wrapper/dists/gradle-8.6-bin/*/gradle-8.6/bin/gradle assembleDebug
>
Debug APK
bash
gradle assembleDebug
output: app/build/outputs/apk/debug/app-debug.apk
Install to a connected device
bash
adb install app/build/outputs/apk/debug/app-debug.apk
Release build
bash
gradle assembleRelease
---
Project Structure
weath/
├── app/src/main/
│ ├── java/org/amfile/weath/
│ │ ├── MainActivity.kt # ViewPager2 host, 3-dot indicators
│ │ ├── WeatherFragment.kt # Weather page (page 0)
│ │ ├── RssFragment.kt # News feed page (page 1)
│ │ ├── SettingsFragment.kt # Settings page (page 2)
│ │ ├── WeatherPagerAdapter.kt # 3-page pager adapter
│ │ ├── WeatherViewModel.kt # Weather data, unit conversion,
│ │ │ # precip parsing, hi/lo formatting
│ │ ├── RssViewModel.kt # Feed URL storage, RSS/Atom fetching
│ │ │ # + parsing, article pagination
│ │ ├── adapter/
│ │ │ ├── WeatherAdapter.kt # RecyclerView: 7 view types
│ │ │ └── RssAdapter.kt # RecyclerView: article + load-more
│ │ ├── api/
│ │ │ ├── WeatherApiService.kt # NWS endpoints (Retrofit)
│ │ │ ├── GeocodingApiService.kt # Nominatim endpoint (Retrofit)
│ │ │ ├── OpenMeteoApiService.kt # Open-Meteo humidity + AQI (Retrofit)
│ │ │ └── RetrofitClient.kt # OkHttp + 4 Retrofit clients
│ │ └── model/
│ │ ├── ForecastResponse.kt
│ │ ├── PointsResponse.kt
│ │ ├── AlertsResponse.kt
│ │ ├── GeocodingResult.kt
│ │ ├── OpenMeteoResponse.kt # Humidity + AQI response models
│ │ ├── RssArticle.kt # Article model + RssDisplayState
│ │ └── WeatherState.kt # Sealed: Loading / Success / Error
│ └── res/
│ ├── layout/
│ │ ├── activity_main.xml
│ │ ├── fragment_weather.xml
│ │ ├── fragment_rss.xml
│ │ ├── fragment_settings.xml
│ │ ├── itemlocationheader.xml
│ │ ├── itemcurrentconditions.xml
│ │ ├── itemforecastheader.xml # Column label row
│ │ ├── itemforecastrow.xml # Half-day forecast row
│ │ ├── itemsectionlabel.xml
│ │ ├── item_advisory.xml
│ │ ├── itemrssarticle.xml
│ │ ├── itemrssload_more.xml
│ │ └── itemrssfeed_row.xml # Feed URL row in Settings
│ └── values/
│ ├── colors.xml # Amber-on-black palette
│ ├── strings.xml
│ └── themes.xml
└── README.md
---
How It Works
Weather
User enters a US ZIP code in Settings
Nominatim geocodes the ZIP to a latitude/longitude
api.weather.gov/points/{lat},{lon} resolves the NWS grid office and forecast URLs
The forecast URL returns up to 14 half-day periods (day + overnight for 7 days)
api.weather.gov/alerts/active?point=… fetches any active advisories
Open-Meteo provides daily relative humidity and daily max US AQI for the same coordinates
Each forecast row shows the period's hi/lo (daytime temp = high, overnight = low, each referencing its counterpart), wind, precipitation, RH, and AQI
Precipitation is detected and amounts extracted by parsing NWS forecast text
News
User adds one or more RSS 2.0 or Atom feed URLs in Settings
On opening the News page, all feeds are fetched concurrently via OkHttp
XML is parsed with Android's built-in XmlPullParser; HTML is stripped from descriptions
Articles from all feeds are merged and sorted by publish date (latest first)
The first 25 articles are displayed; "Load 25 more…" appends the next page
---
Dependencies
| Library | Version | Purpose |
|---|
| Kotlin | 1.9.22 | Language |
| AndroidX ViewPager2 | 1.0.0 | Swipe navigation |
| AndroidX Lifecycle | 2.7.0 | ViewModel + StateFlow |
| Retrofit 2 | 2.9.0 | HTTP API clients |
| Gson Converter | 2.9.0 | JSON deserialization |
| OkHttp | 4.12.0 | HTTP client (weather APIs + RSS fetching) |
| Kotlin Coroutines | 1.7.3 | Async data loading |
| Material Components | 1.11.0 | UI widgets |
All RSS/Atom parsing uses Android's built-in
XmlPullParser — no additional XML library needed.
---
Theme
Pure
amber on black —
#FFC107 primary on
#000000 background — using monospace throughout for a clean terminal-style readout.
| Color token | Hex | Usage |
|---|
amberbright | #FFD54F | Temperatures, headlines |
amberprimary | #FFC107 | Main text, data values |
amberdark | #FF8F00 | Secondary labels |
amberdim | #795400 | Hints, metadata, column headers |
amber_faint | #3D2A00 | Dividers, input backgrounds |
---
License
Copyright © 2026 Jason Page —
store.amfile.org
All rights reserved.