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.

    added touch support to MMM-ImagesPhotos

    Scheduled Pinned Locked Moved Unsolved Requests
    5 Posts 2 Posters 172 Views 2 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.
    • R Offline
      rts58
      last edited by

      Hi,

      My very old monitor died that I was using for mm. I picked up a new one that supported touch. I’ve been using MMM-ImagesPhotos for quite a while, and wanted to take advantage of my new touch display. So chatgpt and I hacked an update together. This allows tapping the screen to pause and swipe left or right to move forward or back through the list of images.

      This required quite a bit of change and am not sure whether this should be a fork or pull request. I hoping @sdetweil could let me know which way to go.

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @rts58
        last edited by sdetweil

        @rts58 if the resulting support is an add on, old stuff works, new does too, then a pull request to the original source is best

        If it’s really all new, then you should publish a new module of your own

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Reply Quote 1
        • R Offline
          rts58 @sdetweil
          last edited by

          @sdetweil okay, thanks Sam. I’ve just added some stuff for navigation and made some changes to support that. Everything should continue to work fine. So I will create pull request.

          R 1 Reply Last reply Reply Quote 2
          • R Offline
            rts58 @rts58
            last edited by

            Here is link to the pull request if anyone wants to try out the changes. Clone with

            git clone -b touchscreen-pr-clean https://github.com/rts58/MMM-ImagesPhotos.git
            

            Aside from the touch support, there are a couple of other changes worth mentioning. The original code selected a random image each time a new image was needed. Because I wanted to be able to move backward and forward through the slideshow, it now creates a one-time randomized playlist of all images. This ensures every image is shown once before any are repeated.

            Navigation is also available via notifications. If you use MMM-RemoteControl, the app’s module controls provide Previous, Next, and Pause/Resume even without a touch monitor.

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @rts58
              last edited by

              @rts58 very cool…

              you can also use my MMM-CurlToNotification to send notifications from scripts…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 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