开发者 |
rainbowgeek
uwejacobs ccdzine |
---|---|
更新时间 | 2024年1月15日 04:22 |
捐献地址: | 去捐款 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.4 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Over 200,000 cities from 238 countries and territories. Every location on earth is also selectable via latitude/longitude.
Unlimited due to WordPress Custom Post Types.
OWM Weather has been fully translated into Chilean, French, German, Russian, Spanish, and Serbian. There are partial translations in Estonian, Italian, Hungarian, Hebrew, Polish, Danish, and Portuguese. Open Weather Map itself provides some of the data in most languages.
When creating your weather, choose "Imperial" for Fahrenheit or "Metric" for Celsius from the drop down list "Measurement system".
Simply enter text in the "Custom city title". If you leave it blank, the default title will correspond to the Open Weather Map "City" field.
Yes. Each weather can have a completely different setup and layout.
Open Weather Map (https://openwweathermap.com)
In WordPress admin, Settings menu, OWM Weather.
No.
Yes, using the default WordPress importer/exporter tool (free).
Yes, in Settings > OWM Weather > Import/Export/Reset tab.
Although many settings look alike, OWM Weather uses completely different weather pages and system settings so both can be activate at the same time.
OWM Weather will first try the HTML5 GeoLocation feature. Should the user decline to share the geolocation or the geo-location cannot be determined, the search will then consult KeyCDN's IP location finder. It maps the visitor's browser IP address to the geographic location and provides the latitude and longitude information. The HTML5 GeoLocation tends to be much more accurate than IP-based GeoLocation. Note regarding IP Location: A development environment uses usually a private network IP address that cannot be geolocated. You will end up with this error message: OWM Weather id '#####': OWM Error 400 (Nothing to geocode).In this case, please allow the HTML5 GeoLocation or use one of the other location options ( City Id, Longitude/Latitude, Zip/Country, or City/Country).
OWM Weather has to make several API calls to OpenWeather to retrieve the weather information. This retrieval runs in the background while the page is loading instead of blocking the whole page until the weather information is ready. It is the standard WordPress solution for displaying information that takes considerable time to compile. You can observe the same behavior on the WordPress Dashboard or Media Library. The Google Site Kit plugin is another example of this behavior. = What is "cURL error 28: Failed to connect to api.openweathermap.org port 443: Connection timed out"? This points to a connectivity issue between the server your domain is hosted and api.openweathermap.org. Please open a ticket with your hosting provider.
OpenWeather changed its API key permissions for new users. Up until September 2022, the free API key included the OneCall API 2.5 (Hourly forecast for 48 hours and daily forecast for 7 days). Since then, new users need to subscribe to OpenWeather's OneCall API 3.0. This API is free for the first 1,000 calls per day but requires an additional subscription with a valid credit card. The subscription can be limited to 1,000 calls to avoid credit card charges. OWM Weather does not call the API more than 48 times per shortcode per day with the standard caching time of 30 minutes. Without the subscription, the following OWM Weather data is not available anymore for new users: Hourly Forecast, Daily Forecast, Alerts, Moonrise/set, Dew Point, UV Index, and GTAG. Instead, OWM Weather fails with a "401 Invalid API Key" error message.