adba / openweathermapapi Goto Github PK
View Code? Open in Web Editor NEWiOS api classes for openweathermap.org
License: MIT License
iOS api classes for openweathermap.org
License: MIT License
Hi, I try to install this api by cocoa pod, but it doesn't work, the terminal shows me some requirement. I don't know what is that mean. Is there any other way to use this api? Thanks a lot!
Need to change ,lng to &lon
NSString *method = [NSString stringWithFormat:@"/weather?lat=%f,lng=%f",
coordinate.latitude, coordinate.longitude ];
TO:
NSString *method = [NSString stringWithFormat:@"/weather?lat=%f&lon=%f",
coordinate.latitude, coordinate.longitude ];
Hi,
Is it possible to get a date for a daily forecast? When getting a daily forecast I get all the temperatures etc, but how can I know what day is it for , it doesn't return any dates.
Any solution?
Thanks!
Hi,
Is there any reason why the block method is never called when I create a request?
I do it in two viewControllers, the first one and then in another one. It works in the first one but in the second one the block code never gets called. Is there some kind of a issue and I have to call it differently?
Thanks, Kristers.
In the latest versions of iOS, apple block http queries since they are insecure, unless temporarily whitelisted. Would it be possible to update the framework to use HTTPS so we don't have to use that workaround (which will soon be completely banned I believe)?
Nice work! Good to have the ability to pass in the lang parameter or better have it get the default language from the device and add it to the API request, if it is a supported language.
To get preferred:
NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];
Current supported:
English - en, Russian - ru, Italian - it, Spanish - sp, Ukrainian - ua, German - de, Portuguese - pt, Romanian - ro, Polish - pl, Finnish - fi, Dutch - nl, French - fr, Bulgarian - bg, Swedish - se, Chinese Traditional - zh_tw, Chinese Simplified - zh_cn, Turkish - tr
Thanks,
Tim
Thanks for open sourcing the OpenWeatherMapAPI and as a side note for guest
"The API in its current state is very unreliable (pressure values are way off, inconsitent API and return objects) and doesnt appear to be maintained properly.
I thusly suggest you go open source. OpenWeatherMap.org sounds like it is open source but in reality it is not. By going open source others (like me) could help tidying stuff up and making it more reliable."
Please add
...
callMethod:withCallback:
...
-- to the public interface, so that new commands and request parameters can be added cleanly via subclassing.
Do have a total list of all city name and its cityid from openWeatherMapAPI?
Please update code to support AFNetworking 2.0.1
Currently I found that the method that returns a daily forecast for up to 14 days just displays the description of the weather i general on that day like: "Clear" or "Sunny"....
While logging I found that temperature for that day is given in the xml but for some reason isn't given to us to be able to use it maybe it's my code I don't know... If you are wondering how I'm using the code just tell me and I can post it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.