MMRIZE / MMM-CalendarExt3

MagicMirror calendar view module
MIT License
58 stars 22 forks source link

firstDayOfWeek: 0 not working #54

Closed OvernightSuccess123 closed 1 year ago

OvernightSuccess123 commented 1 year ago

Everything else seems to be working. Here is my config. Am I doing something wrong?

`{ module: "MMM-CalendarExt3", position: "bottom_bar", useWeather: true, weatherLocationName: "LOCATION", mode: "month", firstDayOfWeek: 0, useSymbol: true, minimalDaysOfNewYear: 1, maxEventLines: 10, waitFetch: 120 * 1000, displayLegend: true,

            },`
eouia commented 1 year ago

Leave me more details. Each displayLegend and firstDayOfWeek is individually not working? or describing both on same time is the issue? Can you show me the screen what happened?

OvernightSuccess123 commented 1 year ago

Thanks. I'll start with one issue at a time.

Here is a screen shot showing that the first day of week is Monday instead of Sunday which is NOT expected if property firstDayOfWeek: 0.

image

eouia commented 1 year ago

I'm not sure your configuration is proper.

image

This is what you posted.

useWeather: true,
weatherLocationName: "LOCATION",
mode: "month",
firstDayOfWeek: 0,
useSymbol: true,
minimalDaysOfNewYear: 1,
maxEventLines: 10,
waitFetch: 120 * 1000,
displayLegend: true,

should be placed inside of config: { } of module.

So this probably be the right syntax;

{
  module: "MMM-CalendarExt3",
  position: "bottom_bar",
  config: {
    useWeather: true,
    weatherLocationName: "LOCATION",
    mode: "month",
    firstDayOfWeek: 0,
    useSymbol: true,
    minimalDaysOfNewYear: 1,
    maxEventLines: 10,
    waitFetch: 120 * 1000,
    displayLegend: true,
  }
}
OvernightSuccess123 commented 1 year ago

Yikes, thanks for the tip.

Of course it works now. Thanks!

eouia commented 1 year ago

Sounds so good. I'll close this issue.