MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. karsten13
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Online
    • Profile
    • Following 1
    • Followers 4
    • Topics 10
    • Posts 547
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Any plan to replace "request" and "moment"?

      I think we should open an issue in the github repo to discuss the moment stuff there, if it should be replaced and with what. Found this article.

      In the current mm release 2.16.0 request is still a dev dependency but it is now totally removed on the develop branch (and so in the next release).

      posted in Feature Requests
      karsten13K
      karsten13
    • v2.29.0

      https://github.com/MagicMirrorOrg/MagicMirror/releases/tag/v2.29.0

      [2.29.0] - 2024-10-01

      Thanks to: @bugsounet, @dkallen78, @jargordon, @khassel, @KristjanESPERANTO, @MarcLandis, @rejas, @ryan-d-williams, @sdetweil, @skpanagiotis.

      ⚠️ This release needs nodejs version v20 or v22, minimum version is v20.9.0

      Added

      • [compliments] Added support for cron type date/time format entries mm hh DD MM dow (minutes/hours/days/months and day of week) see https://crontab.cronhub.io for construction (#3481)
      • [core] Check config at every start of MagicMirror² (#3450)
      • [core] Add spelling check (cspell): npm run test:spelling and handle spelling issues (#3544)
      • [core] removed config.paths.vendor (could not work because vendor is hardcoded in index.html), renamed config.paths.modules to config.foreignModulesDir, added variable MM_CUSTOMCSS_FILE which - if set - overrides config.customCss, added variable MM_MODULES_DIR which - if set - overrides config.foreignModulesDir, added test for MM_MODULES_DIR (#3530)
      • [core] elements are now removed from index.html when loading script or stylesheet files fails
      • [core] Added MODULE_DOM_UPDATED notification each time the DOM is re-rendered via updateDom (#3534)
      • [tests] added minimal needed node version to tests (currently v20.9.0) to avoid releases with wrong node version info
      • [tests] Added node-libgpiod library to electron-rebuild tests (#3563)

      Removed

      • [core] removed installer only files (#3492)
      • [core] removed raspberry object from systeminformation (#3505)
      • [linter] removed eslint-plugin-import, because it doesn’t support ESLint v9. We will reenter it later when it does.
      • [tests] removed onoff library from electron-rebuild tests (#3563)

      Updated

      • [weather] Updated apiVersion default from 2.5 to 3.0 (#3424)
      • [core] Updated dependencies including stylistic-eslint
      • [core] nail down node-ical version to 0.18.0 with exception allow-ghsas: GHSA-8hc4-vh64-cxmj in dep-review.yaml (which should removed after next node-ical update)
      • [core] Updated SocketIO catch all to new API
      • [core] Allow custom modules positions by scanning index.html for the defined regions, instead of hard coded (PR #3518 fixes issue #3504)
      • [core] Detail optimizations in config_check.js
      • [core] Updated minimal needed node version in package.json (currently v20.9.0) (#3559) and except for v21 (no security updates) (#3561)
      • [linter] Switch to ESLint v9 and flat config and replace eslint-plugin-unicorn by @eslint/js
      • [core] fix discovering module positions twice after #3450

      Fixed

      • Fixed checks badge in README.md
      • [weather] Fixed issue with the UK Met Office provider following a change in their API paths and header info.
      • [core] add check for node_helper loading for multiple instances of same module (#3502)
      • [weather] Fixed issue for respecting unit config on broadcasted notifications
      • [tests] Fixes calendar test by moving it from e2e to electron with fixed date (#3532)
      • [calendar] fixed sliceMultiDayEvents getting wrong count and displaying incorrect entries, Europe/Berlin (#3542)
      • [tests] ignore js/positions.js when linting (this file is created at runtime)
      • [calendar] fixed sliceMultiDayEvents showing previous day without config enabled
      posted in MagicMirror
      karsten13K
      karsten13
    • RE: MMM-Sonos no Cover

      @wuermchen

      address, not adress

      posted in Requests
      karsten13K
      karsten13
    • RE: MagicMirror is safe...

      it’s not repo specific but attached to the user, see https://github.com/sdetweil

      posted in General Discussion
      karsten13K
      karsten13
    • RE: `npm ci` instead of `npm install`

      @sdetweil

      yes, and AFAIK you are using npm install --only=prod. This is may a thing to be mentioned in the docs because 99% of the users don’t need the dev dependencies …

      posted in Feature Requests
      karsten13K
      karsten13
    • v2.36.0

      Release Notes

      Thanks to: @cgillinger, @khassel, @KristjanESPERANTO, @sonnyb9

      ⚠️ This release needs nodejs version >=22.21.1 <23 || >=24 (no change to previous release)

      Compare to previous Release v2.35.0

      This release falls outside the quarterly schedule. We opted for an early release due to:

      • Security fix for the internal cors proxy
      • API change of the weather provider smi
      • Several bug fixes

      Breaking Changes

      The cors proxy is now disabled by default. If required, it must be explicitly enabled in the config.js file. See the documentation.

      ⚠️ Security

      You can find several publicly accessible MagicMirror² instances.

      This should never be done. Doing so makes your entire configuration, including secrets and API keys, publicly visible. Furthermore, it allows attackers to target the host; this is only prevented beginning with this release.

      Public MagicMirror² instances should always run behind a reverse proxy with authentication.

      [core]

      • Prepare Release 2.36.0 (#4126)
      • Allow HTTPFetcher to pass through 304 responses (#4120)
      • fix(http-fetcher): fall back to reloadInterval after retries exhausted (#4113)
      • config endpoint must handle functions in module configs (#4106)
      • fix replaceSecretPlaceholder (#4104)
      • restrict replaceSecretPlaceholder to cors with allowWhitelist (#4102)
      • fix: prevent crash when config is undefined in socket handler (#4096)
      • fix cors function for alpine linux (#4091)
      • fix(cors): prevent SSRF via DNS rebinding (#4090)
      • add option to disable or restrict cors endpoint (#4087)
      • fix: prevent SSRF via /cors endpoint by blocking private/reserved IPs (#4084)
      • chore: add permissions section to enforce pull-request rules workflow (#4079)
      • update version for develop

      [dependencies]

      • update dependencies (#4124)
      • chore: update dependencies (#4088)
      • refactor: enable ESLint rule “no-unused-vars” and handle related issues (#4080)

      [modules/newsfeed]

      • fix(newsfeed): prevent duplicate parse error callback when using pipeline (#4083)

      [modules/updatenotification]

      • fix(updatenotification): harden git command execution + simplify checkUpdates (#4115)
      • fix(tests): correct import path for git_helper module in updatenotification tests (#4078)

      [modules/weather]

      • fix(weather): use nearest openmeteo hourly data (#4123)
      • fix(weather): avoid loading state after reconnect (#4121)
      • weather: fix UV index display and add WeatherFlow precipitation (#4108)
      • fix(weather): restore OpenWeatherMap v2.5 support (#4101)
      • fix(weather): use stable instanceId to prevent duplicate fetchers (#4092)
      • SMHI: migrate to SNOW1gv1 API (replace deprecated PMP3gv2) (#4082)

      [testing]

      • ci(actions): set explicit token permissions (#4114)
      • fix(http_fetcher): use undici.fetch when dispatcher is present (#4097)
      • ci(codeql): also scan develop branch on push and PR (#4086)
      • refactor: replace implicit global config with explicit global.config (#4085)
      posted in MagicMirror
      karsten13K
      karsten13
    • RE: automatic update module by notification

      @bdream said in automatic update module by notification:

      I would prefer having an automatic to update in case it’s notified.

      option1: Adding a new paramter “forceUpdate” to the notification module so that it does the update instead of the notification (someone has to code this)

      option2: Write a bash script which iterates over the module folders doing something like this (in every module folder)

      git reset --hard
      git pull
      [ -f "package.json" ] && npm install
      

      This script should be executed e.g. daily by e.g. a cronjob.

      As Sam already mentioned this would be the hard way, may its better not to change a running system and ignore the notification, your decision.

      posted in Requests
      karsten13K
      karsten13
    • RE: Alexa implementations now more difficult, and some features will stop working

      @sdetweil

      thats amazon …

      had a docker image containing Alexa Voice Service but because of more and more limitations I gave up a few months ago.

      posted in General Discussion
      karsten13K
      karsten13
    • RE: `git clone` with `--depth=1`?

      @kristjanesperanto

      single branch could be another option like here.

      But we should update the doc from npm install to npm install --only=prod (sam uses this already in his install script), because the devDependencies are really fat.

      posted in Feature Requests
      karsten13K
      karsten13
    • RE: I'm getting error -MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied

      @sdetweil

      or forgot to run npm install in the module folder of MMM-FlightsAbove

      posted in Transport
      karsten13K
      karsten13
    • RE: ISS tracker

      @bhepler said in ISS tracker:

      @karsten13 - I don’t know which map framework you’re running, but I’ve been using Leaflet and it gives me a lot of flexibility in maps. Several free tile sources and many more that just require an API key. You can see a simple example at my MMM-Birdnet module. Specifically, check out the map options.

      thanks!

      I’m using ol (openlayers), with your help I found already the free cards of cartodb, they should work with ol too.

      posted in Requests
      karsten13K
      karsten13
    • RE: Stack rank modules

      @jalibu

      see https://github.com/MichMich/MagicMirror/issues/2545

      posted in General Discussion
      karsten13K
      karsten13
    • RE: Need help for tests suite

      @bugsounet

      from mm folder npx jest tests/...<filename>

      posted in Feature Requests
      karsten13K
      karsten13
    • RE: GIT and updates to Weather Module

      2 more things:

      • the new branch you are using should start on the mm-branch develop (not master)
      • when creating the PR on github you have to manually change the base branch from master to develop

      These rules are specific to the mm-repo. Because of quarterly releases the master branch only changes 4 times in a year. The development between the releases is done on develop.

      posted in Development
      karsten13K
      karsten13
    • RE: Module for MagicMirror forum

      the use of a csrf token is restricted to admins (as already mentioned by @bugsounet), there is a hack described here to open this for all users but I don’t think we should do this.

      For accessing the read(-only) api you can use a cookie from your browser, e.g.

      curl --cookie "express.sid=xxxxxxx" https://forum.magicmirror.builders/api/unread
      

      but this would be challenging to use in a module for mm …

      posted in Requests
      karsten13K
      karsten13
    • RE: raspi 64 bit available

      If you use the WebUI the changes are made here:

      pi@pi4:~ $ cat /usr/share/dispsetup.sh
      #!/bin/sh
      if ! grep -q 'Raspberry Pi' /proc/device-tree/model || (grep -q okay /proc/device-tree/soc/v3d@7ec00000/status 2> /dev/null || grep -q okay /proc/device-tree/soc/firmwarekms@7e600000/status 2> /dev/null || grep -q okay /proc/device-tree/v3dbus/v3d@7ec04000/status 2> /dev/null) ; then
      if xrandr --output HDMI-1 --primary --mode 1920x1080 --rate 60.000 --pos 0x0 --rotate normal --output HDMI-2 --off --dryrun ; then
      xrandr --output HDMI-1 --primary --mode 1920x1080 --rate 60.000 --pos 0x0 --rotate normal --output HDMI-2 --off
      fi
      fi
      if [ -e /usr/share/tssetup.sh ] ; then
      . /usr/share/tssetup.sh
      fi
      exit 0
      

      So editing this script should work for command line.

      posted in General Discussion
      karsten13K
      karsten13
    • RE: MMM-RAIN-MAP (new: version 2.x)

      @ViDiBi said in MMM-RAIN-MAP:

      lon: 11.91

      I think you have a typo in your config, lon: 11.91 should be lng: 11.91

      posted in Utilities
      karsten13K
      karsten13
    • RE: Automatic checking of all MagicMirror² modules

      @KristjanESPERANTO

      from the results:

      .gitlab-ci.yml: Change file extention from .yml to .yaml: https://yaml.org/faq.html.
      

      In this case the .gitlab-ci.yml is the default name of the gitlab pipeline definition file (users can change this but 99% will not) so if you really want to check yml vs. yaml you need a whitelist …

      posted in Development
      karsten13K
      karsten13
    • RE: Module for MagicMirror forum

      some api urls seem to work without authentication, e.g.

      ❯ curl -s https://forum.magicmirror.builders/api/recent/posts/day | jq -r '.[].topic.title'
      Default Weather Module Icon Position
      Module for MagicMirror forum
      MMM-Formula1 updates
      MMM-Formula1 updates
      MMM-Formula1 updates
      Live phone location
      Refresh Magic Mirror after custom css changes
      Module for MagicMirror forum
      Refresh Magic Mirror after custom css changes
      MMM-QuotesFromReddit
      Refresh Magic Mirror after custom css changes
      
      posted in Requests
      karsten13K
      karsten13
    • RE: updatenotification

      @Ray said in updatenotification:

      is it possible to instruct ignoremodules not to look for MagicMirror updates

      looking at the sources this is not possible at the moment but it is easy to implement. Can you open an issue on github for this? Thanks.

      posted in General Discussion
      karsten13K
      karsten13
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 2 / 7