Skip to content

Snowapril/dayglance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dayglance

A terminal dashboard written in Rust that shows the current time, a monthly calendar, this week's weather forecast, and upcoming public holidays — all in one glance.

Features

  • Time & date — timezone-aware, derived from your location
  • Monthly calendar — current month with today highlighted
  • 7-day weather forecast — powered by Open-Meteo (free, no API key)
  • Upcoming public holidays — fetched from Nager.Date based on your country
  • Location cache — detected once via IP, saved to ~/.config/dayglance/config.toml

Usage

cargo run              # full dashboard (7-day weather, 6 upcoming holidays)
cargo run -- s         # short view    (3-day weather, 3 upcoming holidays)
cargo run -- short     # same as above

First run

On the first run, dayglance auto-detects your location via IP and asks you to confirm:

Detected location: Seoul, South Korea. Use this? [Y/n]:

Press Enter to accept, or type n and enter a city name manually. The answer is cached — subsequent runs start instantly.

To reset the location, delete ~/.config/dayglance/config.toml.

Example output

Full view (cargo run)

 📅  Sunday, March 15, 2026  ·  Seoul, South Korea
 🕐  14:32:07  KST  (UTC+9)
┌─────────────────────┬──────────────────────────────┬──────────────────────────┐
│ 📆 CALENDAR         │ 🌤 WEATHER THIS WEEK          │ 🗓 UPCOMING HOLIDAYS      │
│                     │                              │                          │
│      March 2026     │  Sun Mar 15  ☀️   12.0/3.0°C │  Mar 01  Independence Day│
│  Mo Tu We Th Fr Sa  │  Mon Mar 16  ⛅   10.0/2.0°C │  Apr 05  Arbor Day       │
│                  Su │  Tue Mar 17  🌧    8.0/1.0°C │  Apr 06  Easter Sunday   │
│   2  3  4  5  6  7  │  Wed Mar 18  🌧    7.0/0.0°C │  May 01  Labor Day       │
│   8  9 10 11 12 13  │  Thu Mar 19  ⛅    9.0/1.0°C │  May 05  Children's Day  │
│  14 15 16 17 18 19  │  Fri Mar 20  ☀️   13.0/4.0°C │  Jun 06  Memorial Day    │
│  20 21 22 23 24 25  │  Sat Mar 21  ☀️   15.0/5.0°C │                          │
│  26 27 28 29 30 31  │                              │                          │
└─────────────────────┴──────────────────────────────┴──────────────────────────┘

Today's date is bold and highlighted in yellow. Holidays within the next 7 days appear in yellow.

Short view (cargo run -- s)

 📅  Sunday, March 15, 2026  ·  Seoul, South Korea
 🕐  14:32:07  KST  (UTC+9)
┌─────────────────────┬──────────────────────────────┬──────────────────────────┐
│ 📆 CALENDAR         │ 🌤 WEATHER (3 DAYS)           │ 🗓 UPCOMING HOLIDAYS      │
│                     │                              │                          │
│      March 2026     │  Sun Mar 15  ☀️   12.0/3.0°C │  Mar 01  Independence Day│
│  Mo Tu We Th Fr Sa  │  Mon Mar 16  ⛅   10.0/2.0°C │  Apr 05  Arbor Day       │
│  ...                │  Tue Mar 17  🌧    8.0/1.0°C │  Apr 06  Easter Sunday   │
└─────────────────────┴──────────────────────────────┴──────────────────────────┘

Data sources

Data Source Auth
Location (auto-detect) ip-api.com None
Location (manual lookup) Open-Meteo Geocoding None
Weather forecast Open-Meteo None
Public holidays Nager.Date None

All APIs are free with no registration required.

Build

Requires Rust 1.85+ (edition 2024).

git clone https://github.com/snowapril/dayglance
cd dayglance
cargo build --release
./target/release/dayglance

License

MIT — see LICENSE.

About

claude playground

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages