Console Weather App With Kotlin

Overview

ConsoleWeatherApp

Описание

Данный сервис позволяет получить текущее состояние погоды в выбранном городе.

Использование

Сервис может быть запущен со следующими параметрами:

Options:
  -w, --wind                       Вывод информации о ветре
  -t, --temp                       Вывод дополнительной информациии о температуре
  -a, --api TEXT                   Сменить API ключ на заданный
  -u, --unit [IMPERIAL|METRIC|STANDARD]
                                   Сменить единицу измерения температуры
  -h, --help                       Вывод сообщения со всеми возможными параметрыми

Единицы измерения температуры можно интерпретировать следующим образом:

  • IMPERIAL - Фаренгейт
  • METRIC - Цельсий
  • STANDARD - Кельвин

После того как пользователь запустил сервис с различными параметрами, он может начать с ним работать. Для этого ему следует ввести название любого города. Если городов несколько, то их требуется вводить через ",".

Пример запуска сервиса:

-u standard -w

Пример пользовательского ввода и результата:

user input: Москва
Москва
---------Общая информация---------
Широта: 37.6156
Долгота: 55.7522
Температура: 275.06 K
Погода: небольшой дождь
--------Информация о ветре--------
Скорость ветра: 2.12 м/c
Направление ветра: Западный
----------------------------------

user input: НеГород, Нижневартовск
Такой город не найден: НеГород

Нижневартовск
---------Общая информация---------
Широта: 76.5531
Долгота: 60.9344
Температура: 268.16 K
Погода: небольшой снег
--------Информация о ветре--------
Скорость ветра: 3.0 м/c
Направление ветра: Юго-Западный
----------------------------------

Docker

Собрать образ:

docker build -t [image_name] https://github.com/dVede/ConsoleWeatherApp.git

Запустить контейнер:

docker run [image_name] [OPTIONS]
You might also like...
Clean Android multi-module offline-first scalable app in 2022. Including Jetpack Compose, MVI, Kotlin coroutines/Flow, Kotlin serialization, Hilt and Room.

Android Kotlin starter project - 2022 edition Android starter project, described precisely in this article. Purpose To show good practices using Kotli

Repo: Programming problems with solutions in Kotlin to help avid Kotlin learners to get a strong hold on Kotlin programming.

Kotlin_practice_problems Repo: Programming problems with solutions in Kotlin to help avid Kotlin learners to get a strong hold on Kotlin programming.

Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP)

Mockative Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP). Installation Mockative uses KSP to generate

Kotlin-oop - Repositório criado para ser utilizado pelo projeto de Kotlin OOP desenvolvido em Kotlin nas aulas feitas através da plataforma Alura.

Projeto React OOP Repositório criado para ser utilizado pelo projeto de Kotlin OOP desenvolvido em Kotlin nas aulas feitas através da plataforma Alura

Kotlin-koans - Kotlin Koans are a series of exercises to get you familiar with the Kotlin Syntax

kotlin-koans-edu Kotlin Koans are a series of exercises to get you familiar with

This is a practice app. An app that you can find random recipes and choose the ones you like.
This is a practice app. An app that you can find random recipes and choose the ones you like.

A food suggestion app like Tinder This is a practice app. In this app, you can find random recipes and choose the ones you like. This is main menu. Yo

To help to promote your android app by prompting users to rate your app in a bottom Sheet.

RateBottomSheet This an Android library to help to promote your Android App by prompting users to rate your app in the Google Play Store with a materi

New style for app design Online Sunglasses Shop App UI made in Jetpack Compose.😉😎
New style for app design Online Sunglasses Shop App UI made in Jetpack Compose.😉😎

JetSunglassUI-Android New style for app design Online Sunglasses Shop App UI made in Jetpack Compose. 😉 😎 (Navigation Components, Dagger-Hilt, Mater

Relationship-app-android - An app with features aimed towards me and my girlfriend

RelationshipApp Android An Android app with features aimed towards me and my gir

Comments
  • Looping the program

    Looping the program

    Enter cities not as arguments, but as text while the program is running. This approach will solve the problem using quotation marks (a good demonstration of the docker's work)

    enhancement 
    opened by dVede 0
Owner
Danil Medvedev
Danil Medvedev
Kotter - aims to be a relatively thin, declarative, Kotlin-idiomatic API that provides useful functionality for writing delightful console applications.

Kotter (a KOTlin TERminal library) aims to be a relatively thin, declarative, Kotlin-idiomatic API that provides useful functionality for writing delightful console applications.

Varabyte 348 Dec 21, 2022
A Weather App Using Kotlin And openweathermap

Code95 Android Task - Weather app Requirements Create a simple mobile application that: Utilize a weather API (http://openweathermap.org/API for examp

Ali Al Fayed 13 Oct 29, 2022
Weather application built with kotlin

Weather App - Android Technical Task ?? Video Demo for this task on youtube ?? Weather application Created android screen that has search bar on top.

Mostafa Anter 5 May 17, 2022
Koltin Multplatform Project that interacts with a GraphQL server to display golf scores, player and weather information.

GolfScoresKMM Koltin Multplatform Project that interacts with a GraphQL server to display golf scores, player and weather information. The app is setu

Mohit 15 Oct 21, 2022
A sample skeleton backend app built using Spring Boot kotlin, Expedia Kotlin Graphql, Reactive Web that can be deployed to Google App Engine Flexible environmennt

spring-kotlin-gql-gae This is a sample skeleton of a backend app that was built using: Spring Boot(Kotlin) Reactive Web Sprinng Data R2DBC with MYSQL

Dario Mungoi 7 Sep 17, 2022
These files are included in an Android Studio Project for a Magic the Gathering Life Counter app. The app was written in Kotlin.

Magic-Life-Counter These files were created in Android Studio using Kotlin. Usage This app was made to keep track of life totals while playing the tra

null 0 Dec 24, 2021
Tictactoe-android-app - Simple TicTacToe Android app written in Kotlin

TicTacToe Android App This is a simple example of TicTacToe game as Android app

Blaž Čerpnjak 1 Jul 9, 2022