MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.33k stars 395 forks source link

shell script throws error for mpd controlled volume up and down #1514

Open MiczFlor opened 2 years ago

MiczFlor commented 2 years ago

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

Installscript

One line for master

Hardware

RaspberryPi version

Raspberry Pi 3 Model B Rev 1.2

RFID Reader

Neuftech

Soundcard

mini jack / HDMI onboard

lenlennart commented 2 years ago

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?

Groovylein commented 2 years ago

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?!