-
Notifications
You must be signed in to change notification settings - Fork 20
Weather
Since December 2017, weather mechanics have been added to the game.
Weather is applied on S2 Cells (google it!) at level 10. It's about 80 square kilometers coverage per cell. Your position on earth could handle multiple cells for a smaller location. (ie: Manchester region coverer)
Weather could be notified via the built-in notification system for Pokemons only. Using the keyword , it will indicate if the Pokemon is boosted by weather (Not boosted or weather type). To use the keyword in your discord notifications, you have to uncomment the WEATHER_STATUS part in config.
You can personnalize weather messages by edition the WEATHER_STATUS part. IE:
WEATHER_STATUS = {
0: "Nothing",
1: "Boosted ! It's clear outside",
2: "Boosted but take your umbrella",
3: "Boosted, thanks to the little cloud",
4: "Overcast boost it",
5: "Boosted, it's windy outside",
6: "Pokemon is boosted by the snow",
7: "Boosted but there is fog. Can you see it ?"
}
Weather for pokemons are sent to webhooks trough the weather
part in webhook message.
It contains the weather boost condition sent with the pokemon (weather_boost_condition ids) to indicate if the pokemon is boosted and by which type of weather.
PokemonGo Weather has 5 infos :
s2_cell_id
: ID of the S2 Cell
Each Weather cell has an ID. ID is coded as UNSIGNED BIGINT
weather boost condition
: Current weather
Condition is a smallint that indicates the current weather condition in cell.
Values are :
- 0: "No weather / not boosted"
- 1: "Clear"
- 2: "Rainy"
- 3: "Partly Cloudy"
- 4: "Overcast"
- 5: "Windy"
- 6: "Snow"
- 7: "Fog"
severity
: Severity of the weather
Severity is smallint 0 to 2.
Values are :
- 0: "None"
- 1: "Moderate"
- 2: "Extreme"
warn
: warning about weather alerts
Warn is a boolean (smallint in DB). It could have these values :
- 0/false: "No warn"
- 1/true: "Warning - Weather alert"
Combination of True and a severity at 2 (EXTREME) will give you an HAZARDEOUS notice in-app. Some spawns will be removed during this contition.
day
: Day or Night
Smallint indicating the day status :
- 1: day
- 2: night
Weather is fetched in 2 ways for theses purposes :
- Get weather for an entire S2 Cell
- Get weather boost bonus for sightings
Full info of weather for the S2 Cell is stored in cache, and added in DB to the weather
table. and updated
column is showing a timestamp with the last weather update for a given cell.
Weather for sightings is stored in cache. In DB, it will be stored the S2 Cell id in column weather_cell_id
of the sightings
and mystery_sightings
tables