Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Moonlight ON or OFF really works? #54

Open
BaltasarParreira opened this issue Dec 7, 2022 · 7 comments
Open

How Moonlight ON or OFF really works? #54

BaltasarParreira opened this issue Dec 7, 2022 · 7 comments
Assignees
Labels

Comments

@BaltasarParreira
Copy link

BaltasarParreira commented Dec 7, 2022

Hi, even reading all this (#43) I still have doubts how it works regarding the ON or OFF.
I can't see anywhere on the EDITOR to choose if is normal light or moonlight.

I'm using 2 channels as this image:
image

so for full moon I should have 30% intensity on the blue light channel, but even showing now this:
image

The blue lights are off.

How really this works and I can setup specific timings for moonlight?
Thanks.

@BaltasarParreira BaltasarParreira changed the title How Moonlight ON or OFF works? How Moonlight ON or OFF really works? Dec 7, 2022
@CelliesProjects
Copy link
Owner

Hi @BaltasarParreira. The sliders on the channel page set the percentage at full moon.
So if you set it to 0.99% for a channel then at full moon that channel will be at 0.99%.
For the rest of the month the value set is just proportional to that.
So at new moon it will be at 0% and if the moon is half full the percentage will be half of 99%. And when the moon is lit for 25% then the lights will be set to 0.99 x 0.25 which is 0.24%.

How low you can go with the light settings depends very much on the used led strip. Some that I used or tested stop at 0.5% -they just switch off- while others will go a lot lower. Atm I have the moonlicht setting at 0.06% and still a reasonable gradation over the month, but not all led strips will go that low.

@BaltasarParreira
Copy link
Author

Hi, thanks. but I know all that and understand how it works regarding the intensity and the calculation based on a full mon day.
My doubts are about the ON and OFF like when or what I have to do on my timers so the moonlight kicks on after the normal percentage setup for a timer/day.
Right now I have this setup for my blue channel so I ask on this setup when the moonlight kicks on and until what time:
image

@CelliesProjects
Copy link
Owner

There is no kicking in. The moonlight is implemented as do-not-dim-below-current-moonlight.

@BaltasarParreira
Copy link
Author

BaltasarParreira commented Dec 9, 2022

Sorry I didn't understand what you mean !?!?
Can you provide a time scheduler example and indicate on that when I can see moonlight on or in what time the moon percentage will be the one for my setting from my Blue channel for example (0,30% that I setup for full moon)?

Also could it be that even if I setup for 0,99% the voltage provided is under the minimal that my lamp accepts so that's why is off and I can't see no light?
My lamp works with 0-10V analog signal, so from the ESP32 PWM pin I have a tipical PWM to 0-10V analog convert board for each of the two channels I have.
The minimal voltage I can send to the lamp to have light on is 0,34V in my case and don't know what PWM value will represent.

@CelliesProjects
Copy link
Owner

I'm sorry. No idea. But most leds need at least something like 1-2V to function. About other lighting systems I don't know.

@LZsolt75
Copy link

How can I increase the lighting level at the sliders on the channels page? My leds start to lit at 2.8% so something like 3% at full moon would be good for me.

@CelliesProjects
Copy link
Owner

CelliesProjects commented May 23, 2024

@LZsolt75 I think you could hack the sliders on the channels web page.

See https://github.com/CelliesProjects/aquacontrol32/blob/master/webif/channels.htm#L126-L132

<div class="item"><input type="text" class="channelName"><input type="color" class="colorPicker"><input type="range" class="minLevel" value="0" min="0" max="0.99" step="0.01"><p class="itemValue">0%</p></div>

would become

<div class="item"><input type="text" class="channelName"><input type="color" class="colorPicker"><input type="range" class="minLevel" value="0" min="0" max="4.00" step="0.01"><p class="itemValue">0%</p></div>

for all 5 pickers. -Or the ones you want to use for moonlight-
While you are at it maybe also increase the step size.

You will then need to convert the edited htm file twice, once to gzip the content and then convert that to a .h file.
The procedure is explained in detail on https://github.com/CelliesProjects/aquacontrol32/tree/master/webif

Also you will need to change https://github.com/CelliesProjects/aquacontrol32/blob/master/webservertask.ino#L327
to something like:

if ( minLevel < 0 || minLevel > 4.0 ) return request->send( 400, HEADER_HTML, "Invalid level" );

as currently it rejects values above 0.991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants