Repository navigation
Home
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
This describes method on running Python Flask code under apache daemon trough mod_wsgi interface:
- Install mod_wsgi (for python2 code)
apt-get install libapache2-mod-wsgi
- Copy the .wsgi file copy the
/rameplayer/webgui/vili/api/rest_server.wsgi
to directory
/var/www/api
Reference: http://flask.pocoo.org/docs/0.10/deploying/mod_wsgi/
- Copy apache configuration
(.httaccess approach didn't work and we have access anyway to apache main config)
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.
sudo easy_install pip
sudo pip install Flask
python rest_server.py
- REST API only answer 192.168.. or 10...* calls?