dmitry-ivanov / dark-sky-api Goto Github PK
View Code? Open in Web Editor NEWPHP Library for the Dark Sky API.
License: MIT License
PHP Library for the Dark Sky API.
License: MIT License
Hey! :)
I got a problem using the library, my PHP locale information was set to fr_FR
, and it's making the round()
function replace the lat and lng dots with commas. That leads to broke the featured request with a 400 Poorly formatted request :
https://api.darksky.net/forecast/[KEY]/45,509,-73,588
Using the number_format function can fix this problem.
$latitude = number_format(round($parameters->getLatitude(), 3), 3);
$longitude = number_format(round($parameters->getLongitude(), 3), 3);
This is located in src/Http/Request/UrlGenerator.php
.
setlocale(LC_NUMERIC, 'fr_FR');
before execute the forecast
function.
Hi,
Sorry, I am not familiar with namespaces, normally use includes, but it does not matter what I do, I cannot get your class to work with our api key, can you help?
I want stand alone, could you suggest the correct folder structure to store, and how to call it?
Really really appreciated as your class looks the best type.
Regards
Rob
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.