import bottle
import waitress
import controller
import breathe
from pytz import timezone
from apscheduler.schedulers.background import BackgroundScheduler

bottle_app = bottle.app()
scheduler = BackgroundScheduler()
scheduler.configure(timezone=timezone('US/Pacific'))
breather = breathe.Breathe()
my_controller = controller.Controller(bottle_app, breather)


@scheduler.scheduled_job(trigger='cron', hour=20, minute=0)
def on_job():
    """Start at 10:00pm PT"""
    print('STARTING BREATHER')
    breather.restart()

@scheduler.scheduled_job(trigger='cron', hour=0, minute=1)
def off_job():
    """End at 12:01am PT"""
    print("STOPPING BREATHER")
    breather.shutdown()

if __name__ == '__main__':
    scheduler.start()
    waitress.serve(bottle_app, host='0.0.0.0', port=7000)

import bottle
import waitress
import controller
import breathe
from pytz import timezone
from apscheduler.schedulers.background import BackgroundScheduler

bottle_app = bottle.app()
scheduler = BackgroundScheduler()
scheduler.configure(timezone=timezone('US/Pacific'))
breather = breathe.Breathe()
my_controller = controller.Controller(bottle_app, breather)


@scheduler.scheduled_job(trigger='cron', hour=22, minute=0)
def on_job():
    """Start at 10:00pm PT"""
    print('STARTING BREATHER')
    breather.restart()

@scheduler.scheduled_job(trigger='cron', hour=0, minute=1)
def off_job():
    """End at 12:01am PT"""
    print("STOPPING BREATHER")
    breather.shutdown()

if __name__ == '__main__':
    scheduler.start()
    waitress.serve(bottle_app, host='0.0.0.0', port=7000)

--- 
+++ 
@@ -12,7 +12,7 @@
 my_controller = controller.Controller(bottle_app, breather)
 
 
-@scheduler.scheduled_job(trigger='cron', hour=22, minute=0)
+@scheduler.scheduled_job(trigger='cron', hour=20, minute=0)
 def on_job():
     """Start at 10:00pm PT"""
     print('STARTING BREATHER')
Set scheduler to start at 8pm
