> For the complete documentation index, see [llms.txt](https://docs.vames-store.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vames-store.com/assets/vms_needs/compatibility/weather/cd_easytime.md).

# cd\_easytime

***

#### 1. Open the file

Open the following file: **cd\_easytime/server/server.lua**

#### 2. Synchronize weather and time

Add the following thread at the end of the file.

```lua
CreateThread(function()
    local lastWeather
    local lastHour
    local lastMinute

    Wait(10000)
    
    while true do
        Wait(5000)

        local weather = self.weather
        local hour = self.hours
        local minute = self.mins

        if weather ~= lastWeather or hour ~= lastHour or minute ~= lastMinute then
            lastWeather = weather
            lastHour = hour
            lastMinute = minute

            TriggerEvent('vms_needs:temperature:update', weather, hour, minute)
        end
    end
end)
```
