Configuring Weather and Time

Holodeck worlds have weather and time that can be configured, either with Scenarios or programmatically in real time.

See the WeatherController documentation for reference.

Weather Options

Type

../_images/weathers.png

Holodeck worlds have three possible types of weather: sunny cloudy and rain.

In a scenario

{
   "weather": {
      "type": "rain"
   }
}

Programmatically

env = holodeck.make("...")
env.weather.set_weather("rain")

Fog depth

../_images/fog_depth.gif

Fog depth is set on scale from 0 to 1.

In a scenario

{
   "weather": {
      "fog_depth": 0.5
   }
}

Programmatically

env = holodeck.make("...")
env.weather.set_fog_density(0.5)

Day length

../_images/day_length.gif

Note

By default, the day cycle in Holodeck worlds is turned off and time is fixed.

The day cycle length is set in minutes.

In a scenario

{
   "weather": {
      "day_cycle_length": 60
   }
}

Programmatically

env = holodeck.make("...")
env.weather.start_day_cycle(60)

Time

../_images/time.gif

The time of the day can be set as a number between 0 and 23 inclusive.

In a scenario

{
   "weather": {
      "hour": 12
   }
}

Programmatically

env = holodeck.make("...")
env.weather.set_day_time(12)