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.

    Mirror-remote app (android)

    Scheduled Pinned Locked Moved System
    8 Posts 2 Posters 2.0k 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.
    • ultalexU Offline
      ultalex
      last edited by ultalex

      Application for the MMM-Remote-Control module.
      Works only on Wi-Fi networks.
      Inaccuracies with the translation into English are possible, please advise how the translation could be corrected. I will also be glad to have ideas for new features or widgets and translations.
      Implemented:
      Power and monitor management;
      Displaying system information about the raspberry pi; (changes are required in the MMM-Remote-Control module)
      VNC launch; (changes are required in the MMM-Remote-Control module)
      Widgets for switching profiles, timer, stopwatch, breathing exercises, installed modules (test widget);
      The widget displays the module required for installation;
      2 languages: Russian (main), English (additional)
      Shortcuts;
      Working with multiple mirrors;
      Switching pages;
      Custom commands.

      Password for admin mode Admin
      Home

      Modules

      Settings

      Add mirror

      Add command

      Shortcuts

      App

      Changes in the MMM-Remote-Control module
      api.js add to line 109 (after this.configOnHd.modules.filter(mod => skippedModules )

      //системный монитор
      		getStats: function() { 
                  var fs =  require('fs');
                  var os =  require('os');
                  var stats = ''
      
                  var temperature = fs.readFileSync("/sys/class/thermal/thermal_zone0/temp");
                  temperature = ((temperature/1000).toPrecision(3));
                  var cpu = fs.readFileSync("/proc/loadavg");
                  cpu = cpu.slice(0,4);
                  var upTime = fs.readFileSync("/proc/uptime");
                                  
                  stats = 'temp: '+temperature+'; '+'cpu: '+cpu+'/'+os.cpus().length+'; '+'ram: '+Math.floor(os.freemem()/os.totalmem()*100)+'; '+'uptime: '+os.uptime()+';';//+'memory: '+memory+';';
                      
                      
                  return stats;
      		},
              
              //запуск VNC
      		startVNC: function() { 
                  var exec = require('child_process').exec;
                  exec('vncserver-x11 -showstatus');  
                  return 'OK';
      		},
      

      api.js add to line 156 (after this.expressRouter.route([‘/test’,‘/’]) )

      this.expressRouter.route(['/systemStats']) // //системный монитор без apiKey
                  .get((req, res) => {
                      if (!this.checkInititialized(res)) { return; }
                      res.json({ data: this.getStats() });
                  });
      

      api.js add to line 226 (after this.expressRouter.route([
      ‘/refresh/:delayed?’, )

      this.expressRouter.route(['/startVNC']) // запуск VNC
                  .get((req, res) => {
                      if(!this.apiKey && this.secureEndpoints) return res.status(403).json({ success: false, message: "Forbidden: API Key Not Provided in Config! Use secureEndpoints to bypass this message" });
                      if (!this.checkInititialized(res)) { return; }
                      res.json({ data: this.startVNC()});
                  });
      
      ultalexU 2 Replies Last reply Reply Quote 1
      • ultalexU Offline
        ultalex @ultalex
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • ultalexU Offline
          ultalex
          last edited by

          Added the ability to change the volume of the mirror (MMM-Volume).

          1 Reply Last reply Reply Quote 0
          • ultalexU Offline
            ultalex @ultalex
            last edited by

            Added draft French and German
            Fixed minor bugs

            1 Reply Last reply Reply Quote 0
            • ultalexU Offline
              ultalex
              last edited by

              Added the ability to change the configuration of modules (Test function) ModulesConfig.jpg

              1 Reply Last reply Reply Quote 0
              • ultalexU Offline
                ultalex
                last edited by

                Added mirror configuration setting and editing of custom commands

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sophiaholloway
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sophiaholloway
                    last edited by

                    I like your article, I really like kinemaster mod apk no password , good video and image editing app for android phone.

                    1 Reply Last reply Reply Quote -1

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • 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