Skip to content

phts/NP-01_buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHTS NP-01: buttons

Event handlers of buttons on a front panel of PHTS NP-01.

⚠️ Some of those commands also used by IR controller.

Current mappings

Name Short press Long press
While playing While paused
SHUTDOWN Gracefully shutdown the device Reboot the device
Toggle screen modes: "Track info", "VU meter", "Screensaver"
Current screen mode
Track infoVU meterScreensaver
Toggle repeat/random track modeToggle background image
▶ / ⏸ Play or pause Stop after current track Play selected playlist
Jump to the beginning of the current track or to the previous track Rewind 10 seconds Select previous playlist
Jump to next track Fast forward 10 seconds Select next playlist

Install

cd /home/volumio
git clone https://github.com/phts/NP-01_buttons.git
cd NP-01_buttons
npm i --only=prod

Usage

/etc/rc.local:

...

sudo bash /home/volumio/NP-01_buttons/run.sh &

...

Debug and development

  1. Find process node app/index.js and kill it

    ps -elf | grep app/index.js
    sudo kill <PID>
  2. Run this app locally

    cd ~/NP-01_buttons
    sudo node app/index.js

Releases

No releases published

Contributors