Real weather for players
How to set up your own Tomorrow.io key and what the game does with weather while driving.
- Create your own Tomorrow.io account and key. Do not give the key to anyone and do not put it on a website or in a map.
- Save the key as plain text in
~/.openomsi/tomorrow-api-key.txt(Windows:%USERPROFILE%\.openomsi\tomorrow-api-key.txt). The file contains only the key; documentation and examples use only a placeholder such asYOUR_KEY_HERE. Alternatively set the environment variableOMSI_TOMORROW_API_KEYorOMSI_TOMORROW_KEY_FILE. - Put
openomsi_weather.cfg(from the map author or from the editor) into the map folder, besideglobal.cfg. - In openOMSI 0.3.34 or newer, choose Drive → Day & weather → Tomorrow.io in the launcher (or start the game with
--weather tomorrow), select the map and start the game. Without a config or key the fallback weather stays in force and a message is shown.
The key is sent only to Tomorrow.io in the apikey header. Free-plan limits may change, check them with the provider.
How the game picks weather
- While driving the nearest group is chosen; it switches only after exceeding a 200 m tolerance.
- Only the active location is fetched. Other areas are not fetched in advance.
- The response stays in a shared cache for
refresh_minutes(15–1440 minutes). Groups with identical coordinates share one cache. - More groups by themselves do not mean more requests every 15 minutes.