{"id":24537409,"url":"https://github.com/asjordi/telegram-weather-bot","last_synced_at":"2026-05-20T19:33:34.120Z","repository":{"id":272347991,"uuid":"915829085","full_name":"ASJordi/telegram-weather-bot","owner":"ASJordi","description":"Telegram Weather Bot","archived":false,"fork":false,"pushed_at":"2025-03-11T12:16:24.000Z","size":448,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T13:26:06.654Z","etag":null,"topics":["github-actions","java","openweathermap-api","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ASJordi.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":"2025-01-12T22:44:18.000Z","updated_at":"2025-03-11T12:16:27.000Z","dependencies_parsed_at":"2025-01-13T21:25:41.324Z","dependency_job_id":"4eaf9d6d-5e26-4eb4-a950-432c196dd92b","html_url":"https://github.com/ASJordi/telegram-weather-bot","commit_stats":null,"previous_names":["asjordi/telegram-weather-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASJordi%2Ftelegram-weather-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASJordi%2Ftelegram-weather-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASJordi%2Ftelegram-weather-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASJordi%2Ftelegram-weather-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ASJordi","download_url":"https://codeload.github.com/ASJordi/telegram-weather-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243811072,"owners_count":20351649,"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":["github-actions","java","openweathermap-api","telegram","telegram-bot"],"created_at":"2025-01-22T14:12:32.227Z","updated_at":"2026-05-20T19:33:34.089Z","avatar_url":"https://github.com/ASJordi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003e\u003ca href=\"https://github.com/ASJordi/telegram-weather-bot\"\u003eTelegram Weather Bot\u003c/a\u003e\u003c/h1\u003e\n\u003c/div\u003e\n\n## About :computer:\n\nJava application that allows you to periodically check the weather for a specific city automatically via a Telegram bot. The information is retrieved from the [OpenWeatherMap API](https://openweathermap.org/api), processed using the [Jackson Databind](https://github.com/FasterXML/jackson-databind) library, and sent via a Telegram bot using the [TelegramBots](https://rubenlagus.github.io/TelegramBotsDocumentation/telegram-bots.html) library. The application runs automatically every 4 hours using a GitHub Actions workflow.\n\n\u003e This project is also available using Azure Functions, check it out [here](https://github.com/ASJordi/azure-telegram-weather-bot)\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"src/main/resources/weather-bot.png\" alt=\"Telegram Weather Bot\" width=\"406\"\u003e\n\u003c/div\u003e\n\n## Features :sparkles:\n- Make and process API requests.\n- Convert API responses into Java objects.\n- Process weather data retrieved from the API.\n- Send messages via a Telegram bot.\n- Automate message delivery using GitHub Actions.\n\n## Classes :books:\n- `bot package`: Contains classes representing the Telegram bot.\n- `logger package`: Contains classes for configuring the application logger.\n- `request package`: Contains the class responsible for making API requests.\n- `weather package`: Contains classes to process the data retrieved from the API.\n- `GlobalProperties`: Class responsible for loading environment variables.\n- `Main`: Main class that executes the application.\n\n## Technologies :gear:\n\n- Java 21\n- GitHub Actions\n- Maven\n- Lombok\n- TelegramBots\n- Jackson Databind\n- Java Logging\n\n## Installation :floppy_disk:\n\nBefore starting, consider the following:\n\n- You need an account with [OpenWeatherMap](https://openweathermap.org/api) to get an API token.\n- Create a Telegram bot and get the token and chat ID using [BotFather](https://telegram.me/BotFather).\n\nSteps to install the application:\n\n1. Clone the repository.\n2. Open the project in an IDE.\n3. Install the required dependencies.\n4. Set up the following environment variables:\n    - `OPENWEATHER_API_URL`: OpenWeatherMap API URL, default is `https://api.openweathermap.org/data/2.5/weather`.\n    - `OPENWEATHER_TOKEN`: API access token from OpenWeatherMap.\n    - `OPENWEATHER_ZIP_CODE`: City zip code, e.g., `06000,MX`.\n    - `OPENWEATHER_LANG`: API response language, e.g., `en`.\n    - `OPENWEATHER_UNITS`: Temperature unit, e.g., `metric`.\n    - `TELEGRAM_BOT_TOKEN`: Telegram bot token.\n    - `TELEGRAM_CHAT_ID`: Telegram chat ID.\n5. Run the program.\n\n\u003e To run the application automatically using GitHub Actions, configure the environment variables in the repository settings.\n\n## License :page_facing_up:\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## Contact :email:\n\nJordi Ayala - [@ASJordi](https://x.com/ASJordi)\n\nProject link: [https://github.com/ASJordi/telegram-weather-bot](https://github.com/ASJordi/telegram-weather-bot)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasjordi%2Ftelegram-weather-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasjordi%2Ftelegram-weather-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasjordi%2Ftelegram-weather-bot/lists"}