Skip to content

Commit

Permalink
#187 Cycle OWM key
Browse files Browse the repository at this point in the history
  • Loading branch information
warmsound committed Mar 24, 2021
1 parent dcf0d69 commit a3a65d5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion source/BackgroundService.mc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,22 @@ class BackgroundService extends Sys.ServiceDelegate {
{
"lat" => App.getApp().getProperty("LastLocationLat"),
"lon" => App.getApp().getProperty("LastLocationLng"),
"appid" => "d72271af214d870eb94fe8f9af450db4",

// Polite request from Vince, developer of the Crystal Watch Face:
//
// Please do not abuse this API key, or else I will be forced to make thousands of users of Crystal
// sign up for their own Open Weather Map free account, and enter their key in settings - a much worse
// user experience for everyone.
//
// Crystal has been registered with OWM on the Open Source Plan, which lifts usage limits for free, so
// that everyone benefits. However, these lifted limits only apply to the Current Weather API, and *not*
// the One Call API. Usage of this key for the One Call API risks blocking the key for everyone.
//
// If you intend to use this key in your own app, especially for the One Call API, please create your own
// OWM account, and own key. You should be able to apply for the Open Source Plan to benefit from the same
// lifted limits as Crystal. Thank you.
"appid" => "2651f49cb20de925fc57590709b86ce6",

"units" => "metric" // Celcius.
},
method(:onReceiveOpenWeatherMapCurrent)
Expand Down

0 comments on commit a3a65d5

Please sign in to comment.