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!
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.
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! :)
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Have you searched the wiki and looked for existing issues for this?
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!
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. ReplaceCHNwithCNin your configuration and see if that fixes the problem.Replace
to
Works well for me! :)
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.