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.41k stars 398 forks source link

🐛 | Repeat mode "toggle - loops ..." doesn't actually work #2322

Open varac opened 8 months ago

varac commented 8 months ago

Version

3.5.2

Branch

future/main

OS

RPI OS bookworm lite - 32bit

Pi model

3 B+

Hardware

What happened?

I assigned a card to the Audio & Volume / Repeat commamd, and chose the Toggle - Loops through 1) Repeat playlist, 2) Repeat song, 3) Disable repeat state in the web UI, as shown in this screenshot:

image

But it doesn't actually change anything.

When I swipe the card I see these logs:

Apr 06 18:47:41 phoniebox bash[3417]: 06.04.2024 18:47:41 -  175:__init__.py        - jb.rfid(read_00)     - read_00Thread   - INFO     - Received card id = '2808714293'
Apr 06 18:47:41 phoniebox bash[3417]: 06.04.2024 18:47:41 -  695:plugs.py           - jb.plugin.call       - read_00Thread   - DEBUG    - Calling: player.ctrl.repeat(args=[None], kwargs=None)

But:

Logs

INSTALL-1710188086.log

Relevant output from error.log:

06.04.2024 18:47:41 -  486:__init__.py        - jb.PlayerMPD         - read_00Thread   - ERROR    - 'None' does not exist for 'repeat'

Configuration

The card is registered in cards.yaml:

'2808714293':
  alias: repeat
  args:
  - 

More info

No response

varac commented 8 months ago

Btw, I am using now 3 cards for these sets:

which are working just fine. So I guess it's only the empty args: list that is configured by choosing the first set (Toggle - Loops through 1) Repeat playlist, 2) Repeat song, 3) Disable repeat)

s-martin commented 8 months ago

Try to remove the empty args: from the cards.yaml file