/go-slack-weather

send current weather updates from openweathermap api to your slack profile status using github action

Primary LanguageGoMIT LicenseMIT

go-slack-weather

go-slack-weather license contributions welcome

slack

Send current weather updates from OpenWeatherMap API to your Slack profile status using GitHub Action


Contents


Setup

  • Fork this repository.
  • Set these environment variables in GitHub repository secrets.
Variable Value
WEATHER_API Get OpenWeatherMap API at https://home.openweathermap.org/users/sign_up.
CITY Find your city id at http://bulk.openweathermap.org/sample/.
TIMEZONE Find your timezone city at https://www.iana.org/time-zones.
SLACK_TOKEN Your Slack User OAuth Token.

Change Update Period

  • Change cron value inside .github/workflows/go-slack-weather.yml.
  • If you need help to set the value, visit https://crontab.guru.