Comments (6)
Hi @zkimi,
please provide a reproducible code snippet of how you call the library. Did you follow the Getting Started section?
Note that you should not edit the OpenWeatherMap.php
file but rather set your API key in the constructor parameter as can be seen in the example in the Usage section.
from openweathermap-php-api.
Hi thanks for your answer, yes I followed the Getting Started section.
Here's the file I made.
I put my API key where I wrote "MY API KEY IS HERE" and removed it in OpenWeatherMap.php and error is still here.
Thank you.
from openweathermap-php-api.
Thank you for your clarification 👍
I'm afraid I can't reproduce the issue, it works for me.
Does calling
https://api.openweathermap.org/data/2.5/weather?q=Berlin&APPID=XXXXXXXXXXXXXXXXXXXXXXXX
with the X's replaced by your API key produce a result?
from openweathermap-php-api.
Yes I do have a result, that's really weird...
from openweathermap-php-api.
Ahh, maybe that's because the daily forecast API is not available for free API keys: https://openweathermap.org/price. You will have to use the getWeatherForecast
API to retrieve 3-hourly forecasts instead, I suppose.
I didn't notice that initially, because the API key I use for testing does not seem to have this limitation for some reason.
from openweathermap-php-api.
Okay, thanks.
So how do I have the daily forecast for the next 3 days? I have to pay? :(
Thought it was free...
from openweathermap-php-api.
Related Issues (20)
- Zip Code? HOT 4
- Dealing with Internal error: 500001
- getRawWeatherGroupData() HOT 3
- OpenWeatherMap Class Not Found Error (NOT Installed through Composer) HOT 3
- GuzzleAdapter and Requestfactory excessive HOT 1
- getValue() error HOT 7
- OWMNotFoundException never thrown
- Please add getForecast() method on WeatherForecast HOT 2
- Missing dependency psr/http-factory
- Move to Travis CI dot com or another CI service
- Add historic weather data HOT 1
- No method for One Call API HOT 4
- update to psr/cache to 3.0 ? HOT 1
- Return type of Cmfcmf\OpenWeatherMap\Util\Unit::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used HOT 1
- "Docusaurus" is spelled wrong in README.md HOT 1
- Replace UV Index API with One Call API
- typo HOT 1
- Convert Hourly Forecast into Daily Forecast
- Migrate to /guzzle7-adapter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openweathermap-php-api.