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

iFrame and daily changing url ...

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 772 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 @MyMirror
    last edited by Sep 16, 2020, 4:26 AM

    is there possibly a workaround with python?

    1 Reply Last reply Reply Quote 0
    • J Offline
      Jalibu Module Developer
      last edited by Sep 17, 2020, 4:24 PM

      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 Sep 18, 2020, 6:31 AM Reply Quote 0
      • M Offline
        MyMirror @Jalibu
        last edited by MyMirror Sep 18, 2020, 6:35 AM Sep 18, 2020, 6:31 AM

        @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 Sep 18, 2020, 1:21 PM Reply Quote 0
        • S Away
          sdetweil @MyMirror
          last edited by Sep 18, 2020, 1:21 PM

          @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
          • J Offline
            Jalibu Module Developer
            last edited by Sep 20, 2020, 5:37 PM

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

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