{"id":22468498,"url":"https://github.com/projectweekend/weatherman.io","last_synced_at":"2025-03-27T15:44:35.730Z","repository":{"id":15232247,"uuid":"17960993","full_name":"projectweekend/weatherman.io","owner":"projectweekend","description":"A Node.js module for the Forecast.io API.","archived":false,"fork":false,"pushed_at":"2015-02-21T22:56:38.000Z","size":276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T19:29:43.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/projectweekend.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}},"created_at":"2014-03-20T22:39:49.000Z","updated_at":"2015-04-19T00:24:20.000Z","dependencies_parsed_at":"2022-09-07T09:22:15.466Z","dependency_job_id":null,"html_url":"https://github.com/projectweekend/weatherman.io","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2Fweatherman.io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2Fweatherman.io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2Fweatherman.io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2Fweatherman.io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectweekend","download_url":"https://codeload.github.com/projectweekend/weatherman.io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245874182,"owners_count":20686718,"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":[],"created_at":"2024-12-06T11:16:59.855Z","updated_at":"2025-03-27T15:44:35.713Z","avatar_url":"https://github.com/projectweekend.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Install it\n\n```\n npm install weatherman.io\n```\n\n\n### Require it\n```javascript\nvar weatherman = require( \"weatherman.io\" );\n```\n\n\n### Create a weatherman\n\n```javascript\nvar alRoker = new weatherman( \"your-forecast-io-api-key\" );\n```\n\n\n### Create a weatherman with options\n\n```javascript\nvar options = {\n    units: \"uk\",\n    exclude: [\"minutely\", \"alerts\"],\n    extend: \"hourly\"\n};\n\nvar alRoker = new weatherman( \"your-forecast-io-api-key\", options );\n```\n\nDetailed information about each of these options is available in the Forecast.io developer docs: [https://developer.forecast.io/docs/v2](https://developer.forecast.io/docs/v2)\n\n\n### Do the forecast from a location\n\n```javascript\nvar forecastOptions = {\n    latitude: 41.8854710,\n    longitude: -87.6430260\n};\n\nalRoker.doForecast( forecastOptions, function ( err, weatherReport ) {\n\n    if ( err ) {\n        // handle any errors\n    }\n    // do something with the weatherReport\n\n} );\n```\n\n\n### Do the forecast for a specific time (Unix timestamp)\n\n```javascript\nvar forecastOptions = {\n    latitude: 41.8854710,\n    longitude: -87.6430260,\n    time: 1395347280\n};\n\nalRoker.doForecast( forecastOptions, function ( err, weatherReport ) {\n\n    if ( err ) {\n        // handle any errors\n    }\n    // do something with the weatherReport\n\n} );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectweekend%2Fweatherman.io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectweekend%2Fweatherman.io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectweekend%2Fweatherman.io/lists"}