{"id":16445638,"url":"https://github.com/jenni/weather-app","last_synced_at":"2026-05-15T06:32:22.837Z","repository":{"id":114730884,"uuid":"126733775","full_name":"jenni/weather-app","owner":"jenni","description":"Nodejs weather app using Google Maps and Dark Sky API","archived":false,"fork":false,"pushed_at":"2018-03-29T15:39:37.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T10:12:52.358Z","etag":null,"topics":["axios","callbacks","darksky-api","google-maps-api","promises","request"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jenni.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-25T19:46:14.000Z","updated_at":"2023-03-05T07:10:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"f524e906-f176-41cc-9b84-715fcd4f2f8a","html_url":"https://github.com/jenni/weather-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jenni/weather-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenni%2Fweather-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenni%2Fweather-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenni%2Fweather-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenni%2Fweather-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenni","download_url":"https://codeload.github.com/jenni/weather-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenni%2Fweather-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33056150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["axios","callbacks","darksky-api","google-maps-api","promises","request"],"created_at":"2024-10-11T09:44:57.150Z","updated_at":"2026-05-15T06:32:22.815Z","avatar_url":"https://github.com/jenni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Weather app\n\nCommand line application to get the weather by location, sending requests to **Google Maps and Dark Sky API**.\n\n```\n➜  weather-app git:(master) ✗ node app/app.js --a kantstr. 1\nIt's currently 45.61 in Kantstraße, Berlin, Germany. It feels like 38.65.\n```\n\n#### Callbacks, Promise wrappers, Promise based library...\n\nThis repository shows three different ways of requesting data from **Dark Sky API**. These are:\n\n\n* **Callbacks** : **`app-callbacks/app.js`** : makes use of `request` library using its native callback support: `request({ opts }, callback)`. Callback hell building up much ; ) : **`-\u003e node app/app.js --a 'address here'`** .\n\n* **Promise wrappers** : **`app-request-promise/app.js`** : uses the `request` HTTP request client, non-compatible Promise library. `requests` have been wrapped in custom Promise declarations to use `promise chaining` or `async/await` : **`-\u003e node app-request-promise/app.js --a berlin`** .\n \n* **Calls via Promised based library** : **`app-axios-promise/app.js`** : requires `axios`, a Promise based HTTP client for node. The simplest and quickest way of requesting async data : **`-\u003e node app-axios-promise.js --address lalala`**\n\n**CLI help:**\n\n```\n➜  weather-app git:(master) ✗ node app/app.js --h\nOptions:\n  --version      Show version number                                   [boolean]\n  -a, --address  Address to fetch weather for                [string] [required]\n  --help, -h     Show help                                             [boolean]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenni%2Fweather-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenni%2Fweather-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenni%2Fweather-app/lists"}