Holiday Lights: 4th of July / Diwali / Halloween / Christmas - Your Pick

holiday
4thofjuly
diwali
halloween
christmas

#344

looks like this added a few more holidays colors to the version without sound. did you create the global variable?


#345

aha, that fixed it. thank you. I didn’t think the variable needed to be created unless I actually planned on pausing it.


#346

Trying to modify to mostly just change colors instead of changing colors and level. Setting both levelHigh and levelLow to 80 does not seem to change the behavior. I also tried 80 and 70 thinking that maybe it was trying to divide by zero – that didn’t help. Do those variables not do what I think they do?


#347

this one sets the level to a random value.

on line 207 of snapshot change it to set level to i


#348

I see now. Changing that line to this:

set level to levelLow + random (levelHigh-levelLow)

…sets the level to a random value between levelLow and levelHigh. Thats what I was looking for. Thank you.


#349

Does this capture the state and color of your bulbs prior to running so they can reset back afterwards?


#350

no it does not.


#351

Im trying to follow this thread, but are there 2 pistons I need to enable? I get an error when I implement the one.


#352

are you using this the one with piston code 27364?


#353

When I use any of the codes and implement I get the following in the Logs:

An error occurred while executing the event: java.lang.NullPointerException: Cannot get property ‘v’ on null object


#354

usually that happens when during piston restore all device prompts are not filled in or a global variable is not created.

please double check the devices and any global variables.


#355

Since there were 2 lights I only used 1 but did remove the second one from the piston. Is there a global variable required to be created?


#356

which piston code did you use for restore?


#357

I restored with the piston code 27364 you suggested.


#358

did you already do this part?


#359

Am I the only one that sees the phrase “full of crap” in the name of your variable?:rofl:


#360

its early yet … grab a cup of joe and mount the throne to unsee it :wink:


#361

I only have 1 hue strip. How can this be changed to make the colors rotate (fade in /out)? Right now, my strip isn’t giving me the correct colors.


#362

the color rotation is working? you would like it to also fade in / fade out when the colors change?


#363

Well, wouldn’t you know that it works now! You really are good!