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

MMM-Pages - Changing pages

Scheduled Pinned Locked Moved Troubleshooting
1 Posts 1 Posters 364 Views 1 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.
  • B Offline
    banbutcher
    last edited by Mar 26, 2020, 10:58 AM

    ive been trying to change page using recipies. ive butchered the test.js in the recipies folder in AMK2 … ive got this far:

    var recipe = {
      transcriptionHooks: {
        "HOOKING_TEST": {
          pattern: "how's traffic",
          command: "CMD_TRAFFIC"
        },
        "HOOKING_TEST2": {
          pattern: "test ([a-z 0-9]+)$",
          command: "INTRODUCTION2"
        },
      },
      commands: {
        "CMD_TRAFFIC": {
          notificationExec: {
    	notification: "PAGE_CHANGED",
    	payload: 1		
          },
        }
      }
    }
    
    exports.recipe = recipe // Don't remove this line.
    
    

    any help is greatly appreciated ! :)

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