Candlelight has two moving parts: a player script that watches the clock and the weather, and a global script that owns light records. Both talk through events, so another mod can listen in.
Start with configuration if you want different curves, or events if you are writing a mod that reacts to lights changing.