• 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.

No Data in Module MMM-Formula1

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 4 Posters 4.1k Views 4 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.
  • O Offline
    ostfilinchen
    last edited by Sep 7, 2016, 8:33 AM

    Hi everybody!

    I installed the Formula 1 Module and copy the Code in the Config.js. When i start the MM, i get no Data present for the Formula 1 Module.

    What can i do, to get the Informations on the Screen?

    Regards,
    Daniel

    S 1 Reply Last reply Sep 7, 2016, 9:33 AM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @ostfilinchen
      last edited by Sep 7, 2016, 9:33 AM

      @ostfilinchen I’m guessing you have Error: Cannot find module 'ical-generator' in your console, if so then do the following cd ~/MagicMirror/modules/MMM-Formula1 and then type npm install

      Please create a github issue if you need help, so I can keep track

      1 Reply Last reply Reply Quote 1
      • O Offline
        ostfilinchen
        last edited by Sep 7, 2016, 7:13 PM

        Yeah. It works. Can u change it in the readme, that i must install these plugin.

        M 1 Reply Last reply Sep 8, 2016, 2:31 PM Reply Quote 0
        • M Offline
          Mitchfarino Module Developer @ostfilinchen
          last edited by Sep 8, 2016, 2:31 PM

          @ostfilinchen That’s standard for all modules.

          Once you have cloned them, you need to install them

          S 1 Reply Last reply Sep 8, 2016, 2:50 PM Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer @Mitchfarino
            last edited by Sep 8, 2016, 2:50 PM

            @Mitchfarino said in No Data in Module MMM-Formula1:

            @ostfilinchen That’s standard for all modules.

            Once you have cloned them, you need to install them

            Actually that is not a gerneral rule. Not every module has NPM Dependencies. When there is a package.json file and there is an object called dependencies you have to type npm install, but there can be npm dependencies also without a package.json file, when the developer doesn’t create one he will tell something about this in the install instructions.

            In this specific readme there is a small hidden notice about installing dependencies in Displaying the Race Schedule section, but it is necessary anyways, so it should be moved to the install instructions @ianperrin

            Please create a github issue if you need help, so I can keep track

            M O 2 Replies Last reply Sep 8, 2016, 2:53 PM Reply Quote 0
            • M Offline
              Mitchfarino Module Developer @strawberry 3.141
              last edited by Sep 8, 2016, 2:53 PM

              @strawberry-3.141 ahh, my bad!

              apologies for the confusion

              1 Reply Last reply Reply Quote 0
              • O Offline
                ostfilinchen @strawberry 3.141
                last edited by Sep 8, 2016, 3:01 PM

                @strawberry-3.141 said in No Data in Module MMM-Formula1:

                @Mitchfarino said in No Data in Module MMM-Formula1:

                @ostfilinchen That’s standard for all modules.

                Once you have cloned them, you need to install them

                Actually that is not a gerneral rule. Not every module has NPM Dependencies. When there is a package.json file and there is an object called dependencies you have to type npm install, but there can be npm dependencies also without a package.json file, when the developer doesn’t create one he will tell something about this in the install instructions.

                In this specific readme there is a small hidden notice about installing dependencies in Displaying the Race Schedule section, but it is necessary anyways, so it should be moved to the install instructions @ianperrin

                This is what i mean with “Can u Change it in the readme, that i must install these plugin.”

                Install the ical-Generator is necessary to run the module.

                Thanks guys for helping :-)

                1 Reply Last reply Reply Quote 0
                • I Offline
                  ianperrin
                  last edited by ianperrin Sep 8, 2016, 9:29 PM Sep 8, 2016, 9:28 PM

                  So in adding the calendar functionality to the module, my goal was to make it (and the ical-generator dependency) optional so that those who didn’t wish to use it could simply clone the repo, add the basic config and be up and running. Whereas those who wanted the calendar, could go through the additional npm install steps.

                  I tested this with the following set up:

                  • On my Dev machine, I have the ical-generator package installed. Here I can set the calendar configuration option to true or false and the module works without error
                  • On my Pi, the ical-generator package has never been installed. Setting the calendar option to false, allows the standings table to be displayed, but setting it to true triggers an error. Furthermore, omitting the calendar option from the config also triggered an error.

                  On investigation the default value for the calendar option was set to true. Thus always forcing the ical-generator package to be required. I’ve updated the code to correctly set the default to false and now the Pi instances works as expected without the package if the option is not set in the config and if it set to false .

                  Could it be that in your instance, the config for MMM-Forumla1 did not include the calendar option, therefore, the module failed?

                  Perhaps someone could confirm this by running npm uninstall ical-generator in the module folder, then git pull to get the latest version of the module, then set calendar: false in the config options and see if the standings display?

                  "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

                  1 Reply Last reply Reply Quote 0
                  • O Offline
                    ostfilinchen
                    last edited by Sep 9, 2016, 8:13 AM

                    @ianperrin: thanks for Change the Default Config in your module. I’ve updated my Installation an it works!

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    1 / 1
                    • First post
                      3/9
                      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