{"id":18539040,"url":"https://github.com/simov/slack-command-weather","last_synced_at":"2025-07-14T23:08:48.050Z","repository":{"id":57362747,"uuid":"157713660","full_name":"simov/slack-command-weather","owner":"simov","description":"Weather Forecast /slash Command for Slack","archived":false,"fork":false,"pushed_at":"2018-11-22T12:49:54.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T02:06:01.875Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simov.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":"2018-11-15T13:12:32.000Z","updated_at":"2018-11-22T12:49:55.000Z","dependencies_parsed_at":"2022-09-26T16:32:17.957Z","dependency_job_id":null,"html_url":"https://github.com/simov/slack-command-weather","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/simov/slack-command-weather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simov","download_url":"https://codeload.github.com/simov/slack-command-weather/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-command-weather/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265365699,"owners_count":23753379,"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-11-06T19:45:57.201Z","updated_at":"2025-07-14T23:08:48.027Z","avatar_url":"https://github.com/simov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# slack-command-weather\n\n\u003e Weather Forecast /slash Command for Slack\n\n## middleware\n\n```js\nvar express = require('express')\nvar weather = require('slack-command-weather')\nvar auth = {google: 'API key', darksky: 'API key', slack: 'hook token'}\n\nexpress()\n  .use(weather(auth))\n  .listen(3000)\n```\n\n## api\n\n```js\nvar express = require('express')\nvar parser = require('body-parser')\nvar weather = require('slack-command-weather')\nvar auth = {google: 'API key', darksky: 'API key', slack: 'hook token'}\n\nexpress()\n  .use(parser.urlencoded({extended: true}))\n  .use((req, res) =\u003e {\n    var input = req.body\n    res.json(weather.respond({auth, input}))\n    weather.query({auth, input}).catch(console.error)\n  })\n  .listen(3000)\n```\n\n## command\n\nOption                | Value\n:--                   | :--\nCommand               | `/weather`\nRequest URL           | `https://website.com/weather`\nShort Description     | `Weather Forecast`\nUsage Hint            | `[location]`\n\n## example\n\nCommand               | Description\n:--                   | :--\n`/weather tokyo`      | current weather in Tokyo\n`/weather help`       | help message\n\n\n  [geoip]: https://developers.google.com/maps/documentation/geocoding/start\n  [darksky]: https://darksky.net/dev/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fslack-command-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimov%2Fslack-command-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fslack-command-weather/lists"}