diff --git a/server.py b/server.py index b2fb1e0..662751b 100755 --- a/server.py +++ b/server.py @@ -61,8 +61,6 @@ if __name__ == "__main__": client_password = input("mypeugeot password: ") web.app.myp.connect(client_email, client_password) logger.info(web.app.myp.get_vehicles()) - t1 = Thread(target=start_app, args=["My car info", args.base_path, args.debug < 20, args.listen, int(args.port)]) - t1.start() if args.offline or args.remote_disable: logger.info("mqtt disabled") else: @@ -71,3 +69,5 @@ if __name__ == "__main__": web.app.chc = ChargeControls.load_config(web.app.myp, name=args.charge_control) web.app.chc.start() save_config(web.app.myp) + t1 = Thread(target=start_app, args=["My car info", args.base_path, args.debug < 20, args.listen, int(args.port)]) + t1.start()