Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: playlist script non funziona! dov'è l'errore?
#6
Sorry, "It doesn't work" is not a technical term. There is no diagnostic information here. We don't even know if your Python script is being invoked by lirc when you press the selected button/s.

I'd break the problem into two parts:

1) write an lirc configuration file to invoke a simple Python script---whose only purpose is to print a line to a logfile when it's invoked---and see if lirc invokes it with a press of the selected button/s. If not, then do what needs to be done to make it so. I don't use lirc and can't help here. Others on this forum can.


2) write a complete Python script which manipulates MPD and test it separately by invoking it from the command line. Keep editing/testing until it does what you want (e.g., are the MPD playlist files changed correctly.) I don't use the python-mpd2 module but lots of us understand Python. Please, in future, cut-and-paste your source code and any error messages into code boxes in your posts (see the icons across the top of the message editing window).

When you've completed 1) and 2), then modify the lirc configuration file to invoke your complete Python script.

Regards,
Kent
Reply


Messages In This Thread
RE: playlist script non funziona! dov'è l'errore? - by TheOldPresbyope - 03-17-2021, 02:01 PM

Forum Jump: