-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Release 2.22.0 #2983
Release 2.22.0 #2983
Commits on Oct 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7694d6f - Browse repository at this point
Copy the full SHA 7694d6fView commit details
Commits on Oct 4, 2022
-
use es6 syntax in all tests, split weather tests, remove callbacks
Configuration menu - View commit details
-
Copy full SHA for f04d578 - Browse repository at this point
Copy the full SHA f04d578View commit details -
fix(weather/smhi) Correctly reference apparent temp method (#2931)
This PR addresses [this comment](48756e8#commitcomment-85772193), which points out an issue with #2902. Looks like the apparent temp calculation method was incorrectly referenced 😅
Configuration menu - View commit details
-
Copy full SHA for 8212d30 - Browse repository at this point
Copy the full SHA 8212d30View commit details -
Add test in compliments module for remotFile option (#2932)
nothing fancy here, just a simple test after @khassel's changes to the test setup :-) Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for ce4906d - Browse repository at this point
Copy the full SHA ce4906dView commit details
Commits on Oct 6, 2022
-
as proposed in 05f0d18#commitcomment-85730050 Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for f434be3 - Browse repository at this point
Copy the full SHA f434be3View commit details -
Added fetchWeatherHourly functionality to Weather.gov provider (#2933)
Added fetchWeatherHourly functionality to: modules/default/weather/providers/weathergov.js
Configuration menu - View commit details
-
Copy full SHA for a86e27a - Browse repository at this point
Copy the full SHA a86e27aView commit details -
Use fetch instead of XMLHttpRequest in weatherprovider (#2935)
small update to the fetchData method to use the fetch helper instead of the old XCMLHttpRequest. Also fixes some typos :-) Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for d5e855d - Browse repository at this point
Copy the full SHA d5e855dView commit details
Commits on Oct 7, 2022
-
weathergov.js: Removed weatherEndpoint definition (#2936)
Removed weatherEnpoint definition in defaults. It is not used in the weathergov.js provider.
Configuration menu - View commit details
-
Copy full SHA for 21ae79b - Browse repository at this point
Copy the full SHA 21ae79bView commit details -
Cleanup test directory (#2937)
Moves files around and renames some so that the structure is cleaner and more consistent
Configuration menu - View commit details
-
Copy full SHA for a328ce5 - Browse repository at this point
Copy the full SHA a328ce5View commit details
Commits on Oct 11, 2022
-
Added css class names "today" and "tomorrow" for calendar (#2939)
Added class names "today" and "tomorrow" on the calendar module tr elements (i.e. calendar items). This way you can for example color your events today and/or tomorrow to more easily see what's happening in the near future. Implemented by adding an event.tomorrow variable (similar to event.today) that can be used for other things in the future. Also replaced a few hardcoded values (hours, seconds etc.) with constants to make the code more consistent. Edit: tested with normal events, split day events and events with locations.
Configuration menu - View commit details
-
Copy full SHA for 85a9f14 - Browse repository at this point
Copy the full SHA 85a9f14View commit details
Commits on Oct 12, 2022
-
Ensure updatenotification module isn't shown when local is *ahead* of…
… remote (#2943) This PR resolves a small bug in the updatenotification module if a local git repo is ahead of the remote (for example I have made local commits for my personal needs). Currently, if `git status -sb` reports a status like: `## master...origin/master [ahead 2]` then updatenotification treats this as though it's "behind". This PR uses a single Regex to match `git status -sb` output and uses capture groups to extract info to populate the `gitInfo` object to avoid needing to do string manipulation to extract this information. Co-authored-by: Dario Mratovich <dario.mratovich@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 1eb2965 - Browse repository at this point
Copy the full SHA 1eb2965View commit details
Commits on Oct 13, 2022
-
Wait till all node_helper are started before finishing startup (#2928)
In response to #2487 this implements a Promise.all for the node_helper start calls Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for 7bbf8c1 - Browse repository at this point
Copy the full SHA 7bbf8c1View commit details
Commits on Oct 16, 2022
-
Support for configuring FontAwesome class in calendar-module: (#2949)
Some icons in FontAwesome, like the Facebook-logo, requires a different class than `fas fa-fw fa-`. Added support for specifying the `className`: ```js { symbol: "facebook-square", symbolClassName: "fab fa-", url: "https://www.facebook.com/events/ical/upcoming/?uid=<some_uid>" } ```
Configuration menu - View commit details
-
Copy full SHA for 835c893 - Browse repository at this point
Copy the full SHA 835c893View commit details -
Convert moment(..., "X") to moment.unix(...) (#2950)
because I thought it was more readable and I found a little bug when calculatin suntimes on the way.... Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for fc59ed2 - Browse repository at this point
Copy the full SHA fc59ed2View commit details
Commits on Oct 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ad4dbd7 - Browse repository at this point
Copy the full SHA ad4dbd7View commit details -
fix cors problems with newsfeed articles (#2940)
solves #2840 as far as possible. There could still be errors on the embedded iframe when the owner of the site has set `X-Frame-Options` or `Access-Control-Allow-Origin` headers (as already mentioned in the docs).
Configuration menu - View commit details
-
Copy full SHA for 7bd9443 - Browse repository at this point
Copy the full SHA 7bd9443View commit details
Commits on Oct 19, 2022
-
Add error handling to node_helper startup sequence (#2945)
Fixes #2944 Also splits the Server js into a constrcutor and an open call to remove one callback parameter :-) Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for 64ed5a5 - Browse repository at this point
Copy the full SHA 64ed5a5View commit details
Commits on Oct 24, 2022
-
Use metric units internally in all weatherproviders (#2849)
So finally I think this refactorin is ready to be reviewed :-) DONE: - [x] Removed all conversion functions for wind and temperature from specific weatherproviders - [x] Use internally only metric units: celsius for temperature, meters per seconds for wind - [x] Convert temp and wind into the configured units when displaying data on the UI - [x] look how beaufort calculation uses metrics, added knots as new windunit - [x] add more e2e tests Checked providers: - [x] Darksky - [x] EnvCanada - [x] OpenWeatherMap - [x] SMHI provider - [x] UK Met Office - [x] UK Met Office DataHub - [x] WeatherBit - [x] WeatherFlow - [x] WeatherGov TODO in different tickets: - check weatherproviders for usage of weatherEndpoint (as seen in MagicMirrorOrg/MagicMirror-Documentation#131) -> see #2926 - cleanup precipations -> #2953 Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for 2d3940a - Browse repository at this point
Copy the full SHA 2d3940aView commit details -
Configuration menu - View commit details
-
Copy full SHA for dde8860 - Browse repository at this point
Copy the full SHA dde8860View commit details
Commits on Oct 28, 2022
-
Refactor common weather methods into utils class (#2958)
Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for c191ff0 - Browse repository at this point
Copy the full SHA c191ff0View commit details -
Some small cleanups with regards to jest - call jest directly (nyc is integrated in jest these days) - move jest config into seperate file so we dont clutter up the package.json - remove empty test file for newsletter-unit-tests - update dependencies that touch jest - try out v8 as coverageProvider Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for f79d3f0 - Browse repository at this point
Copy the full SHA f79d3f0View commit details -
Add dependency review action (#2862)
> Dependency Review GitHub Action in your repository to enforce dependency > reviews on your pull requests. > The action scans for vulnerable versions of dependencies introduced by package version > changes in pull requests, > and warns you about the associated security vulnerabilities. > This gives you better visibility of what's changing in a pull request, > and helps prevent vulnerabilities being added to your repository. https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com> Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com> Co-authored-by: Karsten Hassel <hassel@gmx.de>
Configuration menu - View commit details
-
Copy full SHA for 00bc6eb - Browse repository at this point
Copy the full SHA 00bc6ebView commit details -
Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for 7058fc5 - Browse repository at this point
Copy the full SHA 7058fc5View commit details
Commits on Oct 29, 2022
-
Make the e2e tests wait for the app to start and close before running…
… next test (#2952) When trying to debug why the tests broke for #2946 I found that the tests does not wait for the app to start and close. So if the startup isn't blocking that would fail. So I added a callback for `close()` too and converted them to promises for the `startApplication()` and `stopApplication()` and updated all the e2e tests to await both. Will try to refactor all these callbacks to promises in a later PR.
Configuration menu - View commit details
-
Copy full SHA for f25abfd - Browse repository at this point
Copy the full SHA f25abfdView commit details -
Switch back to third party fetch lib for all node versions (#2961)
As discussed in #2952 Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for 3879949 - Browse repository at this point
Copy the full SHA 3879949View commit details
Commits on Oct 30, 2022
-
Support HTTP headers with CORS-method (#2957)
Adds support for sending and receiving HTTP-headers when using the CORS-method. This change is required for the Yr weather-provider introduced in #2948. To make it easier to add unit tests I moved the server-functions into a separate file.
Configuration menu - View commit details
-
Copy full SHA for 4d47c08 - Browse repository at this point
Copy the full SHA 4d47c08View commit details
Commits on Oct 31, 2022
-
As already discussed here the first shot of the collaboration rules. We can discuss this in the comments until ready to merge. Co-authored-by: Veeck <github@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for 4fecffc - Browse repository at this point
Copy the full SHA 4fecffcView commit details
Commits on Nov 6, 2022
-
veeck committed
Nov 6, 2022 Configuration menu - View commit details
-
Copy full SHA for 0b01e9d - Browse repository at this point
Copy the full SHA 0b01e9dView commit details
Commits on Nov 7, 2022
-
Add option to remove "x-frame-options" and "content-security-policy" …
…response headers (#2963) Many users like me do have the problem that they want to embed other sites to their mirror by "iframe". As some developers set the "x-frame-options" and "content-security-policy" for security reasons these sites can not be embedded. Electron provides the "webview" element additionally to "iframe" which allows to embed these sites although. The main difference is that a new process is started which handles the "webview" element. BUT: As the "webview" process needs to be started and is isolated "webview" is slower and the elements can not be accessed from the embedding website. As an alternative i implemented a small callback function in electron.js which removes the response headers that forbid the embedding. The removing can be controlled with the new config options: * ignoreXOriginHeader * ignoreContentSecurityPolicy
Configuration menu - View commit details
-
Copy full SHA for b9b7d2c - Browse repository at this point
Copy the full SHA b9b7d2cView commit details
Commits on Nov 8, 2022
-
New weather provider: Yr.no (#2948)
# Added Yr.no as a weather provider Yr.no is a free Norwegian weather service. The configuration is quite simple: ```js { weatherProvider: "yr", lat: 59.9171, lon: 10.7276, altitude: 30 } ``` The latitude and longitude cannot have more than 4 decimals, but that should be plenty. To quote yr: "There is no need to ask for weather forecasts with nanometer precision!". The altitude should be meters above sea level and defaults to 0. If `type` is set to `current` the symbol can display the next 1, 6 or 12 hours by setting `currentForecastHours` (default is 1). It states in [Getting started-guide](https://developer.yr.no/doc/GettingStarted/) that users of the API should cache the results and use the `Expires`-header to know when to ask for new data. By using the `If-Modified-Since`-header we can avoid downloading the same data over and over again. I chose not to override the `User-Agent`-header set in [`server.js`](https://github.com/MichMich/MagicMirror/blob/a328ce5/js/server.js#L97) even though it does not comply with [the terms of service](https://developer.yr.no/doc/TermsOfService/). It currently works with the default header, and by searching the web for MagicMirror the GitHub-repo should be easy to find without an explicit link. I also had to make some minor changes to `server.js` and `weatherprovider.js` to be able to send and return HTTP headers. To handle the HTTP 304 response without body I chose to return `undefined` so we easily can use the response as a condition: `if (response) ...`. The documentation for the API is available here: - [API Reference overview](https://api.met.no/weatherapi/) - [Locationforecast](https://api.met.no/weatherapi/locationforecast/2.0/) - Used to get the weather forecast - [Sunrise](https://api.met.no/weatherapi/sunrise/2.0/documentation) - used to find sunrise and sunset times Co-authored-by: Veeck <github@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for bd0b3c0 - Browse repository at this point
Copy the full SHA bd0b3c0View commit details
Commits on Dec 8, 2022
-
update dependencies: electron to v22, fix playwright to v1.27.1 (#2976)
Configuration menu - View commit details
-
Copy full SHA for abbae90 - Browse repository at this point
Copy the full SHA abbae90View commit details
Commits on Dec 10, 2022
-
Only add clock type wrappers to DOM when they are used (#2971)
Fixes a layout gap when digital clock is displayd on the left Reported via discord: https://discord.com/channels/545884423703494657/545884914982322177/1044376412997562418 Co-authored-by: veeck <michael@veeck.de>
Configuration menu - View commit details
-
Copy full SHA for eee289a - Browse repository at this point
Copy the full SHA eee289aView commit details -
Cleanup compliments module (#2965)
Lots of small fixes and cleanups: - only render something when there is a compliment - cleanup naming - use es6 notations - use fetch instead of XMLHttpRequest in compliments Co-authored-by: veeck <michael@veeck.de> Co-authored-by: Karsten Hassel <hassel@gmx.de>
Configuration menu - View commit details
-
Copy full SHA for a262444 - Browse repository at this point
Copy the full SHA a262444View commit details -
Replace
…
with…
(#2973)I think it is clearer if we don't use the HTML entity. Co-authored-by: Karsten Hassel <hassel@gmx.de>
Configuration menu - View commit details
-
Copy full SHA for 3124b0a - Browse repository at this point
Copy the full SHA 3124b0aView commit details
Commits on Dec 12, 2022
-
improve electron tests (avoid errors in github workflows) (#2977)
Fix electron tests failing sometimes in github workflow.
Configuration menu - View commit details
-
Copy full SHA for 2fec314 - Browse repository at this point
Copy the full SHA 2fec314View commit details
Commits on Dec 22, 2022
-
update playwright to v1.29.1 and other dependencies (#2980)
see title, fixes #2969
Configuration menu - View commit details
-
Copy full SHA for 76d9042 - Browse repository at this point
Copy the full SHA 76d9042View commit details
Commits on Dec 26, 2022
-
Added a WeatherProvider for Open-Meteo (#2964)
## Added Weather Provider for Open-Meteo. I've found a completely free weather REST API (event with option of self-hosting) after having problems with API keys from all MagicMirror weather providers currently implemented (the remote services, not the providers themselves). This API doesn't return information about reverse geocode from latitude and longitude options like others. I solved that issue using another free API. ### APIs used - [Open-Meteo Weather Forecast API](https://open-meteo.com/en/docs) - [BigDataCloud’s Free Client-Side Reverse Geocoding API](https://www.bigdatacloud.com/docs/api/free-reverse-geocode-to-city-api) ### Considerations - This provider is config reliable so, be free to use the same config you can found in the official MagicMirror Weather module documentation. - This module config skips the `apiKey` parameter. It's not used at all. Only `latitude` and `longitude` are required. #### Config examples: ``` modules: [ { module: "weather", position: "top_right", header: "Weather Forecast", config: { updateInterval: <number here>, weatherProvider: "openmeteo", type: "current", lat: <number here>, lon: <number here>, showHumidity: true, showWindDirectionAsArrow: true, showWindDirection: true, degreeLabel: true, } }, { module: "weather", position: "top_right", header: "Weather Forecast", config: { updateInterval: <number here>, weatherProvider: "openmeteo", type: "daily", lat: <number here>, lon: <number here> colored: true, maxNumberOfDays: <number here>, showPrecipitationAmount: true, appendLocationNameToHeader: true } }, { module: "weather", position: "top_right", header: "Weather Forecast", config: { updateInterval: <number here>, weatherProvider: "openmeteo", type: "hourly", lat: <number here>, lon: <number here>, maxEntries: <number here>, showPrecipitationAmount: true, degreeLabel: true, appendLocationNameToHeader: true } }, ] ``` Co-authored-by: Michael Teeuw <michael@xonaymedia.nl>
Configuration menu - View commit details
-
Copy full SHA for e9be668 - Browse repository at this point
Copy the full SHA e9be668View commit details
Commits on Jan 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0ebedd0 - Browse repository at this point
Copy the full SHA 0ebedd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd739b6 - Browse repository at this point
Copy the full SHA cd739b6View commit details