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()
Exemple #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()
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()
def openDoor():
    "Force the local door openend"
    backgroundWorker.run()
    backgroundWorker.open_the_door()
    time.sleep(10)
    backgroundWorker.cancel()
Exemple #5
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()
Exemple #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()