Garry's Mod

Garry's Mod

StormFox 2
Denne tråd er blevet låst
xstallm 30. maj 2021 kl. 9:28
How does OpenWeather work?
Is it aimed at copying the current weather, or just the one that was when getting the API? My weather stayed at the stage when I got the API.
< >
Viser 1-9 af 9 kommentarer
Nak  [udvikler] 30. maj 2021 kl. 12:39 
You have to enable the openweather API in the settings.

1) Enter the API key
2) Hit Enter

3a) If the password changes into "*******", then you can click on the checkbox to enable/disable it.
3b) If the password changes into "INVALID" then you've entered an invalid API-key.
xstallm 30. maj 2021 kl. 13:08 
I did this, and everything works fine, but I'm wondering, is it by design that the weather doesn't change by API? that is, this is a one-shot forecast at the time of receiving the API, and it will not change?
Nak  [udvikler] 30. maj 2021 kl. 13:12 
Oprindeligt skrevet af fufafle:
I did this, and everything works fine, but I'm wondering, is it by design that the weather doesn't change by API? that is, this is a one-shot forecast at the time of receiving the API, and it will not change?
It should update every 10th minute after you entered a location.
Do note that it uses real-time weather, so it does not change that frequently.
xstallm 30. maj 2021 kl. 13:34 
I don't know, my openweather showed that the cloudiness was 0%, but the stormfox showed that it was cloudy now. one day has passed since openweather was connected
Nak  [udvikler] 30. maj 2021 kl. 14:05 
Oprindeligt skrevet af fufafle:
I don't know, my openweather showed that the cloudiness was 0%, but the stormfox showed that it was cloudy now. one day has passed since openweather was connected
If you toggle the API, will it update the weather?
Also do check the weather-screen and see what the API reports.
xstallm 31. maj 2021 kl. 6:48 
I tried 2 API generated by me and the API that was sent to me by mail. They both find my city, and the correct location is also shown in the weather settings, but the weather still does not change
xstallm 31. maj 2021 kl. 7:03 
Oh wow. The weather update is working abruptly
Nak  [udvikler] 31. maj 2021 kl. 10:34 
Oprindeligt skrevet af fufafle:
Oh wow. The weather update is working abruptly

While the free API-key allows you to make a call every 2nd second, it sadly only updates the local-weather every 10th minute.

I can't really do much, as it is an API and out of my hands.
I can however make the transition a bit smoother.. going to do that in next update.
Sidst redigeret af Nak; 31. maj 2021 kl. 10:39
xstallm 31. maj 2021 kl. 11:47 
ok. but it really start works, idk why. It doesn't work before
< >
Viser 1-9 af 9 kommentarer
Per side: 1530 50