Skip to content

Commit c3ce8e8

Browse files
committed
Add Fixes for Here and OpenWeatherMap
1 parent 4bdbc35 commit c3ce8e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

includes/weather/class-weather-provider-here.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Weather_Provider_HERE extends Weather_Provider {
2323
public function __construct( $args = array() ) {
2424
$this->name = __( 'HERE', 'simple-location' );
2525
$this->url = 'https://developer.here.com/';
26-
$this->description = __( 'HERE offers a free limited plan for up to 2500 weather transactions per month. Historical data not available.', 'simple-location' );
26+
$this->description = __( 'HERE offers a freemium plan which requires a credit card to sign up but offers a generous amount of free queries. Historical data not available.', 'simple-location' );
2727
$this->slug = 'here';
2828
if ( ! isset( $args['api'] ) ) {
2929
$args['api'] = get_option( 'sloc_here_api' );

includes/weather/class-weather-provider-openweathermap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct( $args = array() ) {
2323
$this->name = __( 'OpenWeatherMap', 'simple-location' );
2424
$this->slug = 'openweathermap';
2525
$this->url = 'https://openweathermap.org';
26-
$this->description = __( 'Free account offers 1 millions calls per month, requires an API key', 'simple-location' );
26+
$this->description = __( 'Free account offers 1000 calls per day, requires an API key and credit card for overage', 'simple-location' );
2727
if ( ! isset( $args['api'] ) ) {
2828
$args['api'] = get_option( 'sloc_openweathermap_api' );
2929
}
@@ -90,7 +90,7 @@ public function get_conditions( $time = null ) {
9090
return $conditions;
9191
}
9292

93-
$url = 'https://api.openweathermap.org/data/2.5/onecall?';
93+
$url = 'https://api.openweathermap.org/data/3.0/onecall?';
9494
$data['lat'] = $this->latitude;
9595
$data['lon'] = $this->longitude;
9696
$url = add_query_arg( $data, $url );

0 commit comments

Comments
 (0)