Weather Settings #3

Closed
opened 2023-07-16 09:12:23 -04:00 by WisteriaZy · 3 comments
WisteriaZy commented 2023-07-16 09:12:23 -04:00 (Migrated from github.com)

Have you searched the wiki and looked for existing issues for this?

  • This is not a common issue or cannot be fixed by the solutions provided
  • This issue has not been reported yet

What's happening

The weather settings in the wiki use Longitude, but the version I'm using is ZipCode and CountryCode, which I fill in as follows
ZipCode: '62900'
CountryCode: 'CHN'
But it tells me that I made a mistake. I don't know what I wrote wrong, maybe it doesn't support China zip code? I don't know, I'm not good at English, so I use DeepL to translate my question, I hope my query can be understood correctly.
The server is 1.19.4, Paper server side. rtw version is 1.2.0.

What's supposed to happen

It should get the weather information properly.

Server Software

Paper

Minecraft version

1.19.4

Server log

No response

RTW configuration

No response

Additional information

The contents of my configuration:
ZipCode: '62900'
CountryCode: 'CHN'
Log content:
[20:12:54] [Server thread/INFO]: [RealTimeWeather] Enabling RealTimeWeather v1.2.0*
[20:12:54] [Server thread/INFO]: [RealTimeWeather] Starting...
[20:12:56] [Server thread/ERROR]: [RealTimeWeather] Error when getting weather information: Zip/Country code incorrect
[20:12:56] [Server thread/ERROR]: [RealTimeWeather] Please check that the values set in the config file are correct
[20:12:56] [Server thread/ERROR]: [RealTimeWeather] Disabling weather sync...
[20:12:56] [Server thread/INFO]: [RealTimeWeather] Started!

### Have you searched the wiki and looked for existing issues for this? - [x] This is not a common issue or cannot be fixed by the solutions provided - [X] This issue has not been reported yet ### What's happening The weather settings in the wiki use Longitude, but the version I'm using is ZipCode and CountryCode, which I fill in as follows ZipCode: '62900' CountryCode: 'CHN' But it tells me that I made a mistake. I don't know what I wrote wrong, maybe it doesn't support China zip code? I don't know, I'm not good at English, so I use DeepL to translate my question, I hope my query can be understood correctly. The server is 1.19.4, Paper server side. rtw version is 1.2.0. ### What's supposed to happen It should get the weather information properly. ### Server Software Paper ### Minecraft version 1.19.4 ### Server log _No response_ ### RTW configuration _No response_ ### Additional information The contents of my configuration: ZipCode: '62900' CountryCode: 'CHN' Log content: [20:12:54] [Server thread/INFO]: [RealTimeWeather] Enabling RealTimeWeather v1.2.0* [20:12:54] [Server thread/INFO]: [RealTimeWeather] Starting... [20:12:56] [Server thread/ERROR]: [RealTimeWeather] Error when getting weather information: Zip/Country code incorrect [20:12:56] [Server thread/ERROR]: [RealTimeWeather] Please check that the values set in the config file are correct [20:12:56] [Server thread/ERROR]: [RealTimeWeather] Disabling weather sync... [20:12:56] [Server thread/INFO]: [RealTimeWeather] Started!
Jack1424 commented 2023-07-25 15:25:28 -04:00 (Migrated from github.com)

It looks like you're using the Alpha-3 country code. RealTimeWeather only supports Alpha-2 country codes. For example, the Alpha-2 code for China is CN. Replace CHN with CN in your configuration and see if that fixes the problem.

It looks like you're using the Alpha-3 country code. RealTimeWeather only supports Alpha-2 country codes. For example, the Alpha-2 code for China is `CN`. Replace `CHN` with `CN` in your configuration and see if that fixes the problem.
qing762 commented 2023-08-25 04:17:02 -04:00 (Migrated from github.com)

Replace

ZipCode: '62900'
CountryCode: 'CHN'

to

Latitude: 'YOUR COUNTRY LATITUDE'
Longitude: 'YOUR COUNTRY LONGITUDE'

Works well for me! :)

Replace ``` ZipCode: '62900' CountryCode: 'CHN' ``` to ``` Latitude: 'YOUR COUNTRY LATITUDE' Longitude: 'YOUR COUNTRY LONGITUDE' ``` Works well for me! :)
Jack1424 commented 2024-06-28 17:57:48 -04:00 (Migrated from github.com)

Update RealTimeWeather to the latest version, and make sure that you delete the old configuration file (config.yml) so the updated one can be generated.

Update RealTimeWeather to the latest version, and make sure that you delete the old configuration file (`config.yml`) so the updated one can be generated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: minster586/RealTimeWeather#3
No description provided.