{"id":19206905,"url":"https://github.com/pkoretic/slack-weather-bot","last_synced_at":"2026-06-22T14:31:44.518Z","repository":{"id":144905016,"uuid":"118133693","full_name":"pkoretic/slack-weather-bot","owner":"pkoretic","description":"Slack weather bot ","archived":false,"fork":false,"pushed_at":"2018-01-19T15:52:11.000Z","size":386,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-26T01:09:37.120Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkoretic.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-19T14:17:45.000Z","updated_at":"2018-01-20T13:28:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d39ab93-bda7-4792-8717-88157e4cbc59","html_url":"https://github.com/pkoretic/slack-weather-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pkoretic/slack-weather-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkoretic%2Fslack-weather-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkoretic%2Fslack-weather-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkoretic%2Fslack-weather-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkoretic%2Fslack-weather-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkoretic","download_url":"https://codeload.github.com/pkoretic/slack-weather-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkoretic%2Fslack-weather-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34653712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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":[],"created_at":"2024-11-09T13:17:23.061Z","updated_at":"2026-06-22T14:31:44.501Z","avatar_url":"https://github.com/pkoretic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slack-weather-bot\n\nA very simple slack weather bot written in Node.js.\n\n## Installation\n\nTo create a valid slack-bot user and a token please visit https://api.slack.com/bot-users.\u003cbr/\u003e\nFor a valid OpenWeatherMap API key please visit http://openweathermap.org/appid.\n\n```\ngit clone https://github.com/pkoretic/slack-weather-bot\nnpm install\nSLACK_API_TOKEN=... OPENWEATHER_API_KEY=... npm start\n```\n\nIf your slack token is valid, and everything went well, inside your slack workspace your bot should\nnow be online.\n\n\u003cimg src=\"misc/statusonline.png\" width=\"200\" /\u003e\n\nOtherwise, please check the logs for clues as to what could have possibly gone wrong.\n\n## Usage\n\nThis bot is very simple. To get a current weather information for your city, add the bot to any\nwanted channel and mention it with a name of the city. For example: `@weather London`.\n\n\u003cimg src=\"misc/msgok.png\" width=\"500\" /\u003e\n\nThis maps directly to the OpenWeatherMap API with a query option `By city name`. Which also supports\nproviding country code when this is wanted. For example: `@weather Zagreb,hr`. For more details see\nhttps://openweathermap.org/current\n\nSince this bot is fairly simple, a failure is likely to happen. In that case, it will respond\ngracefully.\n\n\u003cimg src=\"misc/msgerror.png\" width=\"500\" /\u003e\n\n## Implementation\n\nThe service uses Node.js [Botkit](https://howdy.ai/botkit) library to communicate with the slack\n[Real Time Messaging API](https://api.slack.com/rtm) over websockets.\n\nFor OpenWeatherMap API we use our [caching\nservice](https://github.com/pkoretic/openweathermap-cache-proxy) to minimize latency and number of\nrequests made to the official API.\n\n## Dockerfile\n\nA convenient docker file is provided.\n\n```\ndocker build -t slack-weather-bot .\ndocker run -e SLACK_API_TOKEN=... -e OPENWEATHER_API_KEY=... slack-weather-bot\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkoretic%2Fslack-weather-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkoretic%2Fslack-weather-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkoretic%2Fslack-weather-bot/lists"}