Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
/ weatherbot Public archive

❄️ ☀️ ⚠️ A Slack bot that gives you a heads up about snow, nice weather, and severe weather alerts

License

Notifications You must be signed in to change notification settings

katydecorah/weatherbot

Repository files navigation

weatherbot

A GitHub action that posts weather announcements to Slack, if:

  • There will be snow (more than one inch of snow over the next twelve hours).
  • It's nice out (temperature is between 50/60℉ and 80℉ and low probability of precipitation).
  • There are any weather warnings or watches.

This bot uses the Slack and Dark Sky APIs.

Skycon emoji
clear-day ☀️
clear-night 🌙
partly-cloudy-day ⛅️
partly-cloudy-night ⛅️
cloudy ☁️
rain 🌧
sleet 🌨
snow ❄️
wind 🌬
fog 🌫

Set up the workflow

To use this action, create a new workflow in .github/workflows and modify it as needed:

name: Weatherbot

on:
  schedule:
    - cron: "0 0,12,18 * * *"

jobs:
  weather_update:
    runs-on: macOS-latest
    name: Weather
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Weather
        uses: katydecorah/weatherbot@v2.1.0
        with:
          Latitude: ${{ secrets.Latitude }}
          Longitude: ${{ secrets.Longitude }}
          DarkSkySecretKey: ${{ secrets.DarkSkySecretKey }}
          SlackWebHookUrl: ${{ secrets.SlackWebHookUrl }}

Action options

About

❄️ ☀️ ⚠️ A Slack bot that gives you a heads up about snow, nice weather, and severe weather alerts

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •