1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-13 22:01:34 +02:00
parent 1fda30bd8d
commit 1b2b6103cb
3 changed files with 5 additions and 6 deletions

View file

@ -4,7 +4,7 @@
<Sirens> <Sirens>
<Item> <Item>
<id value="846256"/> <!--Tow Truck made by Redneck Modifications.--> <id value="866256"/> <!--Tow Truck made by Redneck Modifications.-->
<name>f450c</name> <name>f450c</name>
<timeMultiplier value="1.00000000"/> <timeMultiplier value="1.00000000"/>
<lightFalloffMax value="120.00000000"/> <lightFalloffMax value="120.00000000"/>

View file

@ -104,7 +104,7 @@
<Probabilities /> <Probabilities />
</plateProbabilities> </plateProbabilities>
<lightSettings value="1" /> <lightSettings value="1" />
<sirenSettings value="846256" /> <sirenSettings value="866256" />
</Item> </Item>
<Item> <Item>
<modelName>pd2</modelName> <modelName>pd2</modelName>

View file

@ -1,14 +1,13 @@
local Config = { local Config = {
Weather = true, Weather = true,
Time = false Time = true
} }
local apiKey = "8d27737fd1425cd3d243f54e4f80e765" local apiKey = "8d27737fd1425cd3d243f54e4f80e765"
local city = "Los Angeles" local city = "Berlin"
local weatherType = "CLEAR" local weatherType = "CLEAR"
local lastWeatherUpdate = os.time() local lastWeatherUpdate = os.time()
function getRealTime() function getRealTime()
local now = os.date("*t") local now = os.date("*t")
local hour = now.hour local hour = now.hour
@ -80,7 +79,7 @@ end)
]] ]]
local function getBerlinTime() local function getBerlinTime()
PerformHttpRequest("https://timeapi.io/api/Time/current/zone?timeZone=America/Los_Angeles", function(statusCode, response, headers) PerformHttpRequest("https://timeapi.io/api/Time/current/zone?timeZone=Europe/Berlin", function(statusCode, response, headers)
if statusCode == 200 then if statusCode == 200 then
local data = json.decode(response) local data = json.decode(response)
if data and data.hour and data.minute then if data and data.hour and data.minute then