README.rst 4.7 KB

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