plhys / synology-telegram-bot

Telegram Bot for Synology DiskStation Manager (DSM)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Telegram Bot for Synology DiskStation Manager (DSM)

A Docker image based on Alpine Linux that runs Telegram bot to manage a Synology DiskStation machine.

Features

Currently support these functions:

Download Station

  • /mydownloads - manage your downloads
  • /adddownload - create a new download task
  • /resumedownloads - resume all inactive download tasks
  • /pausedownloads - pause all active download tasks
  • /cleanupdownloads - clear completed download tasks

System Info

  • /resourcemonitor - show NAS resource infos
  • /nasnetwork - show NAS network status
  • /nashealth - show NAS health status
  • /bothealth - show bot health status

Environment Variables

Make sure to set the container environment variables:

  • BOT_TOKEN - Your bot's token. Make one with @BotFather
  • BOT_OWNER_ID - The bot will only respond to user with this ID, get it from @userinfobot
  • NAS_IP - Your DiskStation's IP address. Make sure it uses a static IP
  • NAS_PORT - Your DiskStation's port number. DSM default is 5000
  • DSM_ACCOUNT - Your DSM account name
  • DSM_PASSWORD - Your DSM password
  • TZ - System time zone. See available time zones here.

Resources

Code available on GitHub

Image available on Docker Hub

About

Telegram Bot for Synology DiskStation Manager (DSM)


Languages

Language:Python 94.6%Language:Dockerfile 2.2%Language:Shell 1.7%Language:Makefile 1.6%