Event handlers of buttons on a front panel of PHTS NP-01.
| 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" |
|
||||||||||
▶ / ⏸ |
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 | |||||||||
cd /home/volumio
git clone https://github.com/phts/NP-01_buttons.git
cd NP-01_buttons
npm i --only=prod/etc/rc.local:
...
sudo bash /home/volumio/NP-01_buttons/run.sh &
...-
Find process
node app/index.jsand kill itps -elf | grep app/index.js sudo kill <PID>
-
Run this app locally
cd ~/NP-01_buttons sudo node app/index.js
