• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Recurring events Calender

Scheduled Pinned Locked Moved Solved Troubleshooting
20 Posts 5 Posters 5.2k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Away
    sdetweil @dawookie1979
    last edited by Oct 18, 2020, 11:35 AM

    @dawookie1979 what files?
    need the names

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    D 1 Reply Last reply Oct 18, 2020, 11:41 AM Reply Quote 0
    • D Offline
      dawookie1979 @sdetweil
      last edited by Oct 18, 2020, 11:41 AM

      @sdetweil error: Your local changes to the following files would be overwritten by checkout:
      modules/default/calendar/calendar.js
      modules/default/weatherforecast/weatherforecast.js
      Please commit your changes or stash them before you switch branches.
      Aborting

      S 1 Reply Last reply Oct 18, 2020, 11:52 AM Reply Quote 0
      • S Away
        sdetweil @dawookie1979
        last edited by Oct 18, 2020, 11:52 AM

        @dawookie1979 those are mm files.

        some users don’t understand that you should never change those files to prevent the very problem u are having.

        you put variables in the config section of the module entry in config.js to adjust how the module operates

        see the link below in my signature on how to add modules.

        the command

        git diff filename 
        

        will show u all the changes you have made.
        write them down, and transfer those to config.js for each module
        calendar and weatherforecast

        then we can work on the next step

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Oct 18, 2020, 1:24 PM Reply Quote 0
        • D Offline
          dawookie1979 @sdetweil
          last edited by dawookie1979 Oct 18, 2020, 1:26 PM Oct 18, 2020, 1:24 PM

          @sdetweil i have made the changes to the files, but it says this

          code_text
          

          diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js
          index 83389911…d6dc98ac 100644
          — a/modules/default/weatherforecast/weatherforecast.js
          +++ b/modules/default/weatherforecast/weatherforecast.js
          @@ -293,13 +293,10 @@ Module.register(“weatherforecast”, {
          this.hide(this.config.animationSpeed, { lockString: this.identifier });
          return;
          }

                      params += "&cnt=" + (this.config.maxNumberOfDays < 1 || this.config.maxNumberOfDays > 17 ? 7 : this.config.maxNumberOfDays);
          
          •           params += "&units=" + this.config.units;
                      params += "&lang=" + this.config.lang;
                      params += "&APPID=" + this.config.appid;
            
          •           return params;
              },
            
          
          

          but there is no gap between these entries?```

          S 1 Reply Last reply Oct 18, 2020, 1:28 PM Reply Quote 0
          • S Away
            sdetweil @dawookie1979
            last edited by Oct 18, 2020, 1:28 PM

            @dawookie1979 ok, looks like you changed the code in the weatherforecast module…

            so, you can save/restore that… how about the calendar file

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Oct 18, 2020, 1:30 PM Reply Quote 0
            • D Offline
              dawookie1979 @sdetweil
              last edited by Oct 18, 2020, 1:30 PM

              @sdetweil i have done calendar file, how do i get an original weatherforcast.js file? or restore it?

              S 1 Reply Last reply Oct 18, 2020, 1:31 PM Reply Quote 0
              • S Away
                sdetweil @dawookie1979
                last edited by Oct 18, 2020, 1:31 PM

                @dawookie1979 do

                git stash
                

                you may have to register your name and email with the git commands shown from stash

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Oct 21, 2020, 2:54 PM Reply Quote 0
                • D Offline
                  dawookie1979 @sdetweil
                  last edited by Oct 21, 2020, 2:54 PM

                  @sdetweil I have sorted it now, I just deleted the stuck file, and did the upgrade/update to 2.14 and all is good. My calendar is now fixed. Thank you for your help

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 2 / 2
                  2 / 2
                  • First post
                    17/20
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy