{"id":20765781,"url":"https://github.com/hakerdefo/pmwf","last_synced_at":"2026-05-06T01:36:03.151Z","repository":{"id":34661852,"uuid":"38633239","full_name":"hakerdefo/pmwf","owner":"hakerdefo","description":"pmwf (Poor Man's Weather Forecast) displays detailed 4 day weather forecast.","archived":false,"fork":false,"pushed_at":"2023-07-01T19:38:02.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T06:13:24.779Z","etag":null,"topics":["bash","linux","script","shell","weather","weather-forecast"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hakerdefo.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}},"created_at":"2015-07-06T17:01:28.000Z","updated_at":"2021-11-11T18:09:19.000Z","dependencies_parsed_at":"2022-09-16T09:50:39.980Z","dependency_job_id":null,"html_url":"https://github.com/hakerdefo/pmwf","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"19ea31278f26c3a98150f443cc87a0c93a3da600"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakerdefo%2Fpmwf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakerdefo%2Fpmwf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakerdefo%2Fpmwf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakerdefo%2Fpmwf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakerdefo","download_url":"https://codeload.github.com/hakerdefo/pmwf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243093429,"owners_count":20235367,"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":["bash","linux","script","shell","weather","weather-forecast"],"created_at":"2024-11-17T11:18:53.182Z","updated_at":"2025-10-19T00:47:43.553Z","avatar_url":"https://github.com/hakerdefo.png","language":"Shell","funding_links":["https://paypal.me/hakerdefo","https://www.buymeacoffee.com/hakerdefo","https://liberapay.com/hakerdefo/donate"],"categories":[],"sub_categories":[],"readme":"# pmwf\n`pmwf` displays current weather conditions with a 3 days weather forecast for almost any location in the world.\n`pmwf` shows information for following weather parameters,\n\n- Weather Condition\n- Minimum Temperature\n- Maximum Temperature\n- Atmospheric Pressure\n- Humidity\n- Wind Speed\n- Wind Direction\n\nWhy forecast for only 3 days you might wonder?\nSimply because no matter what they say, any forecast beyond next three days becomes less \u0026 less accurate. This is the reason why `pmwf` shows the current weather condition and forecast for the next three days.\n\n\n### Dependency:\n- jq - `jq` is like sed for JSON data. You can use [jq] to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. `jq` is available in the repositories of Debian, Ubuntu, Fedora, openSUSE, Arch (AUR), FreeBSD (FreshPorts), Solaris (OpenCSW), OS X (Homebrew). Linux and OS X binaries are also available from the Download section of `jq` website. If you decide to use the `jq` binary directly from the `jq` website you will have to rename it after downloading from `jq-linux64` or `jq-linux32` to simply `jq`. In case of OS X rename it to `jq` from `jq-osx-amd64`. Here is the link to the download page of `jq`,\n\n[Download jq]\n\n### Installation:\nInstalling `pmwf` is easy. Download [pmwf-master.zip] and extract it. Open the file `pmwf` in your favourite text editor. Right at the beginning of the file you will find four empty variables `local_latitude`, `local_longitude`, `local_unit` and `api_key`. You need to assign **latitude** of your location to the variable `local_latitude`, **longitude** of your location to the variable `local_longitude` and your preferred **units** system to the variable `local_unit`. Chances are that you don't know the **latitude-longitude** values for the place you live. No worries! It's easy. `OpenStreetMap` has geographic coordinate information of almost all the places on earth. Go to the following `OpenStreetMap` page and search for the **latitude-longitude** of your location,  \n\n[OpenStreetMap](https://www.openstreetmap.org)  \n\nI've got **latitude-longitude** for my place but what is this **units** system I hear you say! Well, there are two main units systems in use. **metric** and **imperial**. Which one should you use? If you prefer to measure temperature in **Celsius** (**Centigrade**) \u0026 distance in **Kilometers** (**km**), use **metric**. And if you prefer to measure temperature in **Fahrenheit** \u0026 distance in **Miles** (**mi**), use **imperial**.  \n\nFor example for someone in London, UK it would look like this,  \n\n```sh\nlocal_latitude=51.500\nlocal_longitude=-0.117\nlocal_unit=metric\n```\n\nAnd for someone in New York, US it would look like,  \n\n```sh\nlocal_latitude=40.714\nlocal_longitude=-74.006\nlocal_unit=imperial\n```\n\nNext and final step is to get an **API** key from `OpenWeatherMap`. Don't worry it's simple and their free plan is good enough for our needs. Here is the link to the sign up page of `OpenWeatherMap`,  \n\n[OpenWeatherMap Sign Up]  \n\nAfter registration you'll get your unique **API** key. Assign this key to the `api_key` variable in the file.  \n\nSave the file after making the necessary changes. \n\nNext copy the file `pmwf` to `/usr/local/bin/` directory,  \n\n```sh\n$ sudo cp pmwf /usr/local/bin/\n```\n\nMake it executable,  \n\n```sh\n$ sudo chmod a+x /usr/local/bin/pmwf\n```\n\nIf you have manually downloaded the `jq` binary from its website then do the following. Skip this step if you have installed `jq` using your distribution's package manager.  \n\nCopy `jq` binary file to `/usr/local/bin/` directory,  \n\n```sh\n$ sudo cp jq /usr/local/bin/\n```\n\nMake it executable,  \n\n```sh\n$ sudo chmod a+x /usr/local/bin/jq\n```\n\n### Usage:\nOpen terminal, type `pmwf`, hit Enter and you'll have current weather conditions with a 3 day weather forecast of your location right in terminal.  \n\n### Support:\nIf you like `pmwf`, please consider supporting it, even the smallest contribution goes a long way. It is quick \u0026 easy via PayPal, Buy Me a Coffee, Liberapay or Stripe:  \n\n[![Support via PayPal](https://cdn.jsdelivr.net/gh/twolfson/paypal-github-button@1.0.0/dist/button.svg)](https://paypal.me/hakerdefo)  \n[![\"Buy Me A Coffee\"](https://user-images.githubusercontent.com/1376749/120938564-50c59780-c6e1-11eb-814f-22a0399623c5.png)](https://www.buymeacoffee.com/hakerdefo)  \n[![Support via Liberapay](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/hakerdefo/donate)  \n[**Support via Stripe**](https://buy.stripe.com/28odRcfob9or41OdQQ)  \n\n### Credits:\n[OpenWeatherMap] - `pmwf` wouldn't exist without amazing Weather API provided by OpenWeatherMap.\n\n### License:\n[![Public Domain Mark](http://i.creativecommons.org/p/mark/1.0/88x31.png)](http://creativecommons.org/publicdomain/mark/1.0/)  \nThis work (\u003cspan property=\"dct:title\"\u003epmwf\u003c/span\u003e, by [\u003cspan property=\"dct:title\"\u003ehakerdefo\u003c/span\u003e](https://github.com/hakerdefo/pmwf)), identified by [\u003cspan property=\"dct:title\"\u003ehakerdefo\u003c/span\u003e](https://hakerdefo.blogspot.com), is free of known copyright restrictions.\n\n[jq]:https://stedolan.github.io/jq/\n[Download jq]:https://stedolan.github.io/jq/download/\n[pmwf-master.zip]:https://github.com/hakerdefo/pmwf/archive/master.zip\n[OpenWeatherMap Sign Up]:http://openweathermap.org/register\n[OpenWeatherMap]:http://openweathermap.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakerdefo%2Fpmwf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakerdefo%2Fpmwf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakerdefo%2Fpmwf/lists"}