https://github.com/gabrielrf/weather2telegram
Envio automático de previsão do tempo do INPE pelo Telegram
https://github.com/gabrielrf/weather2telegram
cronjob telegram telegram-bot weather-api
Last synced: 3 months ago
JSON representation
Envio automático de previsão do tempo do INPE pelo Telegram
- Host: GitHub
- URL: https://github.com/gabrielrf/weather2telegram
- Owner: GabrielRF
- License: unlicense
- Created: 2023-02-24T20:58:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T12:15:13.000Z (over 1 year ago)
- Last Synced: 2025-04-05T12:51:10.375Z (about 1 year ago)
- Topics: cronjob, telegram, telegram-bot, weather-api
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Weather to Telegram
Script para envio da previsão do tempo automaticamente usando GitHub Actions.
## Cidade
Encontre o código de sua cidade usando o link
```
http://servicos.cptec.inpe.br/XML/listaCidades?city=
```
Para mais informações, visite [http://servicos.cptec.inpe.br/XML/#req-busca-localidade](http://servicos.cptec.inpe.br/XML/#req-busca-localidade)
## Ajustes
Nas configurações do repositório, vá em `Secrets and variables`, `Actions` e crie um segredo com o nome `BOT_TOKEN` tendo o token do bot como conteúdo.
Ainda em `Secrets and Variables`, clique em `Variables` e crie também as variáveis `DEST` e `CITY` com o destino da mensagem e o código da cidade respectivamente.
## Execução
A ação é executada automaticamente as 8:30 UTC +0, ou seja, 05:30 UTC -3.
Para iniciar a ação a qualquer momento, vá em `Actions`, `Cron Action`, `Run workflow` e clique em `Run workflow`.