Giter Club home page Giter Club logo

diun_notify's Introduction

首先文档奉上

Diun

https://github.com/WWWWM03/diun_notify

下载github仓库内容。

1.修改 custom-images.yml 及 diun.yml 文件。

custom-images.yml 内容是需要监控的image及tag,不写tag应该是默认latest。

# /custom-images.yml
- name: yipengfei/movie-robot:beta
- name: linuxserver/emby:beta
- name: linuxserver/overseerr:latest
- name: linuxserver/tautulli:latest
- name: [lscr.io/linuxserver/plex:latest](http://lscr.io/linuxserver/plex:latest)
- name: 6053537/portainer-ce
- name: linuxserver/emby:latest
- name: vergilgao/mdc:latest
# /diun.yml
db:
  path: "/data/diun.db"

watch:
  workers: 20
  schedule: "CRON_TZ=Asia/Shanghai */5 * * * *"
  firstCheckNotif: true

notif:
  script:
      cmd: "/data/notify.sh"
      args:
        - "DIUN_VERSION"
        - "DIUN_ENTRY_STATUS"
        - "DIUN_HOSTNAME"
        - "DIUN_ENTRY_PROVIDER"
        - "DIUN_ENTRY_IMAGE"
        - "DIUN_ENTRY_HUBLINK"
        - "DIUN_ENTRY_MIMETYPE"
        - "DIUN_ENTRY_DIGEST"
        - "DIUN_ENTRY_CREATED"
        - "DIUN_ENTRY_PLATFORM"        
        
providers:
  docker:
    watchStopped: true

2.修改 user.conf 文件相关推送通道参数

# 1. bark配置
export BARK_KEY=""

# 2. 电报参数
export TG_CHAT_ID=""
export TG_TOKEN=""

# 3. 企微参数
export CORPID=""
export CORP_SECRET=""
export AGENTID=""
export MEDIA_ID=""
export TOUSER="@all"

# 4. discord配置
export DISCORD_WEBHOOK=""
export DISCORD_PICURL=""

3.自行替换中括号内的内容,替换三个路径。

docker run -d --name diun \
  -e "TZ=Asia/Shanghai" \
  -e "LOG_LEVEL=info" \
  -e "LOG_JSON=false" \
  -e "DIUN_PROVIDERS_DOCKER=true" \
  -e "DIUN_PROVIDERS_FILE_FILENAME=/custom-images.yml" \
  -v "[替换path]:/data" \
  -v "[替换path]/custom-images.yml:/custom-images.yml:ro" \
  -v "[替换path]/diun.yml:/diun.yml:ro" \
  -v "/var/run/docker.sock:/var/run/docker.sock" \
  crazymax/diun:latest

4.测试通知。

docker exec -it [容器名] diun notif test

imageTG推送通道

imagediscord推送通道

imageTG推送通道

image企微推送通道

感谢这位大佬的脚本,我在它的基础上魔改了推送脚本的内容。 https://github.com/Qliangw/emby_notify

diun_notify's People

Contributors

alano-i avatar wwwwm03 avatar

Watchers

 avatar

Forkers

leo8912

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.