Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sahilm8/weather_proxy_svc
A proxy serivce returning weather data from Open-Meteo.
https://github.com/sahilm8/weather_proxy_svc
java spring
Last synced: 6 days ago
JSON representation
A proxy serivce returning weather data from Open-Meteo.
- Host: GitHub
- URL: https://github.com/sahilm8/weather_proxy_svc
- Owner: sahilm8
- Created: 2024-08-13T22:25:37.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-02T13:26:47.000Z (about 2 months ago)
- Last Synced: 2024-11-11T15:08:14.431Z (6 days ago)
- Topics: java, spring
- Language: Java
- Homepage: https://github.com/sahilm8/spring_rest_svc
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather Proxy Service
![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white) ![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge&logo=spring&logoColor=white)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
A proxy serivce returning weather data from [Open-Meteo](https://open-meteo.com).
## Usage
By default, the service starts on port 3000. The API endpoint `/v1/weather_proxy` accepts GET requests with the following parameters:
- String latitude (required)
- String longitude (required)
- boolean temperature (optional)
- boolean relativeHumidity (optional)
- boolean percipitation (optional)
- boolean windSpeed (optional)
- boolean feelsLike (optional)
- boolean isDay (optional)
- boolean rain (optional)
- boolean showers (optional)
- boolean snow (optional)
- boolean weatherCode (optional)
- boolean cloudCover (optional)
- boolean pressure (optional)
- boolean surfacePressure (optional)
- boolean windDirection (optional)
- boolean windGusts (optional)```
curl "http://localhost:3000/v1/weather_proxy?latitude=51.5085&longitude=-0.1257&temperature=true&relativeHumidity=true&precipitation=true&windSpeed=true&feelsLike=true&isDay=true&rain=true&showers=true&snow=true&weatherCode=true&cloudCover=true&pressure=true&surfacePressure=true&windDirection=true&windGusts=true"
```## Stack
- Java 21
- Spring Boot