Help please, If Spotify song & time triggers payload

Hey awesome Node-red people. Bit of a newbie and have gone through a bit of tutorials.

You can see here what I am wanting to accomplish:

This is using LedFx realtime lighting effects LED with your music that you are playing.

Where I need help is:

  1. "If above API getting connection then"
  2. "IF LedFx Spotify song & time matches Spotify Payload, then push trigger based on LedFx payload"

Starting with 1.
I think I have done this right, a second opinion doesn't hurt:


Seem OK? debug looks like it continues down the second path, although it shouldn't.

Point 2.
Payload example of LedFx presets is:

{
    "status": "success",
    "presets": {
        "blabla": {
            "devices": {
                "121": {
                    "config": {
                        "blur": 3.0,
                        "brightness": 1.0,
                        "color_high": "blue",
                        "color_lows": "red",
                        "color_mids": "green",
                        "decay": 0.97,
                        "flip": false,
                        "mirror": true,
                        "speed": 5,
                        "threshold": 0.0
                    },
					"QLC": {
                            "widget": {
							"widgetid": 3
							"widgetvalue": 0
                            },
							{
							"widgetid": 4
							"widgetvalue": 255
                            },
                            "type": "scroll(Reactive)"
                        }
                    },
                    "id": "blabla",
                    "name": "blabla",
                    "triggers": {
                        "0hXdDpLNbSaYVKwCygFNsY-17840": [
                            "0hXdDpLNbSaYVKwCygFNsY",
                            "Why Do You Feel",
                            17840
                        ],
                        "6KzkqZqhUBEsWYJJa2aBOd-0": [
                            "6KzkqZqhUBEsWYJJa2aBOd",
                            "The Weekend - Radio Edit",
                            0
                        ]
                    }
                },
                "test": {
                    "name": "Test",
                    "id": "test",
                    "triggers": {},
                    "devices": {
                        "121": {
                            "type": "scroll(Reactive)",
                            "config": {
                                "blur": 3.0,
                                "brightness": 1.0,
                                "color_high": "blue",
                                "color_lows": "red",
                                "color_mids": "green",
                                "decay": 0.97,
                                "flip": false,
                                "mirror": true,
                                "speed": 5,
                                "threshold": 0.0
                            }
                        },
                        "122": {
                            "type": "rain(Reactive)",
                            "config": {
                                "brightness": 1.0,
                                "raindrop_animation": "droplet_0.npy",
                                "lows_colour": "white",
                                "mids_colour": "red",
                                "high_colour": "blue",
                                "lows_sensitivity": 0.2,
                                "mids_sensitivity": 0.1,
                                "high_sensitivity": 0.03,
                                "mirror": true,
                                "flip": false,
                                "blur": 0.0
                            }
                        }
                    }
                }
            }
        }

Working export: testing LedFx Preset: "blabla"
image

Working export: testing QLC+ Widget3 as 0
image

Any help would be really appreciated. Thanks again.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.