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

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

Open varac opened this issue 10 months ago • 2 comments

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:

  • the player UI icon for repeat mode is not changing
  • mpc status always shows repeat: off and single: off

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 avatar Apr 06 '24 17:04 varac

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

  • Enable Repeat Playlist
  • Enable Repeat Song
  • Disable

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)

varac avatar Apr 06 '24 17:04 varac

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

s-martin avatar Apr 07 '24 09:04 s-martin