setUseRealTimeSunPosition method

void setUseRealTimeSunPosition(
  1. bool enabled
)

Enables or disables real-time sun position tracking.

When enabled, the sun's position will be calculated based on the current time.

Example usage:

controller.setUseRealTimeSunPosition(true);

Implementation

void setUseRealTimeSunPosition(bool enabled) {
  useRealTimeSunPosition = enabled;
  if (enabled) {
    updateSunPositionFromRealTime();
  }
  notifyListeners();
}