https://github.com/kulmanferdi/cliw
Weather app to request weather data from WeatherStack API
https://github.com/kulmanferdi/cliw
csharp weather-api
Last synced: 5 days ago
JSON representation
Weather app to request weather data from WeatherStack API
- Host: GitHub
- URL: https://github.com/kulmanferdi/cliw
- Owner: kulmanferdi
- License: mit
- Created: 2025-04-01T09:47:42.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2026-02-20T23:12:00.000Z (5 months ago)
- Last Synced: 2026-02-21T04:57:09.487Z (5 months ago)
- Topics: csharp, weather-api
- Language: C#
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CLIW
Console line interface weather app, fetching weather information from WeatherStack Free API.
## Requirements
- **DOTNET 9.0**: Usually comes with your IDE or you can install it manually.
[download](https://dotnet.microsoft.com/en-us/download)
- **NuGet packages**:
In order to run this project, you need to install the following packages.
``` zsh
dotnet add package DotNetEnv
dotnet add package Serilog.AspNetCore
dotnet add package Serilog.Sinks.Console
dotnet add package Microsoft.AspNetCore.Components
dotnet add package Microsoft.AspNetCore.Components.Web
dotnet add package Spectre.Console.Cli
dotnet add package RazorConsole.Core
```
## Environment
Create a **.env** file into **/your_project/bin/Debug/net9.0** folder. Then enter the lines below.
### API key
Register on [weatherstack.com](https://weatherstack.com/) to get your API key.
```env
API_KEY=your_api_key
```
### Base URL
Put the base url into the **.env** file.
```env
BASE_URL=https://api.weatherstack.com
```
### Default location
Be sure to define a default location in the .env file, which will be shown whenever an invalid location is provided.
```env
DEFAULT_LOCATION="Budapest, Hungary"
```
## Text output
We use the default location below, that's why we didn't enter anything.

## Razor output
To be implemented.
### Premium features
- Location lookup/autocomplete is available from the Standard subscription level.
- Forecast is only available for Professional Plan and higher tier subscriptions.
Check [pricing](https://weatherstack.com/pricing)
## Contribution
If you would like to contribute to the project, you can find the [documentation](https://weatherstack.com/documentation) here.