expired6978 / CUEORGBPlugin

Custom iCUE plugin to control OpenRGB from within iCUE
MIT License
71 stars 13 forks source link

Not able to set devices correctly in devices.json #30

Open EasyNetDev opened 9 months ago

EasyNetDev commented 9 months ago

Hi,

I'm trying to add the LEDs and settings for each device from OpenRGB to appear correctly in iCUE. Taking the devices.json and modify I can't add more than 1 device:

[
    {
        "Name": "X570S AORUS ELITE AX",
        "Thumbnail": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
        "Image": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
                "InheritDefault": false,
        "Zones": [
            {"Zone": "Motherboard"},
            {"Zone": "D_LED1 Bottom"},
            {"Zone": "D_LED2 Top"}
        ],
        "Views": [
            {
                "Image": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
                "PolyGenerator": {"Zone": "Motherboard", "Rect": [0, 300, 300, 340], "Spacing": 5}
            },
            {
                "Image": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
                "PolyGenerator": {"Zone": "D_LED1 Bottom", "Rect": [0, 300, 300, 340], "Spacing": 5}
            },
            {
                "Image": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
                "PolyGenerator": {"Zone": "D_LED2 Top", "Rect": [0, 300, 300, 340], "Spacing": 5}
            }
        ]
    }
]

If I'm adding another device like this:

[
    {
        "Name": "X570S AORUS ELITE AX",
        "Thumbnail": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
        "Image": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
                "InheritDefault": false,
        "Zones": [
            {"Zone": "Motherboard"},
            {"Zone": "D_LED1 Bottom"},
            {"Zone": "D_LED2 Top"}
        ],
        "Views": [
            {
                "Image": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
                "PolyGenerator": {"Zone": "Motherboard", "Rect": [0, 300, 300, 340], "Spacing": 5}
            },
            {
                "Image": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
                "PolyGenerator": {"Zone": "D_LED1 Bottom", "Rect": [0, 300, 300, 340], "Spacing": 5}
            },
            {
                "Image": "images/motherboard/Gigabyte/X570S_AORUS_ELITE_AX.png",
                "PolyGenerator": {"Zone": "D_LED2 Top", "Rect": [0, 300, 300, 340], "Spacing": 5}
            }
        ]
    },
    {
        "Name": "SteelSeries QCK Prism Cloth Medium",
        "InheritDefault": false,
        "Zones": [
            {"Zone": "Mousemat"},
        ],
        "Views": [
            {
                "Image": "images/motherboard/default/device_view.png",
                "PolyGenerator": {"Zone": "Mousemat", "Rect": [0, 300, 300, 340], "Spacing": 5}
            },
        ]
    }
]

iCUE doesn't make any connections to OpenRGB. Also "Thumbnail" and "Image" for MB doesn't have any effect in iCUE. There is a document how to use this file?

iCUE version: 5.11.95 OpenRGB version: 0.91 git commit 2024-02-04