desertblade / iFrame

An iFrame module for Magic Mirror
25 stars 18 forks source link

Module: iFrame

The iFrame module is for MagicMirror. It is a simple way to add an iFrame of any web content to your MagicMirror.

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
    {
        module: 'iFrame',
        position: 'bottom_bar', // This can be any of the regions.
        config: {
            // See 'Configuration options' for more information.
                url: "ENTER IN URL"
                width: "100%" // Optional. Default: 100%
                height: "100px" //Optional. Default: 100px
            }
        }
    }
]

Configuration options

The following properties can be configured:

Option Description
url the URL in the iFrame

Example:"http:http://example.com/"
Default value: ''
width the width of the iFrame

Example:"100%"
Example:"200px"
Default value: "100%"
height the width of the iFrame

Example:"100%"
Example:"300px"
Default value: "100px"