Skip to content

Added Override Notification Option to Weather Module#3178

Merged
rejas merged 11 commits intoMagicMirrorOrg:developfrom
NolanKingdon:weather-override-notification
Sep 8, 2023
Merged

Added Override Notification Option to Weather Module#3178
rejas merged 11 commits intoMagicMirrorOrg:developfrom
NolanKingdon:weather-override-notification

Conversation

@NolanKingdon
Copy link
Contributor

Fixes #3126

Added the option allowOverrideNotification to weather.js. This allows the module to receive the CURRENT_WEATHER_OVERRIDE notification. The expected payload for this notification is a full/partial weatherObject that is used to supplement/replace the existing weatherObject returned by whichever weather provider is in use.

No visual changes.

First time contributing - let me know if I've missed something 🙂

@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2023

Codecov Report

Merging #3178 (d775c46) into develop (9d49196) will decrease coverage by 0.19%.
The diff coverage is 0.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff             @@
##           develop    #3178      +/-   ##
===========================================
- Coverage    26.15%   25.97%   -0.19%     
===========================================
  Files           53       54       +1     
  Lines        11502    11621     +119     
===========================================
+ Hits          3008     3018      +10     
- Misses        8494     8603     +109     
Files Changed Coverage Δ
...dules/default/weather/providers/overrideWrapper.js 0.00% <0.00%> (ø)
modules/default/weather/weather.js 0.00% <0.00%> (ø)
modules/default/weather/weatherprovider.js 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

📢 Have feedback on the report? Share it here.

@rejas
Copy link
Collaborator

rejas commented Sep 7, 2023

Could you check the jsdoc warnings here: https://github.com/MichMich/MagicMirror/actions/runs/6105958927?pr=3178 @NolanKingdon ?

@rejas
Copy link
Collaborator

rejas commented Sep 8, 2023

Thx for the work @NolanKingdon will merge it now. Could you also provide a PR to update the docs in the https://github.com/MichMich/MagicMirror-Documentation/ repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants