-
-
Notifications
You must be signed in to change notification settings - Fork 2
Add weather column and accompanying API #20
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
base: master
Are you sure you want to change the base?
Conversation
|
Can you fix the JavaScript file to use ES6 notation such as let instead of var. Also you can remove the dependency on jQuery as current JavaScript standards make it pretty much obsolete. I also request that you fix the code climate issue above. Code climate is our automatic structure checker which ensures that the code is maintainable. Lastly, you need to bump the version in package.json |
lramos15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See PR comment
zapdos26
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment
public/js/weather.js
Outdated
| @@ -0,0 +1,70 @@ | |||
| // Set API key, longitude, and latitude | |||
| const api = "232f1a91a4893327ac3317c3786ac2be"; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the hardcoded API key from the file and instead add it to the environment variable.
|
Code Climate has analyzed commit 5e5b2b0 and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
|
@ymmahmoud bump |
Created a weather column to fill some of the whitespace between the rider names/900s and the call volume blocks. This weather column pulls data from the openweathermap API and automatically updates icon colors based on light mode vs. dark mode. It currently shows 4 days of weather because any more would cause notes and chores to be pushed down.