MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. schmucke
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 20
    • Groups 0

    Topics

    • S

      MMM-Button dont load

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      5
      0 Votes
      5 Posts
      2k Views
      S
      @yawns thank you, now the module starts. thank you very much
    • S

      Get pictures from synology NAS - "Rediscover This Day"

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      9
      1 Votes
      9 Posts
      5k Views
      G
      would LOVE to do this!!
    • S

      Copyright of modul?

      Watching Ignoring Scheduled Pinned Locked Moved Development
      6
      0 Votes
      6 Posts
      3k Views
      cowboysdudeC
      @schmucke said in Copyright of modul?: Hey, a simple question: If i use a modul to build my own, and i use Code from the module. Is this ok, or must i Code my own module? I want use the core Code from a module to modify the function. The core module change the backgroundimage, i want this only for photos from local folder in a named . In the future i want to get Images from amazon Photo cloud… Thanks!!! This is from the license… Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. Does that help? :)
    • S

      Iframe Module for Webcam

      Watching Ignoring Scheduled Pinned Locked Moved Requests
      2
      0 Votes
      2 Posts
      3k Views
      S
      Ok , i have build my own now - i am not really a javescript programmer - pls dont laugh!!! i have the following code, how can i initiate the the startonload() function ist run. if i write this in dom, there will be run, but not shiow the wrapper… /* global Module */ /* Magic Mirror * Module: MMM-iFrame * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ Module.register("MMM-iFrame",{ // Default module config. defaults: { animationSpeed: 1000, }, preload: function() { this.img.src='http://guest@192.168.188.65/tmpfs/auto.jpg?'+new Date; }, changesrc: function() { img1.src=img.src; this.preload(); setTimeout(changesrc,3500); }, update: function() { var imgObj = document.getElementById('img1'); imgObj.src = this.img.src; this.img.src = "http://guest@192.168.188.65/tmpfs/auto.jpg?" + (new Date()).getTime(); }, takeerror: function() { this.img.src = "http://guest@192.168.188.65/tmpfs/auto.jpg?" + (new Date()).getTime(); }, startonload: function() { this.img.src = "http://guest@192.168.188.65/tmpfs/auto.jpg?" + (new Date()).getTime(); this.img.onerror=this.takeerror(); this.img.onload=this.update(); }, load: function() { if (navigator.appName.indexOf("Microsoft IE Mobile") != -1) { this.preload(); this.changesrc(); return; } this.startonload(); }, start: function() { Log.info('Starting module: ' + this.name); var self = this; var imgObj = ""; var img = new Image(); this.img = new Image(); this.imgObj; setInterval(function() { self.updateDom(); }, this.config.animationSpeed); }, // Override dom generator. getDom: function() { var wrapper = document.createElement("div"); var imagewrapper = document.createElement("iFrame"); imagewrapper.style = "border:0" imagewrapper.width = 0; imagewrapper.height = 0; imagewrapper.src = "http://guest@192.168.188.65/tmpfs/auto.jpg"; wrapper.innerHTML = "<img class="center-ver3" src="http://guest@192.168.188.65/tmpfs/auto.jpg" />"; wrapper.appendChild(imagewrapper); return wrapper; } }); (The iFrame is not visible, it is just for open a Browser session with a user without a password) Can anyone help me by my probem? thx
    • 1 / 1