Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s

This commit is contained in:
Public Source Publisher committed 2026-09-30 00:26:45 +00:00
1 parent 91f8b3e3c1
commit def7920856
2271 files changed
+501225 -501178

No files matched your search

@@ -1,60 +1,60 @@
/*---------------------------------------------------------*\
| LIFXControllerDetect.cpp |
| |
| Detector for LIFX |
| |
| Adam Honse (calcprogrammer1@gmail.com) 05 Feb 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "Detector.h"
#include "LIFXController.h"
#include "RGBController_LIFX.h"
#include "SettingsManager.h"
/******************************************************************************************\
* *
* DetectLIFXControllers *
* *
* Detect LIFX devices *
* *
\******************************************************************************************/
void DetectLIFXControllers()
{
json lifx_settings;
/*-------------------------------------------------*\
| Get LIFX settings from settings manager |
\*-------------------------------------------------*/
lifx_settings = ResourceManager::get()->GetSettingsManager()->GetSettings("LIFXDevices");
/*-------------------------------------------------*\
| If the Wiz settings contains devices, process |
\*-------------------------------------------------*/
if(lifx_settings.contains("devices"))
{
for(unsigned int device_idx = 0; device_idx < lifx_settings["devices"].size(); device_idx++)
{
if(lifx_settings["devices"][device_idx].contains("ip"))
{
std::string lifx_ip = lifx_settings["devices"][device_idx]["ip"];
std::string name = lifx_settings["devices"][device_idx]["name"];
bool multizone = lifx_settings["devices"][device_idx]["multizone"];
bool extended_multizone = lifx_settings["devices"][device_idx]["extended_multizone"];
LIFXController* controller = new LIFXController(lifx_ip, name, multizone, extended_multizone);
controller->FetchZoneCount();
RGBController_LIFX* rgb_controller = new RGBController_LIFX(controller);
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
}
}
} /* DetectLIFXControllers() */
REGISTER_DETECTOR("LIFX", DetectLIFXControllers);
/*---------------------------------------------------------*\
| LIFXControllerDetect.cpp |
| |
| Detector for LIFX |
| |
| Adam Honse (calcprogrammer1@gmail.com) 05 Feb 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include "Detector.h"
#include "LIFXController.h"
#include "RGBController_LIFX.h"
#include "SettingsManager.h"
/******************************************************************************************\
* *
* DetectLIFXControllers *
* *
* Detect LIFX devices *
* *
\******************************************************************************************/
void DetectLIFXControllers()
{
json lifx_settings;
/*-------------------------------------------------*\
| Get LIFX settings from settings manager |
\*-------------------------------------------------*/
lifx_settings = ResourceManager::get()->GetSettingsManager()->GetSettings("LIFXDevices");
/*-------------------------------------------------*\
| If the Wiz settings contains devices, process |
\*-------------------------------------------------*/
if(lifx_settings.contains("devices"))
{
for(unsigned int device_idx = 0; device_idx < lifx_settings["devices"].size(); device_idx++)
{
if(lifx_settings["devices"][device_idx].contains("ip"))
{
std::string lifx_ip = lifx_settings["devices"][device_idx]["ip"];
std::string name = lifx_settings["devices"][device_idx]["name"];
bool multizone = lifx_settings["devices"][device_idx]["multizone"];
bool extended_multizone = lifx_settings["devices"][device_idx]["extended_multizone"];
LIFXController* controller = new LIFXController(lifx_ip, name, multizone, extended_multizone);
controller->FetchZoneCount();
RGBController_LIFX* rgb_controller = new RGBController_LIFX(controller);
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
}
}
} /* DetectLIFXControllers() */
REGISTER_DETECTOR("LIFX", DetectLIFXControllers);