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.

    iFrame and daily changing url ...

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 3 Posters 828 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
      MyMirror
      last edited by

      Hello MM-Fans,
      I would like to bring the content of a website (my children’s school timetable) to my mirror via iFrame. Basically no problem, but the page requires

      • a registration (user / password)
      • a mouse click on an image
      • until I come to a URL that changes daily and which I can display via iFrame.

      Has one of you already solved such a problem?
      I would be happy about every idea.

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MyMirror @MyMirror
        last edited by

        is there possibly a workaround with python?

        1 Reply Last reply Reply Quote 0
        • JalibuJ Offline
          Jalibu Module Developer
          last edited by

          it depends on how the “user / passwort” and the required mouse click is implemented and what it actually does…
          Without more details it is hard to give you an answer here.

          In the worst case you could use a scripted headless chrome in the background that logs in, clicks the image and takes a screenshot of the page ;-)

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MyMirror @Jalibu
            last edited by MyMirror

            @Jalibu
            Thanks for your reply.
            I just can give the url …
            https://www.dsbmobile.de

            My Problem:
            The normal use is to login with user/passwort.
            After the login it looks like that:
            a5f1b485-62c3-4bcc-a586-e9fc380e4801-grafik.png

            On this page i have to click on the plan to get the larger version (cutout):
            01051f2b-0c85-46aa-831e-aa4c2f837196-grafik.png

            On the right side is a button to get a side for the MM.
            See the url …
            7ae980a2-29b6-4510-8fb8-8c67ec666b7f-grafik.png

            Another problem: On this site, there is information for 2 days. To switch between the days, i have to klick the “<” or “>” on the upper left hand site.

            So the main problem is to get the “https://app.dsbcontrol.de/data/5480ecb0-656c-4da8-be59-e50e376a97aa/eadd132b …” every day and how to pass this changing url every day to the iFrame module. If i use this url, i didn’t have to use a user/passwort.

            The second problem is to get the information for the right day … (“<” or “>”)

            Any ideas?

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

              @MyMirror so, it would take some programming and investigation

              investigation is using the developers window on those pages to see if there is any ID or layout u can find to locate the button/column elements to send a click to

              then programming wise you can get to the doc in the iframe and send the clicks

              https://www.dyn-web.com/tutorials/iframes/refs/iframe.php

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • JalibuJ Offline
                Jalibu Module Developer
                last edited by

                I would inspect the network traffic and try to reproduce it on the node backend.

                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