• 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-SL how to trigger update?

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 3.6k 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.
  • B Offline
    Baxer
    last edited by Jul 19, 2017, 12:30 AM

    On the Module MMM-SL’s github it says
    “updateNotification The notification to listen for. If received then will trigger update of departure times.”
    and
    “I recommend that you don’t update it with a timer, otherwise you will see that after a while you will get an error message instead. The recommended way is to trigger the update either with a button or similiar.”

    but i have no idea how to actually trigger the update and i havent found any guidance on how to do it on the modules github,
    if anyone got the answer it would be to great help

    M 1 Reply Last reply Jul 19, 2017, 11:31 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @Baxer
      last edited by Jul 19, 2017, 11:31 PM

      @Baxer

      I don’t know if this will help you but it’s worth looking into I think.
      https://forum.magicmirror.builders/topic/1575/mmm-buttons-connect-multiple-buttons-to-send-configurable-notifications

      Perhaps @Jopyth can be of some help in that topic

      Create a working config
      How to add modules

      B 1 Reply Last reply Jul 19, 2017, 11:57 PM Reply Quote 1
      • B Offline
        Baxer @Mykle1
        last edited by Jul 19, 2017, 11:57 PM

        @Mykle1 thanks for the tips unfortunately i dont have a button to test this with.

        J 1 Reply Last reply Jul 20, 2017, 8:05 AM Reply Quote 0
        • J Offline
          Jopyth Moderator @Baxer
          last edited by Jul 20, 2017, 8:05 AM

          @Mykle1 Thanks for mentioning. :)

          @Baxer If you do not have a button, you could use a custom URL together with the Remote-Control (you need to install and configure the module though, do not forget to adapt your IP whitelist). Then you can send a notification request via an URL by accessing a custom URL.

          In your case the URL would probably look like this:
          http://192.168.xxx.xxx:8080/remote?notification=UPDATE_SL&action=NOTIFICATION

          Or you could change the module to use a timer, but I assume the author of the module had a good reason for not doing that.

          Helpful sticky: How to troubleshoot

          M B 3 Replies Last reply Jul 20, 2017, 11:12 AM Reply Quote 2
          • M Offline
            Mykle1 Project Sponsor Module Developer @Jopyth
            last edited by Jul 20, 2017, 11:12 AM

            @Jopyth

            You’re awesome!

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • B Offline
              Baxer @Jopyth
              last edited by Jul 20, 2017, 12:02 PM

              @Jopyth Holy shit it works, thanks man
              the reason the author doesnt think the timer is a good idea its because the API have an maximum amount of calls you can make in a month which is 30 000, but if i wanted to go against his advice and make it update every 5 minute or so, how would i do that

              M 1 Reply Last reply Jul 20, 2017, 6:32 PM Reply Quote 0
              • B Offline
                Baxer @Jopyth
                last edited by Jul 20, 2017, 12:14 PM

                @Jopyth I figured it out myself but thanks for the help, i used MMM-ModuleScheduler and put this

                                 {
                        module: 'MMM-ModuleScheduler',
                        config: {
                            notification_schedule: {
                                notification: 'UPDATE_SL',
                                schedule: '*/5 * * * *',
                                payload: {
                                    type: "UPDATE_SL",
                                    title: 'sl!',
                                    action: "notification"
                                }
                            }
                        }
                

                to make it update every 5 minutes

                1 Reply Last reply Reply Quote 3
                • M Offline
                  Mykle1 Project Sponsor Module Developer @Baxer
                  last edited by Jul 20, 2017, 6:32 PM

                  @Baxer said in MMM-SL how to trigger update?:

                  Jopyth Holy shit it works, thanks man

                  I told you he was awesome!

                  Create a working config
                  How to add modules

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