Перейти к содержимому
Mineforgian

WeatherSync

Server-side mod to sync peoples' weather to the real world!

Загрузки
4K
Подписчики
28
Обновлён
18 января 2024 г.
Лицензия
EUPL-1.2

Опубликован 31 декабря 2023 г.

Weather Sync

Side: Server-Side License

Syncs your weather with the real world!

How it works

It queries the OpenMeteo API to find out the weather at different locations :) You can either provide a city name, latitude and longitude or let the mod geolocate you using your IP address.

Configuration

This mod provides a bunch of in-game commands:

  • /weathersync enable: Enables the mod for you
  • /weathersync disable: Disables the mod for you
  • /weathersync location set auto: Geolocates your IP and sets the location the mod queries to your city's coordinates
  • /weathersync location set city <name>: Sets the location the mod queries to the city you provide (default: Berlin)
  • /weathersync location set custom <latitude> <longitude>: Sets the location the mod queries to the latitude and longitude you provide
  • /weathersync location get: Sends you the location the mod queries
  • /weathersync sync: Forces the game to send you your stored weather
  • /weathersync timer get: Sends you the time left in minutes until the next global weather sync is performed

You can change the API base URL using the weathersync.api-backend Java system property. The default value is https://api.open-meteo.com/v1/dwd-icon.

Please open an issue if the weather doesn't properly sync and you don't get the weather described in the message to you

Credits

Weather data by OpenMeteo GeoIP by DB-IP

License

This mod is licensed under EUPL-1.2

Ченджлог

0.4Релиз1.20.4 · 18 января 2024 г.
  • Move updating logic from only running when the weather changes to a tick based timer
  • Remove /weathersync timer reset
  • Lower permission level for /weathersync quota get
0.3.2-modfestРелиз1.20.4 · 16 января 2024 г.

Change backend Add fallback backend

0.3.1Релиз1.20.4 · 8 января 2024 г.

Now actually includes the dependencies GeoIP requires Added GeoIP self-test on startup

0.3Релиз1.20.4 · 5 января 2024 г.
  • Fix /weathersync location set custom not working correctly
  • Count API calls to not go over the 10 thousand daily calls and stop syncing individual player's weather after that
  • Always request weather after setting custom coordinates
  • Add /weathersync quota get command to lookup current api quota
0.2.1Релиз1.20.4 · 2 января 2024 г.

Fix error when running /weathersync location set custom Fix wrong order of feedback when setting weather to a city Fix Fabric metadata

0.2Релиз1.20.4 · 31 декабря 2023 г.
  • Now defaults to not geolocating users when they first enable the mod
  • Added city presets
  • Added geolocation on request
0.1Релиз1.20.4 · 31 декабря 2023 г.

Initial release

Комментарии

Загружаем…