def main(): """Main entry point allowing external calls""" args = parse_args() config_helpers.ensure_config_directory(args.config) setup_logging(args.loglevel) config_helpers.load_logger() if args.sentry_test: """ This will crash LedFx and submit a Sentry error if Sentry is configured """ _LOGGER.warning("Steering LedFx into a brick wall") div_by_zero = 1 / 0 if args.offline_mode is False and currently_frozen(): warnings.filterwarnings("ignore", category=DeprecationWarning) update_ledfx() if args.offline_mode: _LOGGER.warning( "Offline Mode Enabled - Please check for updates regularly.") if args.offline_mode is False: import ledfx.sentry_config # noqa: F401 if not currently_frozen() and installed_via_pip(): warnings.filterwarnings("ignore", category=DeprecationWarning) _LOGGER.info("LedFx Core is initializing") ledfx = LedFxCore(config_dir=args.config, host=args.host, port=args.port) ledfx.start(open_ui=args.open_ui)
def main(): """Main entry point allowing external calls""" args = parse_args() config_helpers.ensure_config_directory(args.config) setup_logging(args.loglevel) ledfx = LedFxCore(config_dir=args.config) ledfx.start(open_ui=args.open_ui)
def main(): """Main entry point allowing external calls""" args = parse_args() setup_logging(args.loglevel) # If LedFx is a frozen windows build, it can auto-update itself if check_frozen(): update_ledfx() config_helpers.ensure_config_directory(args.config) ledfx = LedFxCore(config_dir=args.config, host=args.host, port=args.port) ledfx.start(open_ui=args.open_ui)
def main(): """Main entry point allowing external calls""" args = parse_args() config_helpers.ensure_config_directory(args.config) setup_logging(args.loglevel) ledfx = LedFxCore(config_dir=args.config) _LOGGER.critical( "THIS GIT REPO IS NO LONGER MAINTAINED. PLEASE UPDATE YOUR SOURCES TO THE OFFICIAL LEDFX GITHUB - GIT.LEDFX.APP" ) ledfx.start(open_ui=args.open_ui)