Node.js script for creating aquaillumination hydra lighting programs that resemble the curve of irradiance by time of day.
- Install Dependencies:
yarn
. - Modify variables for light spectrum settings, time of day, etc in
solar-curve.js
. - Run the script:
node solar-curve.js
. It will overwritesolar-curve.aip
. Upload the file to your light!
This was just an attempt to create a sunrise to sunset light profile based on real data. The chart from pveducation.org shows solar irradiance at the equator on January 1st over time. A table view of the charts is also available on the site, from which you can infer a percentage of the mid-day (peak) value for each hour.
This script generates an AIP file representing the same curve based on maximum power settings applied at mid-day. You can also offset the start of the curve (I did this to push the light more towards the evening so I can see sunset while at home.