GithubHelp home page GithubHelp logo

topkecleon / patiobar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sig-tesla/patiobar

0.0 0.0 0.0 2.39 MB

A web frontend for pianobar

License: MIT License

Shell 22.07% JavaScript 55.16% HTML 22.77%

patiobar's Introduction

Patiobar

A web frontend for pianobar, which is a console-based client for Pandora.

Provides a simple way for controlling what is playing on the radio. I use this to allow guests (and myself) to control the music playing outside on my patio with their phones.

This program was originally written by Kyle Johnson and extended and made headless by sig-tesla. This fork modifies the installation script to create a systemd unit to automatically start Patiobar at boot time, for dedicated pianobar/Patiobar devices (such as Raspberry Pis).

Installation

I have tested this on Raspbian 11 "Bullseye" on a Raspberry Pi 2 and on Debian 12 "Bookworm" in a virtual environment. I run this under a normal (non-root) user account, using systemd's user environment and login lingering to start it at boot. If you are using Raspbian/Debian 11 or 12, these steps should work for you:

Install git, pianobar, and npm:

sudo apt install git npm pianobar

To allow node to bind to port 80:

sudo setcap cap_net_bind_service=+ep /usr/bin/node

After this, you can clone the repo and use the installation script:

git clone https://github.com/topkecleon/Patiobar
cd Patiobar
./install.sh

You will need to edit your pianobar config (at ~/.config/pianobar/config) to set your Pandora username and password.

The installation script will (hopefully) create and enable a systemd unit file for patiobar to start automatically when the system boots. To start it for the first time, you can reboot your machine or run:

systemctl --user start patiobar

Connect to your device's IP address in your web browser to access Patiobar.

If you would like shutdown/reboot controls to work, then the user account which is running patiobar will need passwordless access to the reboot and shutdown commands. Run sudo visudo to open the sudoers file and add the following line to the end, replacing myuser with the appropriate username:

myuser ALL=(ALL) NOPASSWD:/usr/sbin/reboot,/usr/sbin/shutdown

Screenshots

screenshot tools menu screenshot station menu screenshot

patiobar's People

Contributors

kylejohnson avatar sig-tesla avatar topkecleon avatar khawes avatar mhjb 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.