dmpanch / radio

MPD + MPC + Telegram bot radio stack in Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

radio

MPD + MPC + Telegram bot radio stack in Docker, depends on python-telegram-bot, python-musicpd and mpddj

Before start change credentials for stream access in mpd.conf, and credentials for Telegram bot in config.py

mpd.conf

name "My HTTP Stream" - set your stream name for display in player here

config.py

'STREAM_URL' : 'stream_url', - set stream URL here, Telegram bot use it for /stream command
'TOKEN' : 'telegram_bot_token', - set Telegram bot token from Botfather
'SUPER_USER' : 'telegram_user', - set Telegram bot admin username

Setcommands list example for BotFather:

  • add - Add song by full path
  • sample - Randomly list some songs
  • status - Now playing
  • stats - Songs quantity
  • order - Order a song
  • searchorder - Search and order first match song
  • next - Skip current song
  • history - Order history
  • search - Search song
  • searchadd - Search and add first match song
  • playlist - Show current playlist
  • list - List files (don't do this!)
  • stream - Get stream address
  • help - Show this help

Build and run

Build with docker-compose build

Run with docker-compose up

About

MPD + MPC + Telegram bot radio stack in Docker

License:MIT License


Languages

Language:Dockerfile 73.7%Language:Shell 18.0%Language:Python 8.3%