• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 1.6k 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.
  • U Offline
    ultalex
    last edited by ultalex Apr 21, 2021, 11:27 PM Apr 21, 2021, 10:31 PM

    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()});
                });
    
    U 2 Replies Last reply Apr 21, 2021, 10:59 PM Reply Quote 1
    • U Offline
      ultalex @ultalex
      last edited by Apr 21, 2021, 10:59 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • U Offline
        ultalex
        last edited by Apr 22, 2021, 9:17 PM

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

        1 Reply Last reply Reply Quote 0
        • U Offline
          ultalex @ultalex
          last edited by Apr 27, 2021, 9:31 PM

          Added draft French and German
          Fixed minor bugs

          1 Reply Last reply Reply Quote 0
          • U Offline
            ultalex
            last edited by May 3, 2021, 9:37 PM

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

            1 Reply Last reply Reply Quote 0
            • U Offline
              ultalex
              last edited by May 30, 2021, 9:03 PM

              Added mirror configuration setting and editing of custom commands

              1 Reply Last reply Reply Quote 0
              • S Offline
                sophiaholloway
                last edited by Apr 15, 2022, 9:52 AM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • S Offline
                  sophiaholloway
                  last edited by May 9, 2022, 3:04 AM

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