https://github.com/macbrayne/weathersync
https://github.com/macbrayne/weathersync
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/macbrayne/weathersync
- Owner: macbrayne
- License: eupl-1.2
- Created: 2023-12-25T16:40:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-18T11:31:21.000Z (over 2 years ago)
- Last Synced: 2024-05-01T16:25:30.264Z (about 2 years ago)
- Language: Java
- Size: 42.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Weather Sync
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 `: Sets the location the mod queries to the city you provide (default: Berlin)
- `/weathersync location set custom `: 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 reset` (OP level 2 required): Resets the 30-minute timer which aims to prevent excessive API requests
- `/weathersync timer get` (OP level 2 required): Sends you the time left in minutes until the next global weather sync is allowed
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](https://open-meteo.com/)
GeoIP by [DB-IP](https://db-ip.com/)
## License
This mod is licensed under [EUPL-1.2](LICENSE)