Git Product home page Git Product logo

weatherreport's Introduction

Overview

The Weather Report project consists of a .NET-based API. The API provides weather information based on place, date, and hour. It also offers statistics on the weather of the month or the year. It retrieves data from WeatherAPI: https://www.weatherapi.com.

Getting Started

Prerequisites

.NET Core 3.1 or later Windows 10/11 or a compatible OS

Installation

API Setup:

  1. Navigate to the API project directory.
  2. Remember to change the key of WeatherAPI in appsettings.json in order to use a good one to connect to WeatherAPI.
  3. Run dotnet build to compile the project.
  4. Run dotnet run to start the API (optional, as the cmdlet can also do this).

Usage

Start the API: Execute dotnet run within the API project directory.

API Reference

Endpoints

/WeatherApi/GetWeather:

GET: Retrieves weather information. Parameters: placeName: Name of the place. date: Date in YYYY-MM-DD format. hour: Hour of the day (0-23). Responses The API returns JSON data with weather information.

/WeatherApi/GetMediumMonthWeather:

GET: Retrieves average weather of the month information. Parameters: placeName: Name of the place. date: Date in YYYY-MM format. Responses The API returns JSON data with average monthly weather information.

/WeatherApi/GetMediumYearWeather:

GET: Retrieves average weather of the year information. Parameters: placeName: Name of the place. date: Date in YYYY format. Responses The API returns JSON data with average yearly weather information.

Development

API Development Built with .NET Core 3.1. Follows RESTful principles.

weatherreport's People

Contributors

sferratore avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.