Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.74k stars 3.17k forks source link

Sunrise and sunset with on in between #1881

Closed tgrantjr closed 3 years ago

tgrantjr commented 3 years ago

I'm looking to use this for my snake enclosures. I want to have the strip in the tank do a sunrise in the morning and stay on, then a sunset at night and they stay off till morning. Is there a way to achieve this?

blazoncek commented 3 years ago

Curently only available in my fork (precompiled binary available on @srg74 repo) but should soon be available in main WLED. You will need to build from source though until next release.

After you have a sunrise/sunset capable version create two triggers (one for sunrise and another for sunset) using a separate playlist for each. Look at Wiki page for JSON API regarding playlists.

tgrantjr commented 3 years ago

I know this may sound stupid, but how do i compile this? I have compiled in linux many times. I dont see a bin file to flash over in the d1 mini flash program. any way you could help me out with that if possible? Thanks

blazoncek commented 3 years ago

If you want to compile yourself search for Quindor on YouTube (https://youtu.be/fRxyp5Yhivc).

If you just want a binary to flash on ESP, try @srg74 repo for Wemos shield (https://github.com/srg74/WLED-wemos-shield/tree/master/resources/Firmware/WLED_wemos_shield).

tgrantjr commented 3 years ago

ok i got the srg74 bin file and flashed it. there is only sunrise. Hopefuly i can figure out how to reverse it so i can do a sunset or even prolong it out so it stays on.

blazoncek commented 3 years ago

As far as I know there are two triggers, one for sunrise and another for sunset. image

If you trigger a playlist (a specially prepared preset) you can achieve your desired effect. One triggered at sunrise and another at sunset.

tgrantjr commented 3 years ago

I got that checked and the time and everything set. How would I make it lights on in between the two when it will always be different times? With those selected does it do that automatically?

blazoncek commented 3 years ago

Please look at the playlist creation. https://github.com/Aircoookie/WLED/wiki/JSON-API#playlists

You trigger 1 playlist at sunrise and 1 at sunset.

Aircoookie commented 3 years ago

Playlists not needed. You can just make two presets, both with the "Sunrise" effect, but with different speed settings. Make sure your palette is set to default. Set the intensity to your liking (more = larger white part of the "sun")

Now you can set these 2 presets to either be triggered at a certain time or at the real sunrise/set :)

tgrantjr commented 3 years ago

I made the presets but i can't figure out how to make it with the real time. I have wifi setup and the time automatically selected. I'm still confused sorry.

stale[bot] commented 3 years ago

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!