from flask import Flask
from raspy.models.AlarmHandler import AlarmHandler
from raspy.models.api_gen import AlarmApiGenerator
from raspy.models.MpdController import MpdController
from raspy.models.LightController import LightController
import time

START_VOLUME = 15

app = Flask(__name__, template_folder='templates', static_folder='static')
app.url_map.strict_slashes = False


mpd_controller = MpdController(default_volume=START_VOLUME)
mpd_controller.set_volume(START_VOLUME)
light_controller = LightController()
alarm_handler = AlarmHandler(mpd_controller, light_controller)
api_gen = AlarmApiGenerator(alarm_handler, mpd_controller)

