{"id":45394811,"url":"https://github.com/SuaveIV/nu_script_wttr","last_synced_at":"2026-03-06T20:00:42.233Z","repository":{"id":338303664,"uuid":"1157421139","full_name":"SuaveIV/nu_script_wttr","owner":"SuaveIV","description":"Weather fetcher for Nushell using wttr.in","archived":false,"fork":false,"pushed_at":"2026-03-02T01:08:40.000Z","size":261,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-02T04:44:29.541Z","etag":null,"topics":["forecast","nushell","nushell-script","weather-cli","wttrin"],"latest_commit_sha":null,"homepage":"","language":"Nushell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuaveIV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-13T19:54:08.000Z","updated_at":"2026-03-02T01:08:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/SuaveIV/nu_script_wttr","commit_stats":null,"previous_names":["suaveiv/nu_script_wttr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SuaveIV/nu_script_wttr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuaveIV%2Fnu_script_wttr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuaveIV%2Fnu_script_wttr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuaveIV%2Fnu_script_wttr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuaveIV%2Fnu_script_wttr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuaveIV","download_url":"https://codeload.github.com/SuaveIV/nu_script_wttr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuaveIV%2Fnu_script_wttr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30195501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["forecast","nushell","nushell-script","weather-cli","wttrin"],"created_at":"2026-02-21T19:00:27.577Z","updated_at":"2026-03-06T20:00:42.227Z","avatar_url":"https://github.com/SuaveIV.png","language":"Nushell","funding_links":[],"categories":["Scripts"],"sub_categories":[],"readme":"# wttr.in for Nushell\n\n![Nushell 0.110+](https://img.shields.io/badge/nushell-0.110+-4E9A06?logo=nushell)\n\nA weather fetcher for [Nushell](https://www.nushell.sh/) that pulls data from [wttr.in](https://wttr.in).\n\nTurns wttr.in's weather data into formatted tables with color gradients, caching, and options for current conditions, forecasts, hourly breakdowns, and astronomy - all without leaving your terminal.\n\n## What it does\n\nShows current weather, forecasts, and astronomy data in your terminal. Temperature gradients use ANSI colors. Works with Nerd Fonts by default, but you can switch to emojis or plain text if that's not your thing.\n\nCaches results for 15 minutes so you don't hammer the API. Auto-detects your location from IP, or you can specify cities, airport codes, landmarks (with `~`), or domains (with `@`). Units switch between metric and imperial based on where you are, unless you override it.\n\nHas a one-line mode for status bars, raw output for piping to other commands, and a debug mode when things aren't working.\n\n## Screenshots\n\n**Current weather:**\n\n\u003cimg width=\"578\" alt=\"Current weather with Nerd Fonts\" src=\"https://github.com/user-attachments/assets/4f4dde64-3322-4dad-babc-59985b32e8b2\" /\u003e\n\n**3-day forecast:**\n\n\u003cimg width=\"1053\" alt=\"3-day forecast\" src=\"https://github.com/user-attachments/assets/b70be374-b433-4282-bd59-8979c1c7ea4f\" /\u003e\n\n**Hourly breakdown:**\n\n\u003cimg width=\"897\" alt=\"Hourly forecast\" src=\"https://github.com/user-attachments/assets/b2333da8-c9a5-4c68-bdcf-a27acd0d71df\" /\u003e\n\n**Astronomy data:**\n\n\u003cimg width=\"375\" alt=\"Astronomy information\" src=\"https://github.com/user-attachments/assets/d9fda475-90b2-47c7-b44d-62594ad5bae9\" /\u003e\n\n**Emoji mode:**\n\n\u003cimg width=\"566\" alt=\"Emoji icons instead of Nerd Fonts\" src=\"https://github.com/user-attachments/assets/bda9aee8-6e2d-4b73-985d-06b004c79e92\" /\u003e\n\n**Plain text mode:**\n\n\u003cimg width=\"1208\" alt=\"Plain text output\" src=\"https://github.com/user-attachments/assets/52400ce5-978e-4746-97a3-bde522af94a5\" /\u003e\n\n**Oneline mode:**\n\n\u003cimg width=\"415\" height=\"49\" alt=\"image\" src=\"https://github.com/user-attachments/assets/1ab2c42d-3d54-42bc-9617-d0e394ac4b8f\" /\u003e\n\n## Installation\n\n\u003e Nerd Font icons are enabled by default. Install a [Nerd Font](https://www.nerdfonts.com) and set it as your terminal font, or use `-e` for emojis or `-t` for plain text instead.\n\n1. Download `weather.nu`\n2. Put it in your Nushell scripts directory (`~/.config/nushell/scripts/` on Linux/Mac, `%APPDATA%\\nushell\\scripts\\` on Windows)\n3. Add this to your `config.nu`:\n\n```nushell\nuse scripts/weather.nu\n```\n\n## Tips\n\n**Set a default city** — add this to your `env.nu`:\n\n```nushell\n$env.WTTR_CITY = \"New York\"\n```\n\nThis persists across sessions and takes priority over IP auto-detection, but can still be overridden per-call with an explicit argument.\n\n**Change the default city in the script** — edit the `city` parameter default in `weather.nu`:\n\n```nushell\ncity: string = \"\"       # Change to your city, e.g. \"New York\"\n```\n\n**Pipe to other tools** — use `--raw` and `--text` together to strip formatting for clean serialization:\n\n```nushell\nweather -3 -r -t | to json\nweather -3 -r -t | to toon                        # compact format for LLM input\nweather -r -t | to json | clipboard copy          # copy to clipboard as JSON\n```\n\n\u003e TOON support via [fdncred/nu_plugin_toon](https://github.com/fdncred/nu_plugin_toon)\n\u003e Clipboard support via [fmotalleb/nu_plugin_clipboard](https://github.com/fmotalleb/nu_plugin_clipboard)\n\n## Usage\n\n```nushell\n# Basic usage\nweather                    # Current weather at your location\nweather \"New York\"         # Specific city\nweather \"Paris, France\"    # City and country\nweather \"JFK\"              # Airport code\nweather \"~Eiffel Tower\"    # Approximate location\nweather \"@github.com\"      # Domain location\n\n# Display modes\nweather -3, --forecast     # 3-day forecast\nweather -H, --hourly       # Hourly breakdown (3-hour intervals)\nweather -a, --astro        # Sunrise, sunset, moon phase\nweather -1, --oneline      # One-line summary (for status bars)\n\n# Unit and display options\nweather -m, --metric       # Force metric units (°C, km/h)\nweather -i, --imperial     # Force imperial units (°F, mph)\nweather -e, --emoji        # Use emojis instead of Nerd Fonts\nweather -t, --text         # Plain text, no icons or colors\nweather --lang fr          # Weather in French (or de, es, zh, etc.)\n\n# Data output\nweather -j, --json         # Return full raw API response\nweather -r, --raw          # Return raw record data (for piping)\n\n# Utility\nweather -f, --force        # Bypass cache and fetch fresh data\nweather --clear-cache      # Delete all cached weather data and exit\nweather --debug            # Show diagnostic info\nweather --test             # Use dummy data (no network request)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSuaveIV%2Fnu_script_wttr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSuaveIV%2Fnu_script_wttr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSuaveIV%2Fnu_script_wttr/lists"}