Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. thetobyde
    • Profile
    • Following 1
    • Followers 0
    • Topics 4
    • Posts 10
    • Best 1
    • Groups 0

    thetobyde

    @thetobyde

    1
    Reputation
    13
    Profile views
    10
    Posts
    0
    Followers
    1
    Following
    Joined Last Online
    Website www.instagram.com/tobias_lutz/ Location Germany Age 22

    thetobyde Follow

    Best posts made by thetobyde

    • Meross

      Hey there. I would really like to have a module to see all my Meross products like plugs for my lights 🙂
      Maybe to see the status of the products AND:
      Touch integration to turn ON/OFF the lights 🙂

      Maybe something like this, if possible:
      (just an idea)
      meross module request.png

      Thank u for help! 🙂
      Toby!

      posted in Requests
      thetobyde
      thetobyde

    Latest posts made by thetobyde

    • Change MMM-CalExt2´s code a bit

      Hey guys. I build my own “Apple” Mirror with MagicMirror.
      I love the MMM-CalendarExt2 module but he uses Icons from iconify for each calendar.
      Here is his module:
      https://github.com/MMM-CalendarExt2/MMM-CalendarExt2

      The icons look like this:
      Bildschirmfoto 2020-07-06 um 11.02.41.png

      My Request:
      Can you implement a option to use lokal pictures instead of icons from iconify? Then I could use these cute Memojis 🙂
      Bildschirmfoto 2020-07-06 um 11.06.38.png

      Thx Melli & Toby 😎😍

      posted in Requests
      thetobyde
      thetobyde
    • RE: Send existing Notifications from a script

      It‘s working! Thx u!!

      posted in Development
      thetobyde
      thetobyde
    • RE: Send existing Notifications from a script

      @sdetweil didt change that because it worked for the pre-existing Shutdown and Reboot button from the developer of MMM-smartTouch… isnt it right?

      posted in Development
      thetobyde
      thetobyde
    • RE: Send existing Notifications from a script

      @sdetweil
      meinCode

      Like this 🙂

      posted in Development
      thetobyde
      thetobyde
    • RE: Send existing Notifications from a script

      @sdetweil i changed the code in the nodeHelper from this. to self.

      posted in Development
      thetobyde
      thetobyde
    • RE: Send existing Notifications from a script

      @sdetweil thx for the fast answer. I change „this.send…“ to „self.send…“ but did not work sadly… i also changed the payload from 1 to 0, because the notifications from MMM-pages are zero-based. So page 1 is PAGE_CHANGED, 0…

      The var self = this is written by the Developer of MMM-SmartTouch

      posted in Development
      thetobyde
      thetobyde
    • Send existing Notifications from a script

      Hey 🙂
      I want to re-write the “MMM-SmartTouch” Module to have an “App-Dock-Bar”. I was able to change the CSS file to have this look now:

      neu1.JPG

      I also was able to add the first 4 buttons with costom icons. I want to have these icons to change the pages with “MMM-pages”.
      The pages module listens on these Notifications: PAGE_CHANGED, pageNumber

      But I cant get it to work. This is my smartTouch.js and my nodeHelper:

      MMM-smartTouch.js :

      //Main Menu Bar
              var main_menu = document.createElement("div");
              main_menu.className = "main-menu"
              main_menu.id = "navbar"
              home_div.appendChild(main_menu)
              var main_menu_ul = document.createElement("ul");
              main_menu_ul.className = "navbar-nav"
              main_menu.appendChild(main_menu_ul)
      
      	//Page 1 (Home Screen)
              var main_menu_li_restart = document.createElement("span");
              main_menu_li_restart.innerHTML = "<span class='fas fa-home fa-3x'></span>" + "&nbsp" + "&nbsp" + "&nbsp" + "&nbsp";
              main_menu_li_restart.className = "li-t"
              main_menu_ul.appendChild(main_menu_li_restart)
              main_menu_li_restart.addEventListener("click", () => this.sendSocketNotification("PAGEONE", {}));
      
      	//Page 2 (Wetter)
              var main_menu_li_restart = document.createElement("span");
              main_menu_li_restart.innerHTML = "<span class='fas fa-cloud-sun fa-3x'></span>" + "&nbsp" + "&nbsp" + "&nbsp" + "&nbsp";
              main_menu_li_restart.className = "li-t"
              main_menu_ul.appendChild(main_menu_li_restart)
              main_menu_li_restart.addEventListener("click", () => this.sendSocketNotification("SHUTDOWN", {}));
      
      	//Page 3 (Drive Bilder)
              var main_menu_li_restart = document.createElement("span");
              main_menu_li_restart.innerHTML = "<span class='far fa-image fa-3x'></span>" + "&nbsp" + "&nbsp" + "&nbsp" + "&nbsp";
              main_menu_li_restart.className = "li-t"
              main_menu_ul.appendChild(main_menu_li_restart)
              main_menu_li_restart.addEventListener("click", () => this.sendSocketNotification("SHUTDOWN", {}));
      
      	//Page 4 (Party Bilder)
              var main_menu_li_restart = document.createElement("span");
              main_menu_li_restart.innerHTML = "<span class='far fa-image fa-3x'></span>" + "&nbsp" + "&nbsp" + "&nbsp" + "&nbsp";
              main_menu_li_restart.className = "li-t"
              main_menu_ul.appendChild(main_menu_li_restart)
              main_menu_li_restart.addEventListener("click", () => this.sendSocketNotification("SHUTDOWN", {}));
              
              //Power Off Button
              var main_menu_li_shutdown = document.createElement("span");
              main_menu_li_shutdown.innerHTML = "<span class='fa fa-power-off fa-3x'></span>" + "&nbsp" + "&nbsp" + "&nbsp" + "&nbsp";
              main_menu_li_shutdown.className = "li-t"
              main_menu_ul.appendChild(main_menu_li_shutdown)
      
              //Onclick event to send shutdown notification
              main_menu_li_shutdown.addEventListener("click", () => this.sendSocketNotification("SHUTDOWN", {}));
      
              //Restart Button
              var main_menu_li_restart = document.createElement("span");
              main_menu_li_restart.innerHTML = "<span class='fa fa-repeat fa-3x'></span>" + "&nbsp" + "&nbsp" + "&nbsp" + "&nbsp";
              main_menu_li_restart.className = "li-t"
              main_menu_ul.appendChild(main_menu_li_restart)
              main_menu_li_restart.addEventListener("click", () => this.sendSocketNotification("RESTART", {}));
      
      

      and my nodeHelper.js:

      if (notification === "PAGEONE") {
                    console.log("Page1!")
                    require('child_process').this.sendSocketNotification("PAGE_CHANGED", 1);
                }
      
      	  if (notification === "SHUTDOWN") {
                    console.log("Shutting Down!")
                    require('child_process').exec('shutdown -h now', console.log)
                }
      
                if (notification === "RESTART") {
                    console.log("Restarting Magic Mirror!")
                    require('child_process').exec('sudo reboot', console.log)
                }
      

      nothing happens when i touch the first (Page1) icon…

      Thx for help! 🙂 Toby

      posted in Development
      thetobyde
      thetobyde
    • Start/Stop a pm2 script with Notifications of a module?

      Hey guys 🙂 I have a MM with a Pi Cam and two modules, that use the Cam. One Face-Rec-Module and a Selfie-Module.
      The cam cannot be used in two processes, right? The Face Reg Module does have a pm2 .sh script, that activates the Cam and uses it for all time. I was able to stop this pm2 thing to make a selfie and activate it after the Selfieshot. But is it possible to stop the pm2 face-rec.sh with button and MMM-OnScreenMenu? I could´t find a way to start/stop the pm2 with a notificatiion or something 🙂
      THX for help guys! 🙂
      Toby

      posted in Troubleshooting
      thetobyde
      thetobyde
    • RE: Meross

      @lavolp3 Thank u! The code would be nice. 🙂 Greetings, Toby

      posted in Requests
      thetobyde
      thetobyde
    • Meross

      Hey there. I would really like to have a module to see all my Meross products like plugs for my lights 🙂
      Maybe to see the status of the products AND:
      Touch integration to turn ON/OFF the lights 🙂

      Maybe something like this, if possible:
      (just an idea)
      meross module request.png

      Thank u for help! 🙂
      Toby!

      posted in Requests
      thetobyde
      thetobyde