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

Can I rotate the pages (MMM-Pages) with MMM-TelegramBot or MMM-RemoteControl?

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 3 Posters 980 Views 3 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.
  • M Offline
    MiguelDAD
    last edited by Dec 30, 2020, 10:57 AM

    With the MMM-Pages module, is there a way to turn pages whenever you want without touching the screen?

    Hasta Shakespere es inadecuado para describir tu perfección.

    A 1 Reply Last reply Dec 30, 2020, 1:48 PM Reply Quote 0
    • A Offline
      ashishtank Module Developer @MiguelDAD
      last edited by Dec 30, 2020, 1:48 PM

      @MiguelDAD You should be able to do it with remote control or telegram module. check the documentation of MMM-Pages. You need to send notification to it to change the page.

      1 Reply Last reply Reply Quote 0
      • M Offline
        MiguelDAD
        last edited by Dec 31, 2020, 11:13 AM

        I have tried to follow the wiki of the modules but it has not worked for me.

        {
                    module: 'MMM-Remote-Control',
                    // uncomment the following line to show the URL of the remote control on the mirror
                    // position: 'bottom_right',
                    // you can hide this module afterwards from the remote control itself
                    config: {
                        apiKey: 'xxx',
                        customCommand: {
                            PAGE_INCREMENT: 'Pasar de página',
                            PAGE_DECREMENT: 'Retroceder de página'
                        },
                    }
                },
                {
                    module: 'MMM-TelegramBot',
                    position: 'top_center',
                    config: {
                        telegramAPIKey: 'xxx',
                        allowedUser: ['MiguelDAD'],
                        customCommands: [
                            {
                                getCommands: function (commander) {
                                    commander.add({
                                        command: 'PAGE_INCREMENT',
                                        callback: 'PasarPagina'
                                    });
                                },
                            }
                        ]
                    }
        

        Hasta Shakespere es inadecuado para describir tu perfección.

        A 1 Reply Last reply Dec 31, 2020, 2:02 PM Reply Quote 0
        • ? Offline
          A Former User
          last edited by Dec 31, 2020, 12:05 PM

          read wiki of TB

          1 Reply Last reply Reply Quote 0
          • A Offline
            ashishtank Module Developer @MiguelDAD
            last edited by Dec 31, 2020, 2:02 PM

            @MiguelDAD the telegram bot syntax looks incorrect. Check the wiki https://github.com/bugsounet/MMM-TelegramBot/wiki/Custom-Command as @Bugsounet suggested or try below (I have not tested it my self yet)

            customCommands: [
            {
                command: "nextpage",
                description: "Show next page"
                callback: (command, handler, self) => {
                  self.sendNotification("PAGE_INCREMENT")
                  handler.reply("TEXT", "Okay... next page will be shown!")
                }
              }
            ]
            

            you can then use /nextpage command in telegram to change the page

            M 1 Reply Last reply Jan 12, 2021, 10:58 PM Reply Quote 0
            • M Offline
              MiguelDAD @ashishtank
              last edited by Jan 12, 2021, 10:58 PM

              @ashishtank I’m very stupid I know but I try these two options and neither works for me:

              {
                module: 'MMM-TelegramBot',
                position: 'top_center',
                config: {
                  telegramAPIKey : 'thisapkiokey',
              	allowedUser : ['MiguelDAD'], // This is NOT the username of bot.
              	customCommands: [
              		{
              			command: "nextpage",
              			description: "Muestra la siguiente página"
              			callback: (command, handler, self) => {
              			  self.sendNotification("PAGE_INCREMENT")
              			  handler.reply("TEXT", "Okay... mostrando la siguiente página")
              			}
              		  }
              		]
                }
              },
              
              {
                module: 'MMM-TelegramBot',
                position: 'top_center',
                config: {
                  telegramAPIKey : 'thisisokey',
              	allowedUser : ['MiguelDAD'], // This is NOT the username of bot.
                }
                customCommands: [
              	{
              		command: "nextpage",
              		description: "Muestra la siguiente página"
              		callback: (command, handler, self) => {
              		  self.sendNotification("PAGE_INCREMENT")
              		  handler.reply("TEXT", "Okay... mostrando la siguiente página")
              		}
              	  }
              	]
              },
              

              Hasta Shakespere es inadecuado para describir tu perfección.

              A 1 Reply Last reply Jan 13, 2021, 4:41 PM Reply Quote 0
              • ? Offline
                A Former User
                last edited by A Former User Jan 12, 2021, 11:17 PM Jan 12, 2021, 11:11 PM

                try this: (you have miss a coma)

                {
                  module: 'MMM-TelegramBot',
                  position: 'top_center',
                  config: {
                    telegramAPIKey : 'thisapkiokey',
                    allowedUser : ['MiguelDAD'], // This is NOT the username of bot.
                    customCommands: [
                      {
                        command: "nextpage",
                        description: "Muestra la siguiente página",
                        callback: (command, handler, self) => {
                          self.sendNotification("PAGE_INCREMENT")
                          handler.reply("TEXT", "Okay... mostrando la siguiente página")
                        }
                      }
                    ]
                  }
                },
                

                result of /nexpage and /help

                Bugsounet Cédric, [13.01.21 00:04
                /help nextpage
                
                Dev MagicMirror, [13.01.21 00:04]
                [En réponse à Bugsounet Cédric]
                /nextpage
                Muestra la siguiente página
                Servi par MMM-TelegramBot
                
                Bugsounet Cédric, [13.01.21 00:04]
                /nextpage
                
                Dev MagicMirror, [13.01.21 00:04]
                [En réponse à Bugsounet Cédric]
                Okay... mostrando la siguiente página
                

                and Naturaly the notification will be sended: (verified with my personal debug module)

                [Notification][MMM-TelegramBot] PAGE_INCREMENT 
                

                Note: don’t forget your adminChatId field

                M 1 Reply Last reply Jan 13, 2021, 9:02 PM Reply Quote 0
                • A Offline
                  ashishtank Module Developer @MiguelDAD
                  last edited by Jan 13, 2021, 4:41 PM

                  @MiguelDAD said in Can I rotate the pages (MMM-Pages) with MMM-TelegramBot or MMM-RemoteControl?:

                  >  config: {
                  >     telegramAPIKey : 'thisisokey',
                  > 	allowedUser : ['MiguelDAD'], // This is NOT the username of bot.
                  >   } < ---------------------------------Comma is missing here
                  >   customCommands: [
                  > 	{
                  > 		command: "nextpage",
                  >
                  

                  @MiguelDAD Are you able to get it working after adding comma here as @Bugsounet have suggested ?

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    MiguelDAD @Guest
                    last edited by Jan 13, 2021, 9:02 PM

                    @Bugsounet said in Can I rotate the pages (MMM-Pages) with MMM-TelegramBot or MMM-RemoteControl?:

                    {
                    module: ‘MMM-TelegramBot’,
                    position: ‘top_center’,
                    config: {
                    telegramAPIKey : ‘thisapkiokey’,
                    allowedUser : [‘MiguelDAD’], // This is NOT the username of bot.
                    customCommands: [
                    {
                    command: “nextpage”,
                    description: “Muestra la siguiente página”,
                    callback: (command, handler, self) => {
                    self.sendNotification(“PAGE_INCREMENT”)
                    handler.reply(“TEXT”, “Okay… mostrando la siguiente página”)
                    }
                    }
                    ]
                    }
                    },

                    Niceee, thanks so much <3

                    Hasta Shakespere es inadecuado para describir tu perfección.

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