-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weather update failing (late July 2022, number 2) due to location look up error (locationIQ) #57
Comments
Actual logs (for https://github.com/mattrossman/forecaswatch2/releases/tag/v1.19.0) below:
line 417 is the console.log line
|
I swear, these API issues always pop up during the few days that I'm not wearing my pebble. Thanks for bringing it to my attention. I'd be fine with switching to another reverse geocoding API. I don't actually remember how I set up the LocationIQ stuff -- if I registered for an API key then I no longer have access to the account's email address. Any suggestions on alternatives? I'll need to do some research to see what other options are out there, it would need to be something with a generous free tier. I'd also like to make it save the coordinates returned by the lookup API rather than running the query every time -- one less point of failure since that output isn't really expected to change. |
Sadly I do not have alternative suggestions, I've not really dug in to this yet. 👍 on the caching. What's interesting about my use case is that I had hard coded in lat and long values for the override, I'm not going to be able to look into this in more detail for a while though. I will try and get a PR for extra tracing at some point (that would have helped reduce time exploring the js code with this issue and the issue I'm seeing with the other two providers). As always, thanks for the watchface! I hope you are having a great summer! |
Heh yeah I was lazy and just forwarded everything to the locationIQ API since it's pretty flexible with the query format. I like your idea of using a regex to detect a valid lat/long input and skip the lookup. |
https://github.com/clach04/pebble-forecaswatch2-fcsw2-fcw2/tree/js_log_rest_calls contains quick and dirty log all URL requests. Seeing this:
Which now matches what I see in the web browser (the rate limit from this morning is replaced with the above. |
Is there a workaround for us non-coders to get the API up and working? I would be so grateful for any ideas, as I've really become dependent on this watchface. |
@PowerScissor Yes, see the top description. Remove location and rely on GPS using the openweathermap provider. A coding solution is possible but will be a while. |
My options are weather underground & dark sky. I always use GPS. I'm going to assume the watch app version that was installed through the Rebble app store is outdated / not updated there is why I don't see any openweather option. I'll research how to install the most current version watch app from here and see if that gives me the working options. Thanks. Update: I installed v 1.19, and did get the open weather option. It also fails to work regardless of using GPS or not. Just an FYI if anyone else is interested in the info...not expecting a response. |
@PowerScissor I opened #60 |
Doh! Not sure if it helps, but it works for me (with a GPS location in the US). The other providers do not (hence opening #60), however those providers are relatively easy to fix. |
I tested last night with a new locationIQ key and it works fine. Quickest option would be for you to register a new key and use that. Longer term, maybe prompt the user for a key as part of config? |
I'll include a new locationiq key in the next release, thanks |
EDITED
Workaround
That then allows openweathermap to work for me. Both Underground and Darksky appear to get stuck on callback (using web browser or curl on same URL that's used in code works fine). From quick scan of code, adding error handling for bad results with a console.log() may reveal more information.
Original report:
Not related to #56
Related to #41 - similar but different
reverse geocoding location call to https://us1.locationiq.com/ is returning:
Previously
This then kills weather updates :-(
I do not have a solution :-( Options:
The text was updated successfully, but these errors were encountered: