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.

GitHub

https://github.com/fadhilthomas/go-slack-weather