Code Monkey home page Code Monkey logo

openweathermapkit's Introduction

Hi there ๐Ÿ‘‹ I'm Anver

My name is Anver, nice to e-meet you! ๐Ÿค

  • โœ๏ธ Iโ€™m currently writing technical articles for my personal website
  • ๐ŸŽฅ I'm currently shooting videos for my side project
  • โ˜๏ธ Iโ€™m currently working as a cloud software engineer
  • ๐Ÿ‡ฌ๐Ÿ‡ง I speak fluent English and ideal Russian ๐Ÿ‡ท๐Ÿ‡บ

My CV: Anver Bogatov.pdf

๐Ÿ›  My fancy badge area

java spring spring-security hibernate gradle postgres mysql redis mongodb aws k8s terraform html hugo javascript nodejs css jwt docker swagger git github prometheus GitLab CI kafka ElasticSearch iTerm

๐Ÿค Connect with me

linkedin mail vk


stats

openweathermapkit's People

Contributors

anverbogatov avatar dekan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openweathermapkit's Issues

GetCurrentWeather Decoding Error

Optional(Swift.DecodingError.keyNotFound(CodingKeys(stringValue: "deg", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "wind", intValue: nil)], debugDescription: "No value associated with key CodingKeys(stringValue: "deg", intValue: nil) ("deg").", underlyingError: nil)))

This error happens only sometimes and i cant figure out where it really happens.

Apple Watch

Hi any dates for releasing apple watch app yet?

Many thanks

use 'addingPercentEncoding' before calling in 'get<T : Codable>[....]'

Hi,
When the city name has a blank space, the URL() call fails, and get returns without calling OpenWeatherMap API. Therefore, in

internal func get<T : Codable>(from url: String, callback: @escaping (T?, Error?) -> ())

instead of:

        guard  let serviceUrl = URL(string:url) else {
            return
        }

You could add something along the lines:

        guard let encoded = url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed), let serviceUrl = URL(string:encoded) else {
            callback(nil, NSError(domain: "OpenWeatherMap.NetworkManager", code: -1, userInfo: [NSLocalizedDescriptionKey:"Could not encode \(url)"]))
            return
        }

thanks!

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.