Skip to content

Play and control music on devices in the same network; intended for in-person storefronts

Notifications You must be signed in to change notification settings

calebtnorth/lanmm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Area Network Music Manager

What Is It

LANMM is a web app for managing music from across the same network. Also provides the functionality to upload and delete media. It is optimal for retail or other physical storefronts where music is custom, infrequently changed, and frequently played. It was created by request of my employer.

How LANMM Works

LANMM runs off of the Flask framework to provide a web interface, utilizes Python's threading and subprocess modules to manage music, and uses ffmpeg to play music.

Setup

  • Install ffplay (from ffmpeg)
    • For Windows, make sure ffplay is on the PATH
    • For Linux, make sure ffplay is installed under /usr/bin
  • Create a folder somewhere to store uploaded music to
  • Download the LANMM repository into its own folder.
  • Create a .upload file in the root of the LANMM repo containing only the absolute path to the upload folder created two steps ago

From here, LANMM can be run with any WSGI, for example, Gunicorn.

python -m gunicorn -b 0.0.0.0:8000 wsgi:app

If running on Linux, ensure the firewall is open to whatever port LANMM is being run on so other devices on the network can see it.

LANMM limits uploads to .wav and .mp3 but realistically supports any audio format that ffmpeg supports.

About

Play and control music on devices in the same network; intended for in-person storefronts

Topics

Resources

Stars

Watchers

Forks