Remove print, small additions to readme
This commit is contained in:
parent
f59a38e506
commit
d6148d00e5
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue