Skip to content
ViLiMan edited this page Aug 22, 2015 · 63 revisions

Welcome to the rameplayer wiki!

The foremost purpose of this wiki is to define the interactions between different services and GUI.

Services: omx_server
lcd_server
media_indexer (reads the metadata)
downloader (downloader manager for online media)

I'll be updating the wiki with sequence diagrams like one below asap. edit diagram

Installing Python Flask web framework in Raspian:

This describes method on running Python Flask code under apache daemon trough mod_wsgi interface:

  1. Install mod_wsgi (for python2 code) apt-get install libapache2-mod-wsgi

  2. Create .wsgi file

Reference: http://flask.pocoo.org/docs/0.10/deploying/mod_wsgi/

copy the

 `platforms/raspian/etc/apache2/sites-available/default`

to

 `/etc/apache2/sites-available/default`

it contains the (api) Directory directive and pointer for .wsgi file that points to Python Flask code.

Installing Python Flask web framework in Mac and running as it own webserver (for development):

sudo easy_install pip

sudo pip install Flask

python rest_server.py

Things to consider:

  • REST API only answer 192.168.. or 10...* calls?

Clone this wiki locally