Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.02 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.02 KB

gtmp-openweathermap

Description

Gamemode for setting ingame weather to real weather of a city of your choice in defined time intervals.

Installation

  1. Place the OpenWeatherMap folder in the resources directory
  2. I tend to compile every gamemode. With current meta.xml you'll have to compile the code in release mode or modify the meta.xml to use the source files directly.
  3. Edit settings.xml and add <resource src="OpenWeatherMap" />
  4. Sign up at http://openweathermap.org/ and get an appid
  5. Edit meta.xml and set the value of setting name="owm_appId"

Using Forecasts

Send OWM_GET_FORECAST with no content. You will receive OWM_FORECAST with a serialized JSON object. See the example included.

Contribution

If you find bugs, just tell me. If you'd like to improve or extend the code, just fork this repo and share it back.

Support

I made this gamemode for fun. If you'd like to support somebody, support the guys and gals which made the server software at https://gt-mp.net/