# Telegram bot for weather visualization in European capitals: R-generated plot on command
This automation fetches current weather data for European capitals and generates a visual plot using R, which is instantly sent back to the user via Telegram. Ideal for users who want to share structured weather insights without manual data collection or formatting.
## Who it´s for
- Telegram users interested in weather across European capitals.
- Developers building bots with data visualization capabilities.
- Analysts using R to generate reports from external APIs.
## What the automation does
- Listens for Telegram commands: `/start` triggers a greeting message, `/getweather` initiates data processing.
- Retrieves city IDs and fetches weather data via OpenWeatherMap API.
- Stores the data in CSV format for downstream use.
- Executes an R script to generate a temperature plot.
- Sends the resulting image directly to the user in Telegram.
- Implements error handling: notifies the user if the API is unreachable or the R script fails.
## What´s included
- Ready-to-use n8n workflow.
- Trigger and message handler logic for Telegram.
- Integrations with Telegram Bot API and OpenWeatherMap API.
- Mechanism to execute R scripts and process output.
- Basic written instructions for setup and adaptation.
## Requirements for setup
- n8n instance with HTTP request and external process execution capabilities.
- Active Telegram bot with API token.
- OpenWeatherMap API key.
- Installed R environment with required plotting libraries.
## Benefits and outcomes
- Saves time on manual weather data retrieval and formatting.
- Enables powerful data visualization using R.
- Reliable delivery through Telegram messaging.
- Clear error feedback to end users.
- Scalable to additional cities or weather parameters.
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet