Help with Aquarium automation code.

Thanks for that UKHeliBob,

The reason why I'm using minutes past midnight is simply because the author of the original sunrise/sunset control code designed it that way and I don't have the necessary skills to convert it..

Ideally I would like it to be defined simply by a 24hr clock numeric not minutes past midnight.

I'm a tad uncertain how to convert this to a state machine using the fade method that the original author wrote.

Again, I really appreciate the support that you or anyone else could provide as I said I'm not that familiar with writing code.

Thanks people