GUI to quickly determine light day length depending of latitude and date.
Status: done
- OS: Linux
- Lua 5.4
- TekUI
Clone repo. $ lua run.lua.
In 2020-03 I was doing growbox Arduino project. I wanted to get real length of lightday.
So did some research, found that paper, implemented all algorithms from there, chose one (CBM) and wrote bare framework over TekUI to represent it as slidebar with feedback.
Of course, it's not possible to emulate daylight with growlamp. You can't change intensity. You can't move over arc like Sun. You can't emulate wind. And anyway, my tomatoes grew great at just 12h-on mode.
But it was fun. I knew and learned something new.
Maybe one day I'll return and add UI block to select algorithm. Maybe I'll plot lightday over the year. (Calculating sunrise and sunset is another big can of worms.)
Code is tangled. I was writing wrappers over TekUI to get the job done. Same for algorithms implementation: bottom-up design. Next stage is rethink and rewrite it.
But for now, I'm putting this project on shelve in stable state.
Reference paper: Ecological Modelling - A model comparison for daylength as function of latitude and day of the year
Last mod.: 2024-02-26
See also my other repositories.
