Garry's Mod

Garry's Mod

StormFox 2
此主题已被锁定
xstallm 2021 年 5 月 30 日 上午 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.
< >
正在显示第 1 - 9 条,共 9 条留言
Nak  [开发者] 2021 年 5 月 30 日 下午 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 2021 年 5 月 30 日 下午 1: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  [开发者] 2021 年 5 月 30 日 下午 1:12 
引用自 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 2021 年 5 月 30 日 下午 1: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  [开发者] 2021 年 5 月 30 日 下午 2:05 
引用自 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 2021 年 5 月 31 日 上午 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 2021 年 5 月 31 日 上午 7:03 
Oh wow. The weather update is working abruptly
Nak  [开发者] 2021 年 5 月 31 日 上午 10:34 
引用自 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.
最后由 Nak 编辑于; 2021 年 5 月 31 日 上午 10:39
xstallm 2021 年 5 月 31 日 上午 11:47 
ok. but it really start works, idk why. It doesn't work before
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50