From d6148d00e56dd32cc00ea0007c0c480177fbd9cb Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Fri, 29 Mar 2024 18:46:31 +0100 Subject: [PATCH] Remove print, small additions to readme --- mpdlisten.py | 2 +- readme.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mpdlisten.py b/mpdlisten.py index 483b3bd..bb52926 100755 --- a/mpdlisten.py +++ b/mpdlisten.py @@ -400,7 +400,7 @@ def main(args): # ~ print("{} {}".format(v_1, v_2)) if (abs(volume - v_1) > 1) and (abs(volume - v_2) > 2): client.setvol(volume) - print("Volume: {}".format(volume)) + # ~ print("Volume: {}".format(volume)) if volume < min_val: volume = 0 if volume > 100: diff --git a/readme.md b/readme.md index 3690638..1d9664e 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # mpdlistenpy -This python script is supposed to run on a rpi and has the following features : +This python script is supposed to run on a rpi and does the following : * Relay trigger : Watches a MPD instance for play/pause/stop states and activates a relay via GPIOs accordingly ; the usecase for this is powering on/off a pair of speakers only when something is running. * OLED display : Drives a 0.96" OLED display (ssd1306) to display MPD status (volume, current artist, album, title...) @@ -24,7 +24,7 @@ This python script is supposed to run on a rpi and has the following features : | POTENTIOMETER | GND, 3.3V, 23 | | RELAY | GND, 5V, 17 | -You can check these here : [https://pinout.xyz/](https://pinout.xyz/) +You can check these here : [https://pinout.xyz/](https://pinout.xyz/) #### Oled screen @@ -109,7 +109,7 @@ You can find out more about installing 'pigpio' here : * Update, enable and start the service as a user : ``` - # If you need to edit the path to the script + # If you need to edit the path to the script (should be in ~/mpdlisten by default) # systemctl --user --full edit mpdlistenpy.service systemctl --user daemon-reload systemctl --user enable mpdlistenpy.service