realweather/src/main/resources/config.yml
Minecon724 e2254f6c67 do real time properly
+ tidy config
+ bump version
fixes #2
2023-08-29 09:22:40 +00:00

71 lines
2.1 KiB
YAML

weather:
worlds:
- world
- second_world
- third_world
# "point" - static location
# "player" - player's IP location (fake weather)
# "map" - world resembles a real-world globe
source: point
point:
latitude: 41.84201
longitude: -89.485937
player:
# Get your own @ https://www.maxmind.com/en/geolite2/signup
geolite2_accountId: 710438
geolite2_apiKey: 'qLeseHp4QNQcqRGn'
map:
# Valid latitude range: -90 to 90
# Valid longitude range: -180 to 180
# 1 degree of latitude and longitude is about 111 km
# The defaults here assume 1 block = ~1 km
# Latitude scale, 1 block = <scale> degrees
scale_lat: 0.009
# Longitude scale, 1 block = <scale> degrees
scale_lon: 0.009
# What to do if player exceeds the range specified above
# 1 - do nothing (clamp to nearest allowed value)
# 2 - wrap the number
# for example; if a player's position on map converts to 94 degrees (out of bounds), it becomes -86 degrees
on_exceed: 2
provider:
# Weather provider
choice: openweathermap
# Configure it here
openweathermap:
apiKey: 'd3d37fd3511ef1d4b44c7d574e9b56b8' # PLEASE get your own @ https://home.openweathermap.org/users/sign_up
# More providers soon!
realtime:
# warning: this removes sleep
enabled: false
worlds:
- world
# "auto" to use server's timezone
# Alternatively choose one of these: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
timezone: 'auto'
# x day cycles / 24 hrs
timeScale: 1.0
# How often should we recalculate the time (in ticks)
# Very minimal impact on performance
interval: 1
settings:
# Delay between rechecking weather
# in ticks, 20 is one second
# Shouldn't affect performance
timeBetweenRecheck: 600
# Whether to display an actionbar containing info
actionbar: true
# Advanced options
timeBeforeInitialRun: 0
debug: false
debugAllowDox: false
messages:
# settings.actionbar toggles this
# %weather_full% - full state description, such as "extreme thunder"
# %weather% - short state description, such as "rain"
actionbarInfo: "&b%weather_full%"