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 with username and password

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    5 Posts 4 Posters 1.6k Views 5 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.
    • N Offline
      Nox
      last edited by

      im trying to change the iframe module so it can handle password protected sites but it wont work
      any tips?

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = 
      {
          address: "localhost", // Address to listen on, can be:
                                // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                                // - another specific IPv4/6 to listen on a specific interface
                                // - "", "0.0.0.0", "::" to listen on any interface
                                // Default, when address config is left out, is "localhost"
          port: 8080,
          ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                                                                 // or add a specific IPv4 of 192.168.1.5 :
                                                                 // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                                                 // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                                                                 // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
          
          language: "de",
          timeFormat: 24,
          units: "metric", 
      
      modules: [
      		//MODUL
      			{
      				module: 'iFrame',
      				position: 'bottom_center',	// This can be any of the regions.
      					config: {
      								// See 'Configuration options' for more information.
      							url: ["https://www.stundenplan24.de/20070498/vplan/"],  // as many URLs you want or you can just ["ENTER IN URL"] if single URL.
      							//updateInterval: 0.5 * 60 * 1000, // rotate URLs every 30 seconds
      							width: "100%", // Optional. Default: 100%
      							height: "100px" //Optional. Default: 100px
      							}
      			},	
      			
                  
      			
      			
              ]
      
      };
      if (typeof module !== "undefined") {module.exports = config;}
      
      
      
      
      /* global Module */
      
      /* Magic Mirror
       * Module: iFrame
       *
       * By Ben Williams http://desertblade.com
       * MIT Licensed.
       */
      
      Module.register("iFrame",{
      		// Default module config.
      		defaults: {
      				height:"300px",
      				width:"100%"
      		},
      
      
      	// Override dom generator. 
      	getDom: function() { 
      		var iframe = document.createElement("iframe");
              iframe.id="framer";
      		iframe.style = "border:0";
      		iframe.width = this.config.width;
      		iframe.height = this.config.height;
              
      		//iframe.src =  this.config.url;
              /*var iframeURL = this.config.url;
              var iframeID = "framer";
              var req = new XMLHttpRequest();
              req.open("POST",this.iframeURL,false, "username", "password");
              req.send();
              var iFrameWin =document.getElementbyID(this.iframeID);*/
              iFrameWin.src = "google.de";
              //this.iframeURL + "?extraParameters=true";
              
              
              
      		return iframe;
      	}
      
      });
      
      
      1 Reply Last reply Reply Quote 0
      • rudibaraniR Offline
        rudibarani Project Sponsor
        last edited by

        Hi Nox,
        did you find a solution for this?
        Best,
        Phillip

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

          Has anyone found a solution?

          1 Reply Last reply Reply Quote 0
          • ChrisC Offline
            Chris
            last edited by

            Good morning all,

            I also encounter this kind of problem. I would like to insert a frame of a Jeedom design representing the state of my connected objects throughout the house. But at the first connection I am supposed to enter the username and password as well as checked the box “register this computer”

            Capture.JPG

            If I manage to get past this stage and the computer (finally the browser) is registered, I will be able to access this type of design later which will return all the information of the house to me:

            Capture.JPG

            Capture.JPG

            Could someone help me with this fix?

            Thanking you in advance,

            Regards,

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

              Chris check this https://support.actiontiles.com/en/communities/12/topics/2916-logging-into-actiontiles-in-iframe-with-no-keyboard
              its work for me

              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