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
Fix weathergov api precipitationLastHour #3125
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## develop #3125 +/- ##
===========================================
+ Coverage 25.55% 25.61% +0.06%
===========================================
Files 53 53
Lines 11464 11464
===========================================
+ Hits 2930 2937 +7
+ Misses 8534 8527 -7
|
@@ -210,7 +210,7 @@ WeatherProvider.register("weathergov", { | |||
currentWeather.minTemperature = currentWeatherData.minTemperatureLast24Hours.value; | |||
currentWeather.maxTemperature = currentWeatherData.maxTemperatureLast24Hours.value; | |||
currentWeather.humidity = Math.round(currentWeatherData.relativeHumidity.value); | |||
currentWeather.precipitationAmount = currentWeatherData.precipitationLastHour.value; | |||
currentWeather.precipitationAmount = currentWeatherData.precipitationLast3Hours.value; |
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.
Maybe use the 3hours info as a fallback in case the precipitationLastHour is undefined?
"dependencies": { | ||
"colors": "^1.4.0", | ||
"console-stamp": "^3.1.1", | ||
"digest-fetch": "^2.0.3", | ||
"electron": "^25.2.0", |
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.
electron should stay in the optional dependencies
@JasonStieber can you make the requested changes? |
pinging @JasonStieber in the hope he picks this PR up again |
Pull request fixes small big in weathergov api format mismatch #3124