RPi-Jukebox-RFID icon indicating copy to clipboard operation
RPi-Jukebox-RFID copied to clipboard

shell script throws error for mpd controlled volume up and down

Open MiczFlor opened this issue 3 years ago • 2 comments

Bug

Volume up down not working in web app nor swiping carsds, latest release. Other functions (stop , shutdown and playout) are working.

What I did

The "vulume up / down" function in the web app nor with swiping cards worked, so I tried the commad line option for testing with amixer and mpd. For mpd i got the error (see below) "expr: syntax error: unexpected argument \u201e3\u201c"

What happened

pi@raspberrypi:~ $ /home/pi/RPi-Jukebox-RFID/scripts/playout_controls.sh -c=volumeup
Simple mixer control 'Headphone',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback -10239 - 400
  Mono: Playback 400 [100%] [4.00dB] [on]
pi@raspberrypi:~ $ /home/pi/RPi-Jukebox-RFID/scripts/playout_controls.sh -c=volumeup
expr: syntax error: unexpected argument \u201e3\u201c
/home/pi/RPi-Jukebox-RFID/scripts/playout_controls.sh: Zeile 408: [: -le: Einstelliger (un\u00e4rer) Operator erwartet.
OK MPD 0.21.4
OK
pi@raspberrypi:~ $

Further information that might help

Software

Base image and version

  • Betriebssystem Raspbian
  • BeschreibungRaspbian GNU/Linux 10 (buster) Release10
  • Codenamebuster

Phoniebox Setup

  • Version2.3 - 2425890 - master
  • EditionClassic edition (barebones)
  • MPD Server Status active (running) since Sun 2021-09-12 13:10:38 CEST; 17min ago

Installscript

One line for master

Hardware

RaspberryPi version

Raspberry Pi 3 Model B Rev 1.2

RFID Reader

Neuftech

Soundcard

mini jack / HDMI onboard

MiczFlor avatar Sep 12 '21 11:09 MiczFlor

line 408 of playout_controls.sh uses $AUDIOVOLMAXLIMIT \u201e3\u201c means „3“ (with fancy quotes) -> seems like a problem with the encoding of the file?

lenlennart avatar Sep 23 '21 11:09 lenlennart

line 408 of playout_controls.sh uses $AUDIOVOLMAXLIMIT \u201e3\u201c means „3“ (with fancy quotes) -> seems like a problem with the encoding of the file?

Yeah, sounds like encoding.

@MiczFlor can you provide the information about locale?!

Groovylein avatar Oct 07 '21 18:10 Groovylein