Sem descrição

Ander b7c62e0dd3 Fix keyboard navigation há 10 anos atrás
mopidy_touchscreen b7c62e0dd3 Fix keyboard navigation há 10 anos atrás
tests 9aa0735f48 Test change há 10 anos atrás
.coveragerc e16784d374 First commit há 11 anos atrás
.gitignore b6f9a57ac9 git: Ignore xunit-*.xml files há 10 anos atrás
.travis.yml 3102375e63 Code cleanup há 11 anos atrás
LICENSE e16784d374 First commit há 11 anos atrás
MANIFEST.in 63ad5d41d0 pkg: Include tox.ini, explicitly prune empty docs and fonts dir há 10 anos atrás
README.rst 155e8a045a Version change to 1.0.0 há 10 anos atrás
requirements.txt 78452053e9 Requeriments há 10 anos atrás
setup.cfg e16784d374 First commit há 11 anos atrás
setup.py 036e3cf91e setup: Explicitly close file há 10 anos atrás
tox.ini fda8a9d8c6 tox.ini: fix name há 10 anos atrás

README.rst

******************
Mopidy-Touchscreen
******************

.. image:: https://img.shields.io/pypi/v/Mopidy-Touchscreen.svg?style=flat
:target: https://pypi.python.org/pypi/Mopidy-Touchscreen/
:alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/dm/Mopidy-Touchscreen.svg?style=flat
:target: https://pypi.python.org/pypi/Mopidy-Touchscreen/
:alt: Number of PyPI downloads

.. image:: https://img.shields.io/travis/9and3r/mopidy-touchscreen/develop.svg?style=flat
:target: https://travis-ci.org/9and3r/mopidy-touchscreen
:alt: Travis CI build status

.. image:: https://img.shields.io/coveralls/9and3r/mopidy-touchscreen/develop.svg?style=flat
:target: https://coveralls.io/r/9and3r/mopidy-touchscreen?branch=develop
:alt: Test coverage

Extension for displaying track info and controlling Mopidy from a touch screen
using `PyGame `_/SDL.

Cover images are downloaded from `last.fm `_


Dependencies
============

- ``Mopidy`` >= 1.0
- ``Pykka`` >= 1.1
- ``pygame``


Installation
============

Install by running::

pip install Mopidy-Touchscreen

Or, if available, install the Debian/Ubuntu package from `apt.mopidy.com
`_.


Basic Configuration
===================

Before starting Mopidy, you must add configuration for
Mopidy-Touchscreen to your Mopidy configuration file::

[touchscreen]
enabled = true
screen_width = 320
screen_height = 240
cursor = True
fullscreen = False
cache_dir = $XDG_CACHE_DIR/mopidy/touchscreen

The following configuration values are available:

- ``touchscreen/enabled``: If the Touchscreen extension should be enabled or
not.

- ``touchscreen/screen_width``: The width of the resolution you want to use in
pixels.

- ``touchscreen/screen_height``: The width of the resolution you want to use in
pixels.

- ``touchscreen/cursor``: If the mouse cursor should be shown. (If you use a
touchscreen it should be false)

- ``touchscreen/fullscreen``: If you want to be shown as a window or in
fullscreen.

- ``touchscreen/screen_width``: The folder to be used as cache. Defaults to
``$XDG_CACHE_DIR/mopidy/touchscreen``, which usually means
``~/.cache/mopidy/touchscreen``


How to Setup
============

Use the basic configuration to setup as most standard screens works fine without further configuration.

Raspberry Pi and LCD Shields
----------------------------

If you are using a LCD Shield in Raspberry Pi you need to config your LCD and run mopidy with root privileges:

Configure your LCD Shield
`````````````````````````

Add to the config the next variables::

[touchscreen]
sdl_fbdev = /dev/fb1
sdl_mousdrv = TSLIB
sdl_mousedev = event0

This is just an example. It may work but each LCD Shield seems to have its own configuration.
To find your values find an example of using pygame with your LCD Shield and it should be something like this in the code::

os.environ["SDL_FBDEV"] = "/dev/fb1"
os.environ["SDL_MOUSEDRV"] = "TSLIB"
os.environ["SDL_MOUSEDEV"] = "event0"

Run Mopidy with root privileges
```````````````````````````````

You can use ``sudo mopidy``.

In case you are using musicbox edit ``/etc/init.d/mopidy`` file. Change ``DAEMON_USER=mopidy`` to ``DAEMON_USER=root``

Do not forget that this is a workaround and that mopidy will run with root privileges.


Help
====

You can use `mopidy discuss `_
or send an email to `9and3r@gmail.com `_


Features
========

Working
-------

* See track info (track name, album, artist, cover image)
* Seek Track
* Play/Pause
* Mute/Unmute
* Change volume
* Next/Previous track
* Library
* Menu (exit mopidy, restart...)
* Shuffle on/off
* Repeat one/on/off
* Playback list and song selection
* Playlists

Planned
-------

* Use keyboard or GPIO buttons instead of touchscreen


Screenshots
===========

.. image:: http://i60.tinypic.com/qqsait.jpg


Video
=====

`Example video running the extension `_


Project resources
=================

- `Source code `_
- `Issue tracker `_
- `Download development snapshot `_


Changelog
=========

v1.0.0 (UNRELEASED)
-------------------

- Require Mopidy v1.0
- Update to work with changed core playback API in Mopidy 1.0
- Search working
- GPIO and Keyboard support
- Lower CPU usage
- Bug Fixes

v0.3.2 (2015-01-09)
-------------------

- Bug Fixes
- UI changes
- Smoth text scrolling
- Search albums, artist or songs (Not fully implemented. Basic functionality)

v0.2.1 (2014-08-02)
-------------------

- Font will be included on installation

v0.2.0 (2014-08-02)
-------------------

- First working version