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.

    how to pull new element added to an array?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    57 Posts 4 Posters 22.0k Views 4 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.
    • S Offline
      sdetweil
      last edited by sdetweil

      i have posted my almost working code to your github project in a new branch.

      the image url is extracted, saved and added to each rss feed response item.
      that url is used in the image.src attribute for the getDom function…

      BUT… the url is the FULL url, and I think the web engine under MM only allows src= from LOCAL files…

      when u look at the debug data items, the web server base is

      http://0.0.0.0:configured_port

      meaning adding a full url on to the end of that will fail…

      i posted info in an issue on github on what it might take to solve that…

      |edit: I see that Sean has used a different ui widget (Ticker) that seems to solve this problem

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Guest
        last edited by

        @sean nicely done…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • justjim1220J Offline
          justjim1220 Module Developer @sdetweil
          last edited by

          @sdetweil

          LOL, I woke up early this morning thinking I could get something like this to work…

          0_1539979737672_Screenshot (399).png

          But, of course, I probably had something wrong somewhere, because it didn’t!!!

          "Life's Too Short To Dance With Ugly People"
          Jim Hallock - 1995

          1 Reply Last reply Reply Quote 0
          • justjim1220J Offline
            justjim1220 Module Developer @Guest
            last edited by

            @sean

            Not sure why, but this didn’t work for me, I will try it again in a little while, probably something I’m doing wrong!

            Thank You!!!

            "Life's Too Short To Dance With Ugly People"
            Jim Hallock - 1995

            1 Reply Last reply Reply Quote 0
            • justjim1220J Offline
              justjim1220 Module Developer @Guest
              last edited by

              @sean

              This is ABSOLUTELY WONDERFUL!!!

              THANK YOU, THANK YOU, THANK YOU!!! :smiling_face: :smiling_face: :smiling_face:

              (still gonna try to get the first one going you sent link for in previous post!) :winking_face:

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil
                last edited by sdetweil

                @sean and I have the same solution to GET the image url, the use of the tickertape widget which supports image is the key trick

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                justjim1220J 1 Reply Last reply Reply Quote 0
                • justjim1220J Offline
                  justjim1220 Module Developer @sdetweil
                  last edited by

                  @sdetweil

                  Thank You for ALL your help on this, I think I have learned a lot doing this module!

                  THANK YOU! THANK YOU ! THANK YOU! !!! :smiling_face: :smiling_face: :smiling_face:

                  I’m looking at doing a bit of tweaking with each solution and when I get them done, I will commit to the repository and add to 3rd party list! :smiling_face_with_sunglasses:

                  "Life's Too Short To Dance With Ugly People"
                  Jim Hallock - 1995

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @justjim1220
                    last edited by

                    @justjim1220 the key for all these callbacks and .on() routines, is that you cannot WAIT for things to happen in a browser, else it stops functioning… click,… nothing happens…

                    so, you have all these little event handlers… and YOU have to think about WHEN the happen relative to each other in time…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    justjim1220J 2 Replies Last reply Reply Quote 0
                    • justjim1220J Offline
                      justjim1220 Module Developer @sdetweil
                      last edited by

                      @sdetweil

                      I get that now. Thanks!

                      My only issue at the moment is getting the speed of the animation to go faster on my original that Sean fixed to work. His re-worked one is adjustable, mine won’t budge!

                      I’ve even tried to incorporate some od the same coding he used in his, and I can’t figure it out! It is very weird!!!

                      "Life's Too Short To Dance With Ugly People"
                      Jim Hallock - 1995

                      1 Reply Last reply Reply Quote 0
                      • justjim1220J Offline
                        justjim1220 Module Developer @sdetweil
                        last edited by

                        @sdetweil

                        ok, so here are some of the differences between the one we have been working on, and the one Sean reworked:

                        His truncates the description, I cannot figure out how to make it not truncate.

                        His images are set to height and width, Mine, I can set the height and the width is auto configured for aspect-ratio.

                        His shows the same message repeatedly for a period of time, then changes, Mine changes after each message.

                        with his, I can adjust the scroll speed, mine, I can’t figure out why it won’t change.

                        So, I am trying to figure out how to make the scroll adjustable as it goes really slow.

                        "Life's Too Short To Dance With Ugly People"
                        Jim Hallock - 1995

                        ? 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 6 / 6
                        • 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