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
error [pimatic-openweather]: Unexpected token i #9
Comments
Do you have an stack trace (debug message following to the error)? |
How i can make that? these error i saw few times. |
i have the same. error shown:
|
same here (0.8.15) |
Yes, same here. The openweather service is a pain in the a.. I'll look into this tomorrow and will report back about my findings. |
Same here indeed. When I surf to http://api.openweathermap.org/data/2.5/weather?q=Volkel,nl, I get as response: Invalid API key. Please see http://openweathermap.org/faq#error401 for more info. |
"For FOSS developers: we welcome free software and are willing to help you. If you want to use OWM data in your free software application please register an API key and file a ticket describing your application and API key registered. OWM will review your request and grant immunity from usage limit overflow blocking." Besides this, it is possible to acquire a free key for personal use. Maybe, the blocking is temporarilly only as the error has occurred multiple times in the past. May be it is better to ask inividuals to acquire a ApiKey for their personal use. @sweetpi What's your opinion on this? Does it make sense to request an Apikey for pimatic? I am happy to take the initiative. |
An apikey for pimatic would be cool. However we should be sure to meet their licensing terms. I'm not 100% sure, but probably we need to mention openweather somewhere in the ui. I don't know if the readme is enough. http://openweathermap.org/price @mwittig Would you request one from them and ask if mentioning openweather in the plugin readme is enough? |
In any case: We should not repeat the error message and parse the result as an error message, if json parse fails... |
@sweetpi OK, I am ready to do this. I have already sorted the error message on my working copy and will add the apikey as an optional feature to your fork of "node-openweathermap". EDIT: Perhaps you give me access to the repo, or I'll do a fork/PR, otherwise. |
…r" (1 min) which applies if last request failed + Added API key handling following issue josecastroleon#9 + Updated README
…send response with error string - see issue josecastroleon/pimatic-openweather#9 Revised license information to provide a SPDX 2.0 license identifier according to npm v2.1 guidelines
Published pimatic-openweather@0.8.16 |
Big thank you from my side. Viele Grüße, Peter Pöml
|
No description provided.
The text was updated successfully, but these errors were encountered: