Read the statement by Michael Teeuw here.
No Data in Module MMM-Formula1
-
Yeah. It works. Can u change it in the readme, that i must install these plugin.
-
@ostfilinchen That’s standard for all modules.
Once you have cloned them, you need to install them
-
@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 -
@strawberry-3.141 ahh, my bad!
apologies for the confusion
-
@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 @ianperrinThis 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 :-)
-
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 thecalendar
configuration option to true or false and the module works without error - On my Pi, the
ical-generator
package has never been installed. Setting thecalendar
option to false, allows the standings table to be displayed, but setting it totrue
triggers an error. Furthermore, omitting thecalendar
option from the config also triggered an error.
On investigation the default value for the
calendar
option was set to true. Thus always forcing theical-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, thengit pull
to get the latest version of the module, then setcalendar: false
in the config options and see if the standings display? - On my Dev machine, I have the
-
@ianperrin: thanks for Change the Default Config in your module. I’ve updated my Installation an it works!