Пример #1
0
def start():
    "Start RoseGuarden"
    # start backgroundworker
    backgroundWorker.run()

    # running the flask app
    app.run('0.0.0.0', threaded=True)

    # after exiting the app, cancel the backgroundowrker
    backgroundWorker.cancel()
Пример #2
0
def start():
    "Start RoseGuarden"
    # start backgroundworker
    backgroundWorker.run()

    # running the flask app
    app.run('0.0.0.0', threaded=True)

    # after exiting the app, cancel the backgroundowrker
    backgroundWorker.cancel()
Пример #3
0
def deleteUser():
    #print "Test: " +  str(getInput("Please enter your name: "))

    "Start RoseGuarden"
    # start backgroundworker
    backgroundWorker.run()

    # running the flask app
    app.run('0.0.0.0', threaded=True)

    # after exiting the app, cancel the backgroundowrker
    backgroundWorker.cancel()
Пример #4
0
def openDoor():
    "Force the local door openend"
    backgroundWorker.run()
    backgroundWorker.open_the_door()
    time.sleep(10)
    backgroundWorker.cancel()
Пример #5
0
def open_the_door():
    "Force the local door openend"
    backgroundWorker.run()
    backgroundWorker.open_the_door()
Пример #6
0
__author__ = 'drobisch'
from app.server import app, db
from app.worker import backgroundWorker
from app.test import test_envirment

test_envirment()

# start backgroundworker
backgroundWorker.run()

# running the flask app
#app.run('0.0.0.0')
app.run('0.0.0.0', threaded=True)

# after exiting the app, cancel the backgroundowrker
backgroundWorker.cancel()
Пример #7
0
__author__ = 'drobisch'
from app.server import app, db
from app.worker import backgroundWorker
from app.test import test_envirment


test_envirment()

# start backgroundworker
backgroundWorker.run()

# running the flask app
#app.run('0.0.0.0')
app.run('0.0.0.0', threaded=True)

# after exiting the app, cancel the backgroundowrker
backgroundWorker.cancel()