README.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. ******************
  2. Mopidy-Touchscreen
  3. ******************
  4. .. image:: https://img.shields.io/pypi/v/Mopidy-Touchscreen.svg?style=flat
  5. :target: https://pypi.python.org/pypi/Mopidy-Touchscreen/
  6. :alt: Latest PyPI version
  7. .. image:: https://img.shields.io/pypi/dm/Mopidy-Touchscreen.svg?style=flat
  8. :target: https://pypi.python.org/pypi/Mopidy-Touchscreen/
  9. :alt: Number of PyPI downloads
  10. .. image:: https://img.shields.io/travis/9and3r/mopidy-touchscreen/master.svg?style=flat
  11. :target: https://travis-ci.org/9and3r/mopidy-touchscreen
  12. :alt: Travis CI build status
  13. .. image:: https://img.shields.io/coveralls/9and3r/mopidy-touchscreen/master.svg?style=flat
  14. :target: https://coveralls.io/r/9and3r/mopidy-touchscreen?branch=master
  15. :alt: Test coverage
  16. Extension for displaying track info and controlling Mopidy from a touch screen
  17. using `PyGame <http://www.pygame.org/>`_/SDL.
  18. Cover images are downloaded from `last.fm <http://www.last.fm/api>`_
  19. Dependencies
  20. ============
  21. - ``Mopidy`` >= 0.18
  22. - ``Pykka`` >= 1.1
  23. - ``pygame``
  24. Installation
  25. ============
  26. Install by running::
  27. pip install Mopidy-Touchscreen
  28. Or, if available, install the Debian/Ubuntu package from `apt.mopidy.com
  29. <http://apt.mopidy.com/>`_.
  30. Basic Configuration
  31. ===================
  32. Before starting Mopidy, you must add configuration for
  33. Mopidy-Touchscreen to your Mopidy configuration file::
  34. [touchscreen]
  35. enabled = true
  36. screen_width = 320
  37. screen_height = 240
  38. cursor = True
  39. fullscreen = False
  40. cache_dir = $XDG_CACHE_DIR/mopidy/touchscreen
  41. The following configuration values are available:
  42. - ``touchscreen/enabled``: If the Touchscreen extension should be enabled or
  43. not.
  44. - ``touchscreen/screen_width``: The width of the resolution you want to use in
  45. pixels.
  46. - ``touchscreen/screen_height``: The width of the resolution you want to use in
  47. pixels.
  48. - ``touchscreen/cursor``: If the mouse cursor should be shown. (If you use a
  49. touchscreen it should be false)
  50. - ``touchscreen/fullscreen``: If you want to be shown as a window or in
  51. fullscreen.
  52. - ``touchscreen/screen_width``: The folder to be used as cache. Defaults to
  53. ``$XDG_CACHE_DIR/mopidy/touchscreen``, which usually means
  54. ``~/.cache/mopidy/touchscreen``
  55. How to Setup
  56. ============
  57. Use the basic configuration to setup as most standard screens works fine without further configuration.
  58. Raspberry Pi and LCD Shields
  59. ----------------------------
  60. If you are using a LCD Shield in Raspberry Pi you need to config your LCD and run mopidy with root privileges:
  61. Configure your LCD Shield
  62. `````````````````````````
  63. Add to the config the next variables::
  64. [touchscreen]
  65. sdl_fbdev = /dev/fb1
  66. sdl_mousdrv = TSLIB
  67. sdl_mousedev = event0
  68. This is just an example. It may work but each LCD Shield seems to have its own configuration.
  69. To find your values find an example of using pygame with your LCD Shield and it should be something like this in the code::
  70. os.environ["SDL_FBDEV"] = "/dev/fb1"
  71. os.environ["SDL_MOUSEDRV"] = "TSLIB"
  72. os.environ["SDL_MOUSEDEV"] = "event0"
  73. Run Mopidy with root privileges
  74. ```````````````````````````````
  75. You can use ``sudo mopidy``.
  76. In case you are using musicbox edit ``/etc/init.d/mopidy`` file. Change ``DAEMON_USER=mopidy`` to ``DAEMON_USER=root``
  77. Do not forget that this is a workaround and that mopidy will run with root privileges.
  78. Help
  79. ====
  80. You can use `mopidy discuss <https://discuss.mopidy.com/>`_
  81. or send an email to `9and3r@gmail.com <mailto:9and3r@gmail.com>`_
  82. Features
  83. ========
  84. Working
  85. -------
  86. * See track info (track name, album, artist, cover image)
  87. * Seek Track
  88. * Play/Pause
  89. * Mute/Unmute
  90. * Change volume
  91. * Next/Previous track
  92. * Library
  93. * Menu (exit mopidy, restart...)
  94. * Shuffle on/off
  95. * Repeat one/on/off
  96. * Playback list and song selection
  97. * Playlists
  98. Planned
  99. -------
  100. * Use keyboard or GPIO buttons instead of touchscreen
  101. Screenshots
  102. ===========
  103. .. image:: http://i60.tinypic.com/qqsait.jpg
  104. Video
  105. =====
  106. `Example video running the extension <https://www.youtube.com/watch?v=KuYoIb8Q2LI>`_
  107. Project resources
  108. =================
  109. - `Source code <https://github.com/9and3r/mopidy-touchscreen>`_
  110. - `Issue tracker <https://github.com/9and3r/mopidy-touchscreen/issues>`_
  111. - `Download development snapshot <https://github.com/9and3r/mopidy-touchscreen/archive/master.tar.gz#egg=Mopidy-Touchscreen-dev>`_
  112. Changelog
  113. =========
  114. v0.3.2
  115. ----------------------------------------
  116. - Bug Fixes
  117. - UI changes
  118. - Smoth text scrolling
  119. - Search albums, artist or songs (Not fully implemented. Basic functionality)
  120. v0.2.1
  121. ----------------------------------------
  122. - Font will be included on installation
  123. v0.2.0
  124. ----------------------------------------
  125. - First working version
  126. v0.1.0 (UNRELEASED)
  127. ----------------------------------------
  128. - Initial release.