You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more example code and instructions on how to use this library, please take
72
-
a look into the `Examples` folder. Make sure to get an API Key from
73
-
http://home.openweathermap.org/ and put it into `Examples/ApiKey.ini`.
74
-
75
-
-`CurrentWeather.php` shows how to receive the current weather.
76
-
-`WeatherForecast.php` shows how to receive weather forecasts.
77
-
-`UVIndex.php` shows how to receive uv index data.
78
-
-`AirPollution.php` show how to receive air pollution data.
19
+
You can find the latest documentation, including installation and usage instructions at https://cmfcmf.github.io/OpenWeatherMap-PHP-API.
79
20
80
21
Contributing
81
22
============
82
-
I'm happy about every **pull request** or **issue** you find and open to help
83
-
make this API **more awesome**.
23
+
I'm happy about every **pull request** you open and **issue** you find to help make this API **more awesome**. Please note that it might sometimes take me a while to get back to you. Feel free to ping me if I don't respond.
84
24
85
25
## Vagrant
86
26
@@ -105,13 +45,26 @@ And then execute an example:
105
45
106
46
> php Examples/CurrentWeather.php
107
47
48
+
## Documentation
49
+
50
+
The documentation is built using [Docusuaurs v2](https://v2.docusaurus.io/).
51
+
To run a local developnment server for the docs, execute
52
+
53
+
```bash
54
+
cd docs
55
+
yarn install
56
+
yarn start
57
+
```
108
58
109
59
License
110
60
=======
111
-
MIT — Please see the [LICENSE file](https://github.com/Cmfcmf/OpenWeatherMap-PHP-Api/blob/master/LICENSE)
61
+
62
+
This project is licensed under the MIT license.
63
+
Please see the [LICENSE file](https://github.com/Cmfcmf/OpenWeatherMap-PHP-Api/blob/master/LICENSE)
112
64
distributed with this source code for further information regarding copyright and licensing.
113
65
114
-
**Please check out the following official links to read about the terms, pricing
115
-
and license of OpenWeatherMap before using the service:**
66
+
Be aware that the OpenWeatherMap data is **not licensed under the MIT**.
67
+
**Check out the following official links to read about the terms, pricing and license of OpenWeatherMap before using their service:**
All requests require a free API key (sometimes called "APPID") from OpenWeaterMap.
6
+
To retrieve your API key, [sign up for an OpenWeatherMap account](https://home.openweathermap.org/users/sign_up).
7
+
8
+
After you received your API key, **it might take a ["couple of hours"](https://openweathermap.org/appid) for it to be activated! Other users [reported](https://github.com/cmfcmf/OpenWeatherMap-PHP-API/issues/46) that it took about 10 minutes** until the API key worked.
9
+
10
+
Please also take note of the license OpenWeatherMap provides the data under. At the time of
11
+
writing, all data is licensed under the **CC BY-SA 4.0**, even for paid accounts. However,
12
+
remember that this project is not affiliated with OpenWeatherMap, this information may be
13
+
outdated and I can't give you legal advice. Make sure to check on the terms and conditions
14
+
yourself:
15
+
16
+
-https://openweathermap.org/terms
17
+
-https://openweathermap.org/price
18
+
19
+
*If something with your API key or account does not work as expected,
0 commit comments