{"id":18105389,"url":"https://github.com/bjesus/wttrbar","last_synced_at":"2026-04-01T19:36:44.251Z","repository":{"id":184202772,"uuid":"628860335","full_name":"bjesus/wttrbar","owner":"bjesus","description":"Custom module for showing the weather in Waybar, using the great wttr.in","archived":false,"fork":false,"pushed_at":"2026-03-20T22:07:47.000Z","size":164,"stargazers_count":334,"open_issues_count":6,"forks_count":32,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-03-20T23:18:19.334Z","etag":null,"topics":["sway","waybar","wayland","weather","wttr"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/bjesus.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":"2023-04-17T06:13:20.000Z","updated_at":"2026-03-20T22:06:42.000Z","dependencies_parsed_at":"2024-03-13T20:29:56.119Z","dependency_job_id":"5ce473a5-bc20-4384-a7e3-7eaed5a540b2","html_url":"https://github.com/bjesus/wttrbar","commit_stats":{"total_commits":80,"total_committers":21,"mean_commits":"3.8095238095238093","dds":0.5,"last_synced_commit":"68c1336d92a921d60608baba642f504a1de5e125"},"previous_names":["bjesus/wttrbar"],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/bjesus/wttrbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fwttrbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fwttrbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fwttrbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fwttrbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjesus","download_url":"https://codeload.github.com/bjesus/wttrbar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjesus%2Fwttrbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: 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":["sway","waybar","wayland","weather","wttr"],"created_at":"2024-10-31T22:18:34.677Z","updated_at":"2026-04-01T19:36:44.243Z","avatar_url":"https://github.com/bjesus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\nwttrbar\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\na simple but detailed weather indicator for \u003ca href=\"https://github.com/Alexays/Waybar/\"\u003eWaybar\u003c/a\u003e using \u003ca href=\"https://wttr.in/\"\u003ewttr.in\u003c/a\u003e.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/55081/232401699-b8345fe0-ffce-4353-b51b-615389153448.png\" height=\"400\"\u003e\n\u003c/p\u003e\n\u003chr /\u003e\n\n## Installation\n\nCompile yourself using `cargo build --release`, or download the precompiled binary from the [releases](https://github.com/bjesus/wttrbar/releases) page.\n\nFor Arch Linux, use the [AUR](https://aur.archlinux.org/packages/wttrbar) package.\n\nFor NixOS, use the [NixPkg](https://search.nixos.org/packages?channel=24.05\u0026show=wttrbar\u0026from=0\u0026size=50\u0026sort=relevance\u0026type=packages\u0026query=wttrbar) package.\n\n## Usage\n\n- `--ampm` - display time in AM/PM format\n- `--location STRING` - pass a specific location to wttr.in\n- `--main-indicator` - decide which [`current_conditions` key](https://wttr.in/?format=j1) will be shown on waybar. defaults to `temp_C`\n- `--date-format` - defaults to `%Y-%m-%d`, formats the date next to the days. see [reference](https://docs.rs/chrono/latest/chrono/format/strftime/index.html)\n- `--nerd` - use [nerd font](https://www.nerdfonts.com/) symbols instead of emojis\n- `--hide-conditions` - show a shorter descrpition next to each hour, like `7° Mist` instead of `7° Mist, Overcast 81%, Sunshine 17%, Frost 15%`\n- `--fahrenheit` - use fahrenheit instead of celsius\n- `--mph` - use mph instead of km/h for wind speed\n- `--custom-indicator STRING` - optional expression that will be shown instead of main indicator. [`current_conditions` and `nearest_area` keys](https://wttr.in/?format=j1) surrounded by {} can be used. For example, `\"{ICON} {FeelsLikeC} ({areaName})\"` will be transformed to `\"text\":\"🌧️ -4 (Amsterdam)\"` in the output\n- `--lang LANG` - set language (currently `en`, `de`, `pl`, `tr`, `fr`, `ru`, `zh`, `be`, `es`, `pt`, `it`, `ja`, `uk`, `sv`, `da`, `cs`, `sk`, `ga`; submit a PR to add yours)\n- `--observation-time` - show the time the current weather conditions were measured\n\ne.g. `wttrbar --date-format \"%m/%d\" --location Paris --hide-conditions`\n\n### Icons\n\nTo display the weather icons correctly, you will need to have a font that supports emojis installed. The screenshot uses [Noto Emoji](https://github.com/googlefonts/noto-emoji), but you can use [other fonts](https://wiki.archlinux.org/title/fonts#Emoji_and_symbols) too.\n\n## Waybar configuration\n\nAssuming `wttrbar` is in your path, it can be used like:\n\n```json\n\"custom/weather\": {\n    \"format\": \"{}°\",\n    \"tooltip\": true,\n    \"interval\": 3600,\n    \"exec\": \"wttrbar\",\n    \"return-type\": \"json\"\n},\n```\n\nYou can also then creating custom styling based on the current condition:\n\n```css\n#custom-weather.sunny {\n  background-color: yellow;\n}\n```\n\n## Old version\n\nThis code is based on my [old Python gist](https://gist.github.com/bjesus/f8db49e1434433f78e5200dc403d58a3) that was used for the same purpose.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjesus%2Fwttrbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjesus%2Fwttrbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjesus%2Fwttrbar/lists"}