Beispiel #1
0
from init_app import socketio, create_app
import initializer
import os

app = create_app(True)

if __name__ == '__main__':
    port = int(os.environ.get('PORT', 5000))
    socketio.run(app, host='0.0.0.0', port=port)
Beispiel #2
0
from init_app import create_app

if __name__ == '__main__':
    create_app().run()
Beispiel #3
0
# -*-  coding=utf-8 -*-

from init_app import create_app
from extensions import db

app = create_app('product_config.py')

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=8080)
Beispiel #4
0
from init_app import create_app

app = create_app()

if __name__ == "__main__":
    app.run(debug=True)
Beispiel #5
0
from init_app import create_app

if __name__ == '__main__':
    create_app().run(host='0.0.0.0')
from init_app import create_app, init_db

app = create_app(__name__)
Beispiel #7
0
# -*- coding: utf-8 -*-

from flask import request, flash, g, session
from flask import render_template, redirect, url_for
import omxplayer
import urllib

from config import DefaultConfig, local_movie, online_movie, omxoptions
from init_app import create_app

from extensions import get_online_files, get_local_files

app = create_app(DefaultConfig)

player = None
playing = None

@app.route('/')
def index():
	print str(get_online_files())
	return render_template('index.html', files=get_online_files())

@app.route('/player', methods=['POST', 'GET'])
def web_player():
	print request.args, 111
	print exec_command(request.args['c'])
	return 'waaa'
	
def exec_command(command):
	global player,playing
	if command == 'pause':