Remove print, small additions to readme

This commit is contained in:
ABelliqueux 2024-03-29 18:46:31 +01:00
parent f59a38e506
commit d6148d00e5
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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