jason0x43 / alfred-weather

Get weather forecast using Alfred
MIT License
157 stars 20 forks source link

OVER_QUERY_LIMIT error #8

Open azuryst opened 6 years ago

azuryst commented 6 years ago

I have set a Dark Sky API in options, but I receive the error OVER_QUERY_LIMIT when I type anything into the "Default Location" entry. I haven't made any calls yet of the 1000/day allowed by Dark Sky's free API.

osopolar commented 6 years ago

I have the same problem. Any workarounds?

VirenMohindra commented 6 years ago

Default location gets generated from Google Maps, not through Dark Sky. Look at file geo.go

The problem was that Google Maps now requires an API key to perform calls -- this is what was tripping the OVER_QUERY_LIMIT error.

See: https://maps.googleapis.com/maps/api/geocode/json?address=1600

{
 "error_message" : "You have exceeded your rate-limit for this API.
We recommend registering for a key at the Google Developers Console:
https://console.developers.google.com/apis/credentials
 project=_",
 "results" : [],
 "status" : "OVER_QUERY_LIMIT"
}

I've added that option to plug in the key through the wtr options menu, I hope it works.

Not sure if this project is being maintained though.

azuryst commented 6 years ago

@VirenMohindra Is it working for you now? would you mind sending your new build?

mikedvzo commented 6 years ago

I have the same problem and wonder if someone has modified the code to allow for a Google maps API

jeffbyrnes commented 7 months ago

As the Dark Sky API is no more, this issue is no longer relevant & can be closed.