Code Monkey home page Code Monkey logo

moped's Introduction

moped

Moped is a minimal web interface for MPD that shows the current song playing, along with some basic controls. It is NOT a full featured client.

It's just a quick hack for myself so that I can change the volume on the server and see what's playing from my phone (otherwise ssh with ncpmpcpp is the simplest and best way to access the server).

ui

  • v1: vanilla js in /public
  • v2: react ts in /client, see README

usage (v2)

  1. copy the .env.example templates to .env files in the project root AND in client and do edit them
    • in BOTH the client and server .env set the network host and port to the same (eg. 192.168.0.123 and 8080)
    • if you are using a firewall, then please open the port you want to listen on (for example 8080)
  2. use npm start to compile the server and the client and start them up
  3. or alternatively check the package.json in root and in client

notes

The MPD protocol is a "streamingish" protocol and translating it to REST is far from ideal: ncmpcpp running on a 80x25 terminal will be much faster through ssh, especially with long running commands, since it can dump the server output as it comes in, instead of waiting for the final OK marker.

A REST api will keep the http channel open, until the response is finished and is ready to send down the wire, to the client.


screenshots

v1

screenshot

screenshot

v2

screenshot

screenshot

moped's People

Contributors

szkrd avatar

Watchers

 avatar

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.