mirror of https://github.com/LedFx/LedFx.git
b45
This commit is contained in:
parent
a08d919a82
commit
3b70c761b4
|
@ -359,8 +359,8 @@ def main():
|
|||
# icon = None
|
||||
|
||||
|
||||
if not args.offline_mode and currently_frozen():
|
||||
update_ledfx(icon)
|
||||
# if not args.offline_mode and currently_frozen():
|
||||
# update_ledfx(icon)
|
||||
|
||||
if icon:
|
||||
icon.run(setup=entry_point)
|
||||
|
|
|
@ -81,7 +81,7 @@ class ScenesEndpoint(RestEndpoint):
|
|||
}
|
||||
return web.json_response(data=response, status=400)
|
||||
|
||||
if action not in ["activate", "deactivate", "rename"]:
|
||||
if action not in ["activate", "activate_in", "deactivate", "rename"]:
|
||||
response = {
|
||||
"status": "failed",
|
||||
"reason": f'Invalid action "{action}"',
|
||||
|
@ -105,6 +105,24 @@ class ScenesEndpoint(RestEndpoint):
|
|||
|
||||
scene = self._ledfx.config["scenes"][scene_id]
|
||||
|
||||
if action == "activate_in":
|
||||
ms = data.get("ms")
|
||||
if ms is None:
|
||||
response = {
|
||||
"status": "failed",
|
||||
"reason": 'Required attribute "ms" was not provided',
|
||||
}
|
||||
return web.json_response(data=response, status=400)
|
||||
self._ledfx.loop.call_later(ms, self._ledfx.scenes.activate, scene_id)
|
||||
response = {
|
||||
"status": "success",
|
||||
"payload": {
|
||||
"type": "info",
|
||||
"message": f"Activated scene {scene['name']}",
|
||||
},
|
||||
}
|
||||
return web.json_response(data=response, status=200)
|
||||
|
||||
if action == "activate":
|
||||
for virtual in self._ledfx.virtuals.values():
|
||||
# Check virtual is in scene, make no changes if it isn't
|
||||
|
|
|
@ -318,6 +318,7 @@ class Effect(BaseRegistry):
|
|||
pass
|
||||
|
||||
def get_pixels(self):
|
||||
if not hasattr(self, 'pixels'): return
|
||||
pixels = np.copy(self.pixels)
|
||||
# Apply some of the base output filters if necessary
|
||||
if self._config["flip"]:
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
{
|
||||
"files": {
|
||||
"main.css": "./static/css/main.e749384b.css",
|
||||
"main.js": "./static/js/main.20432217.js",
|
||||
"static/js/787.15424a8e.chunk.js": "./static/js/787.15424a8e.chunk.js",
|
||||
"static/media/transitions.gif": "./static/media/transitions.53b6d6f458b421f00872.gif",
|
||||
"static/media/materialdesignicons-webfont.woff": "./static/media/materialdesignicons-webfont.d8e8e0f7931afa097409.woff",
|
||||
"static/media/materialdesignicons-webfont.woff2": "./static/media/materialdesignicons-webfont.e9db4005489e24809b62.woff2",
|
||||
"static/media/MaterialIcons-Regular.woff2": "./static/media/MaterialIcons-Regular.f71673ad689fb42ddae1.woff2",
|
||||
"static/media/ring.png": "./static/media/ring.1faea45b576b5380bde1.png",
|
||||
"service-worker.js": "./service-worker.js",
|
||||
"static/media/blademod.svg": "./static/media/blademod.f939f478785a84b3edcc820eef654556.svg",
|
||||
"index.html": "./index.html",
|
||||
"main.e749384b.css.map": "./static/css/main.e749384b.css.map",
|
||||
"main.20432217.js.map": "./static/js/main.20432217.js.map",
|
||||
"787.15424a8e.chunk.js.map": "./static/js/787.15424a8e.chunk.js.map"
|
||||
"main.css": "/static/css/main.5721f888.css",
|
||||
"main.js": "/static/js/main.e30d7aee.js",
|
||||
"static/js/787.15424a8e.chunk.js": "/static/js/787.15424a8e.chunk.js",
|
||||
"static/media/transitions.gif": "/static/media/transitions.53b6d6f458b421f00872.gif",
|
||||
"static/media/materialdesignicons-webfont.woff": "/static/media/materialdesignicons-webfont.d8e8e0f7931afa097409.woff",
|
||||
"static/media/materialdesignicons-webfont.woff2": "/static/media/materialdesignicons-webfont.e9db4005489e24809b62.woff2",
|
||||
"static/media/MaterialIcons-Regular.woff2": "/static/media/MaterialIcons-Regular.f71673ad689fb42ddae1.woff2",
|
||||
"service-worker.js": "/service-worker.js",
|
||||
"static/media/ring.png": "/static/media/ring.1faea45b576b5380bde1.png",
|
||||
"static/media/blademod.svg": "/static/media/blademod.f939f478785a84b3edcc820eef654556.svg",
|
||||
"index.html": "/index.html",
|
||||
"main.5721f888.css.map": "/static/css/main.5721f888.css.map",
|
||||
"main.e30d7aee.js.map": "/static/js/main.e30d7aee.js.map",
|
||||
"787.15424a8e.chunk.js.map": "/static/js/787.15424a8e.chunk.js.map"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/css/main.e749384b.css",
|
||||
"static/js/main.20432217.js"
|
||||
"static/css/main.5721f888.css",
|
||||
"static/js/main.e30d7aee.js"
|
||||
]
|
||||
}
|
|
@ -34,6 +34,7 @@ function createWindow(args) {
|
|||
// frame: false,
|
||||
webPreferences: {
|
||||
webSecurity: false,
|
||||
allowRunningInsecureContent: true,
|
||||
plugins: true,
|
||||
enableRemoteModule: true,
|
||||
backgroundThrottling: false,
|
||||
|
|
|
@ -1 +1 @@
|
|||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="description" content="LedFx Client - by Blade"/><link rel="apple-touch-icon" sizes="57x57" href="./favicon/apple-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="./favicon/apple-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="./favicon/apple-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="./favicon/apple-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="./favicon/apple-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="./favicon/apple-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="./favicon/apple-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="./favicon/apple-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="./favicon/apple-icon-180x180.png"><link rel="icon" type="image/png" sizes="192x192" href="./favicon/android-icon-192x192.png"><link rel="icon" type="image/png" sizes="32x32" href="./favicon/favicon-32x32.png"><link rel="icon" type="image/png" sizes="96x96" href="./favicon/favicon-96x96.png"><link rel="icon" type="image/png" sizes="16x16" href="./favicon/favicon-16x16.png"><meta name="msapplication-TileColor" content="#333333"><meta name="msapplication-TileImage" content="./favicon/ms-icon-144x144.png"><meta name="theme-color" content="#333333"><meta name="background-color" content="#020202"><link rel="manifest" href="./manifest.json"/><title>LedFx</title><script defer="defer" src="./static/js/main.20432217.js"></script><link href="./static/css/main.e749384b.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><script type="application/javascript">"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.register("serviceWorker.js",{scope:"."}).then((function(e){console.debug("ServiceWorker registration successful with scope: ",e.scope)}),(function(e){console.debug("ServiceWorker registration failed: ",e)}))}))</script><div id="root"></div></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="description" content="LedFx Client - by Blade"/><link rel="apple-touch-icon" sizes="57x57" href="/favicon/apple-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/favicon/apple-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/favicon/apple-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/favicon/apple-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/favicon/apple-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/favicon/apple-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/favicon/apple-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/favicon/apple-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-icon-180x180.png"><link rel="icon" type="image/png" sizes="192x192" href="/favicon/android-icon-192x192.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png"><link rel="icon" type="image/png" sizes="96x96" href="/favicon/favicon-96x96.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png"><meta name="msapplication-TileColor" content="#333333"><meta name="msapplication-TileImage" content="/favicon/ms-icon-144x144.png"><meta name="theme-color" content="#333333"><meta name="background-color" content="#020202"><link rel="manifest" href="/manifest.json"/><title>LedFx</title><script defer="defer" src="/static/js/main.e30d7aee.js"></script><link href="/static/css/main.5721f888.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><script type="application/javascript">"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.register("serviceWorker.js",{scope:"."}).then((function(e){console.debug("ServiceWorker registration successful with scope: ",e.scope)}),(function(e){console.debug("ServiceWorker registration failed: ",e)}))}))</script><div id="root"></div></body></html>
|
|
@ -45,14 +45,10 @@
|
|||
"density": "4.0"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"scope": ".",
|
||||
"start_url": "./",
|
||||
"scope": "./",
|
||||
"display": "standalone",
|
||||
"orientation": "any",
|
||||
"serviceworker": {
|
||||
"src": "serviceWorker.js",
|
||||
"scope": "."
|
||||
},
|
||||
"theme_color": "#800000",
|
||||
"background_color": "#030303"
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,9 +1,3 @@
|
|||
/*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
|
@ -11,13 +5,17 @@ object-assign
|
|||
*/
|
||||
|
||||
/*!
|
||||
* hotkeys-js v3.8.7
|
||||
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
|
||||
*
|
||||
* Copyright (c) 2021 kenny wong <wowohoo@qq.com>
|
||||
* http://jaywcjlove.github.io/hotkeys
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* Chart.js v2.9.3
|
||||
* https://www.chartjs.org
|
||||
* (c) 2019 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
*/
|
||||
|
||||
/*!
|
||||
* cookie
|
||||
* Copyright(c) 2012-2014 Roman Shtylman
|
||||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*/
|
||||
|
||||
/*! *****************************************************************************
|
||||
|
@ -46,6 +44,78 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
* Released under the MIT license
|
||||
*/
|
||||
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react-is.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A better abstraction over CSS.
|
||||
*
|
||||
|
@ -54,22 +124,29 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
* @license MIT
|
||||
*/
|
||||
|
||||
/** @license MUI v5.2.6
|
||||
/**
|
||||
* React Router DOM v6.3.0
|
||||
*
|
||||
* Copyright (c) Remix Software Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* LICENSE.md file in the root directory of this source tree.
|
||||
*
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/** @license MUI v5.4.4
|
||||
/**
|
||||
* React Router v6.3.0
|
||||
*
|
||||
* Copyright (c) Remix Software Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* LICENSE.md file in the root directory of this source tree.
|
||||
*
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/** @license React v0.20.2
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
/** @license MUI v5.8.0
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
|
@ -84,15 +161,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react-is.production.min.js
|
||||
*
|
||||
|
@ -102,24 +170,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.16.1-lts
|
File diff suppressed because one or more lines are too long
3
win.spec
3
win.spec
|
@ -7,11 +7,12 @@ venv_root = os.path.abspath(os.path.join(SPECPATH, '..'))
|
|||
block_cipher = None
|
||||
print(venv_root)
|
||||
|
||||
|
||||
a = Analysis([f'{spec_root}\\ledfx\\__main__.py'],
|
||||
pathex=[f'{spec_root}', f'{spec_root}\\ledfx'],
|
||||
binaries=[],
|
||||
datas=[(f'{spec_root}/ledfx_frontend', 'ledfx_frontend/'), (f'{spec_root}/ledfx/', 'ledfx/'), (f'{spec_root}/icons', 'icons/'),(f'{spec_root}/icons/tray.png','.')],
|
||||
hiddenimports=['sacn', 'aubio', 'numpy', 'math', 'voluptuous', 'numpy', 'aiohttp', 'mido','mido.frozen', 'paho', 'paho.mqtt', 'openrgb-python', 'openrgb', 'python-rtmidi','rtmidi', 'mido.backends.rtmidi', 'paho.mqtt.client','samplerate','sounddevice',
|
||||
hiddenimports=['sacn', 'aubio', 'numpy', 'math', 'voluptuous', 'numpy', 'aiohttp', 'mido','mido.frozen', 'paho', 'paho.mqtt', 'openrgb-python', 'openrgb', 'python-rtmidi','rtmidi', 'mido.backends.rtmidi', 'paho.mqtt.client','samplerate','_samplerate_data', 'sounddevice',
|
||||
'sentry_sdk', 'sentry_sdk.integrations.django','sentry_sdk.integrations.flask','sentry_sdk.integrations.bottle','sentry_sdk.integrations.falcon','sentry_sdk.integrations.sanic',
|
||||
'sentry_sdk.integrations.celery','sentry_sdk.integrations.aiohttp','sentry_sdk.integrations.rq','sentry_sdk.integrations.tornado','sentry_sdk.integrations.sqlalchemy',
|
||||
'sentry_sdk.integrations.boto3','_cffi_backend','serial','pystray._win32','serial.tools.list_ports','tcp_latency','aiohttp_cors','psutil','yappi'],
|
||||
|
|
Loading…
Reference in New Issue