GithubHelp home page GithubHelp logo

atisharma / ncsb Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 238 KB

ncurses squeezebox controller for logitech media server

License: GNU General Public License v3.0

Hy 93.79% Python 6.21%
lms squeezebox curses

ncsb's Introduction

ncsb - An ncurses Squeezebox controller for Logitech Media Server (LMS)

Features

  • slick curses TUI to control your squeezeboxes / squeezelite
  • free-text and contextual search
  • current playlist management
  • player control
  • album art in sixel-compliant terminals (experimental, off by default)

Screenshot / screencast

players

players screen playlist screen another playlist screen search screen search results screen

Usage

with dependencies available to your environment,

$ ncsb lms-server

where lms-server is the hostname or IP address of your LMS server.

To use a port other than the default 9000, use the --port or -p optional argument,

$ ncsb -p 9090 lms-server

In any screen, press ? for available commands.

Installation

Requires python 3 (tested on 3.9), with python packages requests, hy (0.20.0) and (for optional coverart) libsixel-python.

To install these with pip into your current environment (venv etc...),

$ pip install -r requirements.txt

Incomplete list of sixel-supporting terminals here See also foot, patched gnome-terminal?, xterm launced with xterm -ti vt340 or with xterm*decTerminalID : vt340 in .Xresources.

If you are seeing boxes or junk instead of nice unicode symbols for play/pause etc, you need to use a font with more complete unicode support. Hack works well.

In-terminal coverart requires libsixel to be installed on your system (presumably via your package manager) and a sixel-supporting terminal. Cover art notifications require libnotify to be installed.

Bugs

  • flashing when loading album art, due to working around the nasty interactions between curses and sixel
  • unable to write to top left of screen with curses when sixel image is displayed
  • album title text update can partially overwrite the cover art sixel image
  • because the font size and resolution is not known to curses, the album art size cannot be scaled to a terminal-appropriate size

Todo

  • play general URL (pasted in)
  • apps / podcast / menu
  • detailed track info
  • vim-style commands?
  • colour themes
  • use events instead of polling
  • fix screencast
  • scrolling when text is too wide for terminal

Credits

Copyright A S Sharma (2021), released under the GPL v3.0 (see LICENSE and AUTHORS). Thanks also to elParaguayo (LMSTools), Ralph Irving (squeezelite) and the Slimerver / Logitech Media Server authors for inspiration.

ncsb's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ncsb's Issues

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.