Categorygithub.com/fadhilthomas/go-slack-weather
repositorypackage
0.0.1
Repository: https://github.com/fadhilthomas/go-slack-weather.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

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.
VariableValue
WEATHER_APIGet OpenWeatherMap API at https://home.openweathermap.org/users/sign_up.
CITYFind your city id at http://bulk.openweathermap.org/sample/.
TIMEZONEFind your timezone city at https://www.iana.org/time-zones.
SLACK_TOKENYour 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.