Skip to content

Commit

Permalink
add comments, readme, ...
Browse files Browse the repository at this point in the history
  • Loading branch information
shakasan committed Oct 19, 2020
1 parent f4c185b commit 6090a63
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 5 deletions.
48 changes: 44 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,55 @@
About
-----
quodlibetLCDScreen
------------------

todo
This is a little plugin for Quod Libet audio player that allow you to display current song Artist/Title on an external USB LCD Screen.

Hardware compatibility
----------------------

I used this screen : https://www.banggood.com/1602-RGB-LCD-Display-With-USB-Port-For-Raspberry-Pi-3B-2B-B-Windows-Linux-p-1079617.html?rmmds=myorder&cur_warehouse=CN

Dependencies
------------

- lcd2usb : https://github.com/xyb/lcd2usb
- quodlibet libs
- getpass
- GTK libs

Manual install
--------------

On Ubuntu :

- Create a directory named `quodlibetLCDScreen` in `~/.quodlibet/plugins`
- Copy `quodlibetLCDScreen.py` in this directory
- Open Quodlibet and activate the plugin, you should see a `Hello <your_username>` on the screen

Udev rules
----------

- On Ubuntu, add this rules in `/etc/udev/rules.d/51-lcd2usb.rules`

```shell scriptll
# Find your device information with command "lsusb"
# Change ATTR{idVendor} and ATTR{idProduct} to match.
#
# In my case : Bus 006 Device 002: ID 0403:c630 Future Technology Devices International, Ltd lcd2usb interface
#
# This allows users to access the usb device without requiring root permissions
#
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="0403", ATTR{idProduct}=="c630", MODE="0666"
```

- Then reboot computer or refresh udev : `sudo udevadm control --reload-rules`

Credits
-------

This script has been written by Francois B. (Makotosan)

* Email : francois@makotonoblog.be
* Website : https://makotonoblog.be/quodlibetLCDScreen/
* Website : https://makotonoblog.be/

Licence
-------
Expand Down
2 changes: 1 addition & 1 deletion quodlibetLCDScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
quodlibetLCDScreen
author : Francois B. (Makotosan/Shakasan)
licence : GPLv3
website : https://makotonoblog.be/quodlibetLCDScreen
website : https://makotonoblog.be/
"""

import os
Expand Down

0 comments on commit 6090a63

Please sign in to comment.