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

    Posts

    Recent Best Controversial
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil hello, I did a reboot of the pi and… it restarted magic (like the mirror :-)) I have some small settings for which I cannot find solutions
      For Weather:
      the 1st: it’s the temperature which displays more than 280° C, I know that there is global warming but still…
      the 2nd: the display of the weather forecast for the following days is a little confusing and I can’t find the settings in the console ctrl+shift+i and do you think I can write the sentence “Feels Like” in French?
      for calendar:
      I had put icons for each calendar in config.js, 1 for mine, 1 for my wife etc. ex: {

      symbol: 'male',
      url: 'webcal://p59-caldav.icloud.com/published/2/Mjc4MDY5NzE3Mjc4MDY5N_JWXRaX8nNLZE61rkC12OfzlWCbJPUrEhN49IHC1yeFEfqRieBnpxxxxxxxxxxxxx'
      
      },
      {
      symbol: 'birthday-cake',
      url: 'webcal://p59-caldav.icloud.com/published/2/Mjc4MDY5NzE3Mjc4MDY5N_JWxxxxxxxxxxx'
      

      in the custom css I had added color to each symbol to differentiate them (I saw that it was necessary to change .fa.fa in the custom css to .fas.fa) ex:

      .fas.fa-male {
         color: #2B60DE; /* Dodger Blue */
      }
      .fas.fa-birthday-cake {
         color: #ff0000; /* Red */
      }
      
      .fas.fa-trash-o {
         color: #00FF00; /* Green */
      }
      

      they all work except this one

      symbol: 'trash-o',
      

      for this one I don’t have any symbol

      d46af49b-efd7-426f-a594-3cd89d44d885-image.png

      803f72f1-0ef0-4909-be7d-221a42428699-image.png

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil I ran your update script, I don’t get an error message, are there any additional operations or do I reboot the pi?

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil ok, I’ll try it, I’ll let you know if everything went well…

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil Thank you for your answer if I understand correctly for safety I do

      pm2 stop all
      pi@MagicMirror:~/MagicMirror $ pm2 stop all
      

      after that

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
      

      that’s it ? and should I pass this line to the root of the MM or in the MM folder

      pi@MagicMirror:~$
      

      Or

      pi@MagicMirror:~/MagicMirror $
      

      I’m waiting for your response before making a mistake

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil following my last message I did:

      pm2 stop all
      

      and then I made your script:

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
      

      then I went to the folder:

      ~/MagicMirror/installers/upgrade.log
      

      and I copied the last lines of:

      "upgrade started"
      

      I don’t know if I did the right thing but I took the history of what you asked me to do

      Upgrade started - ven. janv. 26 13:36:00 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      Node.js upgrade defered, doing test run
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      Minimum npm version: V9.8.1
      Installed npm version: V6.14.18
      npm should be upgraded.
      npm upgrade defered, doing test run  ...
      
      saving custom.css
      remote name = origin
      upgrading from version 2.23.0 to 2.26.0
      fetching latest revisions
      git fetch rc=0
      current branch = master
      On branch master
      Your branch is behind 'origin/master' by 213 commits, and can be fast-forwarded.
        (use "git pull" to update your local branch)
      
      Changes not staged for commit:
        (use "git add <file>..." to update what will be committed)
        (use "git checkout -- <file>..." to discard changes in working directory)
      
      	modified:   css/main.css
      	modified:   fonts/package-lock.json
      	modified:   modules/default/calendar/calendar.js
      	modified:   modules/default/weather/weather.js
      	modified:   package-lock.json
      	modified:   vendor/package-lock.json
      
      Untracked files:
        (use "git add <file>..." to include in what will be committed)
      
      	: {
      	core
      	css/icons/
      	css/save_custom.css
      	howEnd: false,
      	liceMultiDayEvents: false,
      	modules/default/currentweather/
      	nohup.out
      	tDaysCount: 0,
      	"ter(\"calendar\", {mberOfDays: 365,"
      
      no changes added to commit (use "git add" and/or "git commit -a")
      there are 6 local files that are different than the master repo
      
         css/main.css
         fonts/package-lock.json
         modules/default/calendar/calendar.js
         modules/default/weather/weather.js
         package-lock.json
         vendor/package-lock.json
      
      save/restore files selection = n
      restoring css/main.css from repo
      skipping restore for css/main.css, doing test run
      restoring fonts/package-lock.json from repo
      skipping restore for fonts/package-lock.json, doing test run
      restoring modules/default/calendar/calendar.js from repo
      skipping restore for modules/default/calendar/calendar.js, doing test run
      restoring modules/default/weather/weather.js from repo
      skipping restore for modules/default/weather/weather.js, doing test run
      restoring package-lock.json from repo
      skipping restore for package-lock.json, doing test run
      restoring vendor/package-lock.json from repo
      skipping restore for vendor/package-lock.json, doing test run
      test merge result rc='' , if empty, no conflicts
      skipping merge, only test run
      
      Checking for modules with removed libraries
      downloading dumpactivemodules script
      
      
      updating dependencies for active modules with package.json files
      
      	processing for module MMM-SmartWebDisplay please wait
      
      	----------------------------------
      
      	skipped processing for MMM-SmartWebDisplay, doing test run
      
      	processing complete for module MMM-SmartWebDisplay
      
      	processing for module MMM-ISS-Live please wait
      
      	----------------------------------
      
      	skipped processing for MMM-ISS-Live, doing test run
      
      	processing complete for module MMM-ISS-Live
      restoring custom.css
      removing git alias
      Upgrade ended - ven. janv. 26 13:36:17 CET 2024
      

      ​

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil after a night’s sleep I think I understood…

      15b9f7f5-076a-479f-97ab-f9fd9f889658-image.png

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil sorry but I didn’t understand what to do, my MM is running, I don’t know if it’s running from

      npm start
      

      you say (you need to stop it, ctrl-c in that terminal window) in which terminal? do you have to press the “ctrl-c” keys on the keyboard? sorry for my stupid questions

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil I copied everything, if necessary

      Upgrade started - mer. janv. 24 17:51:10 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      Node.js upgrade defered, doing test run
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      Minimum npm version: V9.8.1
      Installed npm version: V6.14.18
      npm should be upgraded.
      npm upgrade defered, doing test run  ...
      
      saving custom.css
      remote name = origin
      upgrading from version 2.23.0 to 2.26.0
      fetching latest revisions
      git fetch rc=0
      current branch = master
      On branch master
      Your branch is behind 'origin/master' by 213 commits, and can be fast-forwarded.
        (use "git pull" to update your local branch)
      
      Changes not staged for commit:
        (use "git add <file>..." to update what will be committed)
        (use "git checkout -- <file>..." to discard changes in working directory)
      
      	modified:   css/main.css
      	modified:   fonts/package-lock.json
      	modified:   modules/default/calendar/calendar.js
      	modified:   modules/default/weather/weather.js
      	modified:   package-lock.json
      	modified:   vendor/package-lock.json
      
      Untracked files:
        (use "git add <file>..." to include in what will be committed)
      
      	core
      	css/icons/
      	css/save_custom.css
      	modules/default/currentweather/
      	nohup.out
      
      no changes added to commit (use "git add" and/or "git commit -a")
      there are 6 local files that are different than the master repo
      
         css/main.css
         fonts/package-lock.json
         modules/default/calendar/calendar.js
         modules/default/weather/weather.js
         package-lock.json
         vendor/package-lock.json
      
      save/restore files selection = n
      restoring css/main.css from repo
      skipping restore for css/main.css, doing test run
      restoring fonts/package-lock.json from repo
      skipping restore for fonts/package-lock.json, doing test run
      restoring modules/default/calendar/calendar.js from repo
      skipping restore for modules/default/calendar/calendar.js, doing test run
      restoring modules/default/weather/weather.js from repo
      skipping restore for modules/default/weather/weather.js, doing test run
      restoring package-lock.json from repo
      skipping restore for package-lock.json, doing test run
      restoring vendor/package-lock.json from repo
      skipping restore for vendor/package-lock.json, doing test run
      test merge result rc='' , if empty, no conflicts
      skipping merge, only test run
      
      Checking for modules with removed libraries
      downloading dumpactivemodules script
      
      
      updating dependencies for active modules with package.json files
      
      	processing for module MMM-OneCallWeather please wait
      
      	----------------------------------
      
      	skipped processing for MMM-OneCallWeather, doing test run
      
      	processing complete for module MMM-OneCallWeather
      
      	processing for module MMM-SmartWebDisplay please wait
      
      	----------------------------------
      
      	skipped processing for MMM-SmartWebDisplay, doing test run
      
      	processing complete for module MMM-SmartWebDisplay
      
      	processing for module MMM-ISS-Live please wait
      
      	----------------------------------
      
      	skipped processing for MMM-ISS-Live, doing test run
      
      	processing complete for module MMM-ISS-Live
      restoring custom.css
      removing git alias
      Upgrade ended - mer. janv. 24 18:06:38 CET 2024
      
      Upgrade started - mer. janv. 24 20:51:08 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      
      Upgrade started - mer. janv. 24 21:02:28 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      
      Upgrade started - mer. janv. 24 21:26:35 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      
      Upgrade started - mer. janv. 24 21:31:01 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      
      Upgrade started - jeu. janv. 25 08:56:35 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      
      Upgrade started - jeu. janv. 25 09:02:37 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      
      Upgrade started - jeu. janv. 25 10:04:34 CET 2024
      system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      n (node version manager tool) not installed, doing test run, install skipped
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      Node.js upgrade defered, doing test run
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      Minimum npm version: V9.8.1
      Installed npm version: V6.14.18
      npm should be upgraded.
      A npm process is currently running. Can't upgrade.
      Please quit all npm processes and restart the installer.
      
      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil ```
      pi@MagicMirror:~ $ ~/MagicMirror/installers/upgrade.log
      -bash: /home/pi/MagicMirror/installers/upgrade.log: Permission non accord▒e
      pi@MagicMirror:~ $

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil hello, I rebotted the pi and ran the command again

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
      

      and I have the impression that it remains stuck in the same place the cursor does not display:

      pi@MagicMirror:~ $
      

      782e2b21-f64d-41e3-a453-3a588f59dfb9-image.png

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil I’m still here, I made the modifications in css main and js.config I placed the command:

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
      

      here is what I have

      pi@MagicMirror:~ $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
      update log will be in /home/pi/MagicMirror/installers/upgrade.log
      
      doing test run = true, NO updates will be applied!
      
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v14.21.3
      Node should be upgraded.
      pi@MagicMirror:~ $
      
      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil ok, thank you for your answers, I’m going to do the weather.js and according to what you tell me I’m going to leave aside the 2 lock.json and then I’ll stop for this evening my brain is upside down , have a good day…and see you tomorrow if you want to continue helping me

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil one last one for which I don’t know what to do either, thank you again for your help

      6aff6a14-a3ca-454d-9cd3-12ec0f9aedee-image.png

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil another example that bothers me

      f56aa934-4612-44a9-8c45-5cbec03da546-image.png

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil I’m trying to understand and I’m having a lot of trouble, in the following example, I haven’t touched anything (I’m almost sure) and I have two lines, the first in red and the second in Green:
      -/* MagicMirror²
      +/* Magic Mirror
      I can’t put the green line in my js.config file, right?
      I’m sorry but I’m trying to understand

      diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/cal                                                                                                                                                             endar.js
      index 2ef9ca9c..4f70a1e9 100644
      --- a/modules/default/calendar/calendar.js
      +++ b/modules/default/calendar/calendar.js
      @@ -1,6 +1,6 @@
       /* global cloneObject */
      
      -/* MagicMirror²
      +/* Magic Mirror
        * Module: Calendar
        *
      
      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil So I have to make the corrections manually in the files concerned by replacing the red lines with green lines, is that it?

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil yes, now thanks to you I understand the importance of js and css files

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil for calendar I got this return and the cursor did not return to cd ~/MagicMirror/ I just have two points at the bottom of the file

      pi@MagicMirror:~/MagicMirror $ git diff modules/default/calendar/calendar.js
      diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/cal                                                                                                                                                             endar.js
      index 2ef9ca9c..4f70a1e9 100644
      --- a/modules/default/calendar/calendar.js
      +++ b/modules/default/calendar/calendar.js
      @@ -1,6 +1,6 @@
       /* global cloneObject */
      
      -/* MagicMirror²
      +/* Magic Mirror
        * Module: Calendar
        *
        * By Michael Teeuw https://michaelteeuw.nl
      @@ -11,11 +11,8 @@ Module.register("calendar", {
              defaults: {
                      maximumEntries: 10, // Total Maximum Entries
                      maximumNumberOfDays: 365,
      -               limitDays: 0, // Limit the number of days shown, 0 = no limit
      -               pastDaysCount: 0,
                      displaySymbol: true,
      -               defaultSymbol: "calendar-alt", // Fontawesome Symbol see https:/                                                                                                                                                             /fontawesome.com/cheatsheet?from=io
      -               defaultSymbolClassName: "fas fa-fw fa-",
      :...skipping...
      diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js
      index 2ef9ca9c..4f70a1e9 100644
      --- a/modules/default/calendar/calendar.js
      +++ b/modules/default/calendar/calendar.js
      @@ -1,6 +1,6 @@
       /* global cloneObject */
      
      -/* MagicMirror²
      +/* Magic Mirror
        * Module: Calendar
        *
        * By Michael Teeuw https://michaelteeuw.nl
      @@ -11,11 +11,8 @@ Module.register("calendar", {
              defaults: {
                      maximumEntries: 10, // Total Maximum Entries
                      maximumNumberOfDays: 365,
      -               limitDays: 0, // Limit the number of days shown, 0 = no limit
      -               pastDaysCount: 0,
                      displaySymbol: true,
      -               defaultSymbol: "calendar-alt", // Fontawesome Symbol see https://fontawesome.com/cheatsheet?from=io
      -               defaultSymbolClassName: "fas fa-fw fa-",
      +               defaultSymbol: "calendar", // Fontawesome Symbol see https://fontawesome.com/cheatsheet?from=io
                      showLocation: false,
                      displayRepeatingCountTitle: false,
                      defaultRepeatingCountTitle: "",
      @@ -27,25 +24,23 @@ Module.register("calendar", {
                      maxEventTitleLines: 3,
                      fetchInterval: 5 * 60 * 1000, // Update every 5 minutes.
                      animationSpeed: 2000,
      -               fade: true,
      +               fade: false,
                      urgency: 7,
      -               timeFormat: "relative",
      -               dateFormat: "MMM Do",
      +               timeFormat: "absolute",
      +               dateFormat: "Do MMM HH:mm",
                      dateEndFormat: "LT",
      -               fullDayEventDateFormat: "MMM Do",
      +               fullDayEventDateFormat: "Do MMM",
                      showEnd: false,
                      getRelative: 6,
                      fadePoint: 0.25, // Start on 1/4th of the list.
                      hidePrivate: false,
                      hideOngoing: false,
      -               hideTime: false,
      -               showTimeToday: false,
                      colored: false,
      -               customEvents: [], // Array of {keyword: "", symbol: "", color: ""} where Keyword is a regexp and symbol/color are to be applied for matched
      +               coloredSymbolOnly: false,
                      tableClass: "small",
                      calendars: [
                              {
      -                               symbol: "calendar-alt",
      +                               symbol: "calendar",
                                      url: "https://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                              }
                      ],
      @@ -60,18 +55,9 @@ Module.register("calendar", {
                      excludedEvents: [],
                      sliceMultiDayEvents: false,
                      broadcastPastEvents: false,
      -               nextDaysRelative: false,
      :
      
      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil ok, I do it you are too strong

      posted in Development
      M
      Manu85
    • RE: Changing icons of the modules Current Weather and Weather Forecast

      @sdetweil ok if I understand correctly, I do this for all modules which presented a problem, putting the full address for each module? example :

      git diff modules/default/calendar/calendar.js
      

      , I just

      posted in Development
      M
      Manu85
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 14
    • 15
    • 6 / 15