Calculate sunrise/sunset and adjust brightness before/after