Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add individual rotation time for each page #88

Merged

Conversation

KristjanESPERANTO
Copy link
Collaborator

@KristjanESPERANTO KristjanESPERANTO commented Feb 2, 2025

The aim of this PR is to introduce an option to set an individual rotation time for each page.

Here is an example to give you an idea - it sets an individual time for page 2:

    {
      module: 'MMM-pages',
      config: {
        timings: {
          default: 5000,
          2: 20000
        },
        modules: [
          ['page0'],    // ---> 5 sec
          ['page1'],    // ---> 5 sec
          ['page2'],    // ---> 20 sec
          ['page3'],    // ---> 5 sec
        ]
      }
    },

I tested it with Module name based configuration and Class based configuration.

Note 2025-03-23: Updated to follow requests from #46.

@edward-shen
Copy link
Owner

@KristjanESPERANTO KristjanESPERANTO changed the title Add 'individualRotationTimes' + minor changes Add individual rotation time for each page Mar 23, 2025
@KristjanESPERANTO KristjanESPERANTO changed the base branch from master to develop March 25, 2025 18:11
@KristjanESPERANTO KristjanESPERANTO merged commit 2ccd56e into edward-shen:develop Mar 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants