TorontoWeatherA3287 1.0.0
dotnet add package TorontoWeatherA3287 --version 1.0.0
NuGet\Install-Package TorontoWeatherA3287 -Version 1.0.0
<PackageReference Include="TorontoWeatherA3287" Version="1.0.0" />
paket add TorontoWeatherA3287 --version 1.0.0
#r "nuget: TorontoWeatherA3287, 1.0.0"
// Install TorontoWeatherA3287 as a Cake Addin #addin nuget:?package=TorontoWeatherA3287&version=1.0.0 // Install TorontoWeatherA3287 as a Cake Tool #tool nuget:?package=TorontoWeatherA3287&version=1.0.0
Toronto Weather App
Toronto Weather App is a simple weather forecasting application built using .NET and C#. The app provides weather data such as daily temperature forecasts for Toronto.
Features
- Daily Forecasts: View maximum temperature for the next several days.
- Real-Time Data: Fetch weather data for Toronto.
- Simple Interface: Easy-to-use for quick weather updates.
Installation
Before using the WeatherService class, ensure that your project includes the necessary dependencies. Install Newtonsoft.Json via NuGet: dotnet add package Newtonsoft.Json
You can install the TorontoWeatherA3287
package from NuGet: dotnet add package TorontoWeatherA3287 --version 1.0.0
Alternatively, you can download the source and build it locally.
- Clone the repository.
- Open the project in Visual Studio or your preferred IDE.
- Build and run the project.
Usage
To use the TorontoWeatherApp
in your application, you can access the WeatherService
to fetch weather data for Toronto.
Example Code:
var weatherService = new WeatherService();
var weatherData = await weatherService.GetWeatherAsync();
Console.WriteLine($"Today's max temperature: {weatherData.MaxTemperature}°C");
## URL to fetch data:
https://api.open-meteo.com/v1/forecast?latitude=43.7&longitude=-79.42&daily=temperature_2m_max&timezone=America%2FToronto
Contributing
Feel free to fork the repository and submit pull requests for improvements or bug fixes. If you have any suggestions or issues, open an issue on the GitHub repository.
Authors
DeepPravinbhaiPrajapati: Creator and maintainer of the Toronto Weather App.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
This project was inspired by the need to access weather forecasts programmatically.
Special thanks to the open-source community for their continuous support and tools.
OUTPUT:
Toronto Weather
2024-11-10 (Sunday): 12.2 °C
2024-11-11 (Monday): 11.3 °C
2024-11-12 (Tuesday): 6.7 °C
2024-11-13 (Wednesday): 7.5 °C
2024-11-14 (Thursday): 7.8 °C
2024-11-15 (Friday): 10.7 °C
2024-11-16 (Saturday): 9.6 °C
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
- TorontoWeatherSir (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 110 | 11/10/2024 |