Coder Social home page Coder Social logo

danielx / chat-notifierr Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 794 KB

Connect webhooks from Sonarr & Radarr to messages in Google Chat

License: MIT License

Dockerfile 2.42% Makefile 3.38% Python 94.21%
fastapi google-chat-bot python radarr sonarr

chat-notifierr's Introduction

danielx/chat-notifierr

Sends notifications to Google Chat based on incoming webhooks from Sonarr & Radarr.

Supported notification triggers

Sonarr

  • On Grab
  • On Import
  • On Upgrade
  • On Rename
  • On Series Delete
  • On Episode File Delete
  • On Episode File Delete For Upgrade
  • On Health Issue
  • Include Health Warnings
  • On Application Update

Radarr

  • On Grab
  • On Import
  • On Upgrade
  • On Rename
  • On Movie Added
  • On Movie Delete
  • On Movie File Delete
  • On Movie File Delete For Upgrade
  • On Health Issue
  • On Application Update

Usage

Configuration

Environment variable Required Description
BASIC_AUTH_USERNAME TRUE The HTTP basic auth username required
BASIC_AUTH_PASSWORD TRUE The HTTP basic auth password required
CHAT_WEBHOOK_URL TRUE The webhook url for the webhook bot in Google Chat
PORT FALSE The port the server should listen on

The CHAT_WEBHOOK_URL is found after the Google Chat webhook is created when following these steps: https://developers.google.com/chat/how-tos/webhooks#create_a_webhook

docker-compose example

chat-notifierr:
  image: ghcr.io/danielx/chat-notifierr:latest
  ports:
    - "127.0.0.1:8080:8080"
  environment:
    - PORT=8080
    - BASIC_AUTH_USERNAME=<username>
    - BASIC_AUTH_PASSWORD=<password>
    - CHAT_WEBHOOK_URL=<webhook>

docker cli example

docker run -d \
  --name=chat-notifierr \
  -e BASIC_AUTH_USERNAME=<username> \
  -e BASIC_AUTH_PASSWORD=<password> \
  -e CHAT_WEBHOOK_URL=<webhook> \
  -e PORT=8080 \
  -p 127.0.0.1:8080:8080 \
  --restart unless-stopped \
  ghcr.io/danielx/chat-notifierr:latest

Radarr webhook setup

Point notifications to the container with method POST on the path /api/v1/radarr

Example

In this example the danielx/chat-notifierr container runs in the same docker network as my Radarr server with its hostname configured to chat-notifierr.

radarr example

Sonarr webhook setup

Point notifications to the container with method POST on the path /api/v1/sonarr

Example

In this example the danielx/chat-notifierr container runs in the same docker network as my Sonarr server with its hostname configured to chat-notifierr.

sonarr example

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.