https://github.com/illright/buienradar-bot
A Telegram bot that uses Buienradar to see if the rain will stop in the next 2 hours
https://github.com/illright/buienradar-bot
buienradar cloudflare-workers telegram-bot
Last synced: 11 months ago
JSON representation
A Telegram bot that uses Buienradar to see if the rain will stop in the next 2 hours
- Host: GitHub
- URL: https://github.com/illright/buienradar-bot
- Owner: illright
- License: isc
- Created: 2023-05-09T16:46:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-22T23:11:51.000Z (over 1 year ago)
- Last Synced: 2025-03-26T01:41:58.333Z (over 1 year ago)
- Topics: buienradar, cloudflare-workers, telegram-bot
- Language: TypeScript
- Homepage:
- Size: 112 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Buienradar Bot
Buienradar Bot is a Telegram bot that provides rain forecasts for locations in the Netherlands. It utilizes the Buienradar API to retrieve precipitation data and responds with an estimate of when the rain will stop based on the provided location.
## Development
To develop the Buienradar Bot locally, follow these steps:
1. Copy the `.dev.vars.example` file to `.dev.vars`:
```shell
cp .dev.vars.example .dev.vars
```
2. Replace the placeholder token in the `.dev.vars` file with your actual Telegram bot token.
3. Install the project dependencies using pnpm 8:
```shell
pnpm install
```
4. Start the development server:
```shell
pnpm start
```
To change the webhook URL for the bot, make a request to the following URL:
```
https://api.telegram.org/bot{YOUR_BOT_TOKEN}/setWebhook?url={YOUR_WEBHOOK_URL}
```
## License
This project is licensed under the ISC License.