https://github.com/halfenif/toy_mpdclient_streamlit
Simple MPD Client by Streamlit
https://github.com/halfenif/toy_mpdclient_streamlit
docker fastapi mpd-client streamlit
Last synced: 2 months ago
JSON representation
Simple MPD Client by Streamlit
- Host: GitHub
- URL: https://github.com/halfenif/toy_mpdclient_streamlit
- Owner: halfenif
- License: epl-2.0
- Created: 2024-05-22T06:50:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-28T05:40:47.000Z (over 1 year ago)
- Last Synced: 2025-02-28T12:53:36.036Z (over 1 year ago)
- Topics: docker, fastapi, mpd-client, streamlit
- Language: Python
- Homepage: https://mpdclient.enif.page/
- Size: 247 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MPD Client for Home

## Demo
[https://mpdclient.enif.page](https://mpdclient.enif.page)
MPD를 2개 설정 했습니다만.
1. server다 보니 mixer가 없어서 volume은 조절이 안됩니다.
2. flac 파일은 재생이 안됩니다.
## Feature
- Simple is BEST concept
- Multi MPD support
## Installation
**Requirements**
- Docker, Docker-Compose or Podman
### Clone
```bash
git clone https://github.com/halfenif/toy_mpdclient_streamlit.git
```
## Change Config
```bash
cp ./.env.sample ./.env
cp ./fastapi/.env.sample ./fastapi/.env
cp ./streamlit/.env.sample ./streamlit/.env
```
### Edit .env
**./.env**
- FOLDER_TARGET="" # MPD music folder
1. Don't use symbolic link
2. Docker run user is root
3. Podman run user is login user
4. Be carefull folder and file permission
**fastapi/.env**
- ENV_TYPE = ".env.sample" > ".env" Display Information
- IS_DEBUG = bool
- MPD_SERVER_LIST = str(json format). Option.
- UI_OPTION_SHORT_FILE_NAME = bool. Display button label short or not
- UI_OPTION_SHORT_FILE_LENGTH = int. Display button label char count
**streamlit/.env**
- ENV_TYPE = ".env.sample" > ".env" Display Information
- URL_BACKEND = fastAPI container URL
- UI_OPTION_TITLE = str, st.title(), if "" is None
- UI_OPTION_DESC = str, st.write(), if "" is None
- UI_OPTION_SIDEBAR_WIDTH = int, st.sidebar width
### Docker-Compose
```bash
docker-compose build
docker-compose up
```
### Podman
```bash
./rebuild_podman.sh
```