{"id":13647733,"url":"https://github.com/kamek-pf/polybar-forecast","last_synced_at":"2025-04-22T02:32:38.647Z","repository":{"id":37180088,"uuid":"116062778","full_name":"kamek-pf/polybar-forecast","owner":"kamek-pf","description":"A weather forecast module for Polybar","archived":false,"fork":false,"pushed_at":"2022-06-17T01:26:06.000Z","size":294,"stargazers_count":99,"open_issues_count":12,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T21:37:32.167Z","etag":null,"topics":["polybar","rust","weather-forecast"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kamek-pf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-02T22:17:31.000Z","updated_at":"2024-05-29T14:19:55.000Z","dependencies_parsed_at":"2022-09-23T06:51:18.243Z","dependency_job_id":null,"html_url":"https://github.com/kamek-pf/polybar-forecast","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamek-pf%2Fpolybar-forecast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamek-pf%2Fpolybar-forecast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamek-pf%2Fpolybar-forecast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamek-pf%2Fpolybar-forecast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamek-pf","download_url":"https://codeload.github.com/kamek-pf/polybar-forecast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250163776,"owners_count":21385310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["polybar","rust","weather-forecast"],"created_at":"2024-08-02T01:03:44.955Z","updated_at":"2025-04-22T02:32:38.413Z","avatar_url":"https://github.com/kamek-pf.png","language":"Rust","funding_links":[],"categories":["Rust","Plugins"],"sub_categories":[],"readme":"## Unmaintained\n[`ntfd`](https://github.com/kamek-pf/ntfd) is a lightweight replacement with more features, take a look!\n\n## Weather forecast for Polybar\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/kamek-pf/polybar-forecast/blob/master/screenshots/preview.png\" /\u003e\n\u003c/p\u003e\n\nThis is a simple weather forecast module for Polybar. \\\nThe first number is the current temperature and the second one is a 3 hour forecast, the output is fully configurable.\n\nYou need Weather Icons and Material Icons for this to work properly. \\\nFor Arch users, both are available in the AUR:\n- [Weather Icons](https://aur.archlinux.org/packages/ttf-weather-icons/)\n- [Material Icons](https://aur.archlinux.org/packages/ttf-material-icons/)\n\n### Configuration\nLook at the example TOML configuration file.\n\n```toml\n# Register at https://openweathermap.org to get your API key\n# If you don't want to write your key here, you can delete this line and use the OWM_API_KEY environment variable instead\napi_key = \"YOUR_API_KEY\"\n\n# This is for Montreal, find your city at https://openweathermap.org\n# The id will be the last part of the URL\ncity_id = \"6077243\"\n\n# Output format, using Handlebars syntax, meaning variables should be used like {{ this }}\n# Available tokens are:\n# - temp_celcius\n# - temp_kelvin\n# - temp_fahrenheit\n# - temp_icon\n# - trend\n# - forecast_celcius\n# - forecast_kelvin\n# - forecast_fahrenheit\n# - forecast_icon\ndisplay = \"{{ temp_icon }} {{ temp_celcius }}°C {{ trend }} {{ forecast_icon }} {{ forecast_celcius }}°C\"\n```\n\n### Setup\nGrab a pre built binary from the [release page](https://github.com/kamek-pf/polybar-forecast/releases) (you might need to `chmod +x`), or run `cargo build --release`, in which case you'll find the binary at `target/release/polybar-forecast`. \\\nYou can copy the binary anywhere you want, the config files has to placed in either:\n- `$HOME/.config/polybar-forecast/config.toml`\n- The same directory as the binary\n\n### Polybar integration\nYou can define your new module like this:\n\n```\n[module/weather]\ntype = custom/script\nexec = /path/to/polybar-forecast\nexec-if = ping openweathermap.org -c 1\ninterval = 600\nlabel-font = 3\n```\nDon't forget to add Weather Icons to your config or it won't render correctly:\n```\n...\nfont-2 = Weather Icons:size=12;0\n...\n```\n\nThen you may add your new `weather` module on your bar.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamek-pf%2Fpolybar-forecast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamek-pf%2Fpolybar-forecast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamek-pf%2Fpolybar-forecast/lists"}