-
Notifications
You must be signed in to change notification settings - Fork 8
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
Switch to onecall API + Review #52
base: master
Are you sure you want to change the base?
Conversation
- switch to onecall API - lint ts file - add prettifier - add scripts to package.json - fix format
@KristjanESPERANTO What is the purpose of switching to One Call API? Per the OpenWeather documentation here, only the One Call API is changing and requires a credit card. The Current Weather API is free and satisfies the requirements of this module. Are there improvements to using this API over the other? Are you thinking of adding functionality? Although I see plenty of room for code refactoring and clean up, adding the lint and prettier did very little to help and added extra bulk. I'd suggest if we go that route, we might as well actually clean up some of the code. Also, I do see the benefit to removing |
Oh, sorry! I used the example with
Not at the moment. The ideas usually only come when I use the module for a while and put my hands into the code.
There was already a prettier config in the
Sure. If
For developers yes, but not for users. There are no dependencies that need to be installed for running the module. There are only devDependencies, which are only relevant for developers. So we would have to add developer instructions. What happens next?I suggest that we leave this PR for now and do small PRs one at a time. This would be easier to review and discuss. What do you think? |
Oh I see, yes
Good points, I overlooked that. Thank you. Adding lint and removing node_modules would certainly be good then.
Agreed. I appreciate the clarification and discussion, thanks. |
Free is still possible with OpenWeather (1,000 API calls per day), but as far as I know not anymore without a credit card 🙁 |
@KristjanESPERANTO The "Current Weather" service is free without a credit card. You can create an account without adding billing details and with an Api key you can use that API. It's limited to 60 calls/minute and 1,000,000 calls/month. I just tested this again. https://openweathermap.org/price |
Thanks for testing it out! I still get confused with the One Call API, sorry. So, there is no need to switch to another API for now. |
I admit that the PR has become very large and is probably a bit tricky to review. Let me know if you want me to break it down into smaller PRs! 🙂