Run LED along stairs, start effekt alwas with step 1

Hi,

When I enter the staircase from the top, I want to start an animation that runs a red LED from the top to the bottom. I would adjust the speed to match my average walking speed.
Afterwards the original animation should be played again.
To realize this I have saved the Lighthouse effect in a preset. I can call this preset via HTTP API. Now I have the problem that the effect does not always start with the first step (LED top step) but at a random position. Is there a way to always start an effect with step 1?

BR

mode

I am in the same boat. I am trying to program a start/boot effect for my kitchen lights (single strip of 44 leds). I’d like for them to light up one after the other when I switch the strip on.

I am using the wipe effect for that and that seems like the way to go, but the effect always starts at a random position.

I have a Bootup playlist:

{"playlist":{"ps":[3],"dur":[6],"transition":[0],"repeat":1,"r":false,"end":1},"on":true}

Which consists of a “Fade in” preset and a “Standard”-Preset, which just is how I would like the strip to look when it is turned on.

Fade In:

{
   "on":true,
   "bri":255,
   "transition":0,
   "mainseg":0,
   "seg":[
      {
         "start":0,
         "stop":43,
         "id":0,
         "grp":1,
         "spc":0,
         "of":0,
         "on":true,
         "bri":255,
         "col":[
            [
               0,
               0,
               0
            ],
            [
               255,
               162,
               71
            ],
            [
               0,
               0,
               0
            ]
         ],
         "fx":3,
         "sx":250,
         "ix":200,
         "pal":0,
         "sel":true,
         "rev":false,
         "mi":false
      }
   ]
}

Standard:

{
   "on":true,
   "bri":255,
   "transition":0,
   "mainseg":0,
   "seg":[
      {
         "id":0,
         "start":0,
         "stop":44,
         "grp":1,
         "spc":0,
         "of":0,
         "on":true,
         "bri":255,
         "col":[
            [
               255,
               162,
               71
            ],
            [
               0,
               0,
               0
            ],
            [
               0,
               0,
               0
            ]
         ],
         "fx":0,
         "sx":128,
         "ix":128,
         "pal":0,
         "sel":true,
         "rev":false,
         "mi":false
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      },
      {
         "stop":0
      }
   ]
}

So in short: It’d be great if the animation started at 0 and not at what seems like a random led (maybe a pointer looping around and around in the background?)

Wled version: 0.13.0-b4

Thanks!

1 Like

I think you are right. The variable should be “now”. See WLED/FX.cpp at 6df64d0d31bfb4862dd46bfadd83abe39b04f974 · Aircoookie/WLED · GitHub

So and API Event that sets now = 0 should solve our problem?!?!