{"id":21512062,"url":"https://github.com/step63r/uchi-notify-weather-slack-bot","last_synced_at":"2025-03-17T15:26:10.286Z","repository":{"id":204731311,"uuid":"712519351","full_name":"step63r/uchi-notify-weather-slack-bot","owner":"step63r","description":"毎日の気象情報をSlackにお知らせするbot (Azure Functions)","archived":false,"fork":false,"pushed_at":"2023-10-31T16:53:35.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T01:43:43.493Z","etag":null,"topics":["azure-functions","bot","open-meteo","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/step63r.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":"2023-10-31T16:18:30.000Z","updated_at":"2023-10-31T16:37:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"66a3574d-7baf-4468-9e45-b51d7af583bc","html_url":"https://github.com/step63r/uchi-notify-weather-slack-bot","commit_stats":null,"previous_names":["step63r/uchi-notify-weather-slack-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/step63r%2Fuchi-notify-weather-slack-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/step63r%2Fuchi-notify-weather-slack-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/step63r%2Fuchi-notify-weather-slack-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/step63r%2Fuchi-notify-weather-slack-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/step63r","download_url":"https://codeload.github.com/step63r/uchi-notify-weather-slack-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056785,"owners_count":20390787,"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":["azure-functions","bot","open-meteo","python3"],"created_at":"2024-11-23T22:26:47.190Z","updated_at":"2025-03-17T15:26:10.267Z","avatar_url":"https://github.com/step63r.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uchi-notify-weather-slack-bot\n\n## Description\n\n毎朝9時に大阪市の天気や気温、日の出・日の入時刻をSlackにお知らせするボットのバックエンドロジックです。\n\n気象情報の取得には [Open-Meteo.com](https://open-meteo.com/) を利用しています。\n\nこのアプリケーションはAzure Functionsにデプロイすることを想定しています。\n\n## Requirement\n\n- Python 3.11.2\n- Visual Studio Code\n\nその他、以下に記載の「前提条件」をセットアップする必要があります。\n\n[Visual Studio Code を使用して Azure Functions を開発する | Microsoft Learn](https://learn.microsoft.com/ja-jp/azure/azure-functions/functions-develop-vs-code?tabs=node-v3%2Cpython-v2%2Cisolated-process\u0026pivots=programming-language-python)\n\n## Usage\n\n最初にPythonの仮想環境を作成します。\n\n```\nPS\u003e python -m venv .venv\nPS\u003e .\\.venv\\Scripts\\activate\n(.venv) PS\u003e pip install -r .\\requirements.txt\n```\n\n以下を参考にして通知したい通知先のWebhook URLを取得します。\n\n[Slack：Webhook URL取得してSlackに通知する](https://zenn.dev/hotaka_noda/articles/4a6f0ccee73a18)\n\n``local.settings.json`` およびAzure Functionsの「構成」でアプリケーション設定に ``SlackWebhookUrl`` という変数名でWebhook URLを設定します。\n\n以降は以下などを参考にしてロジック修正、ローカルデバッグ、デプロイなどを行ってください。\n\n[Visual Studio Code を使用して Python 関数を作成する - Azure Functions | Microsoft Learn](https://learn.microsoft.com/ja-jp/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-decorators)\n\nタイマー関数の手動実行については以下に記載があります。\n\n[HTTP によってトリガーされない Azure Functions を手動で実行する | Microsoft Learn](https://learn.microsoft.com/ja-jp/azure/azure-functions/functions-manually-run-non-http)\n\n## Install\n\nこのリポジトリをフォークしてクローンします。\n\n```\n$ git clone git@github.com:yourname/uchi-notify-weather-slack-bot.git\n```\n\n## Contribution\n\n1. このリポジトリをフォークする\n2. 変更を加える\n3. 変更をコミットする\n4. ブランチにプッシュする\n5. プルリクエストを作成する\n\n## License\n\nNo License\n\n## Author\n\n[minato](https://blog.minatoproject.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstep63r%2Fuchi-notify-weather-slack-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstep63r%2Fuchi-notify-weather-slack-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstep63r%2Fuchi-notify-weather-slack-bot/lists"}