API

GetWeatherData

local data = exports.weathersync:GetWeatherData()
print(json.encode(data, {indent = true}))

-- print should look like this
{
    weather = 'EXTRASUNNY',
    min = 0,
    hour = 0
}

GetTime

local time = exports.weathersync:GetTime()
print(json.encode(time, {indent = true}))

-- print should look like this

{
    hour = 19,
    min = 34
}

GetWeather

local time = exports.weathersync:GetWeather()
print(time)

Last updated