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

    Posts

    Recent Best Controversial
    • RE: ChatGpt developed Module MMM-Dockerstat

      @mumblebaj Thanks for the encouragement. I made the changes as suggested and updated the files on github. I also did some debugging and tried to resolve issues. However, I guess i am reaching a dead end. So any help will be appreciated greatly.

      posted in Development
      R
      Rags
    • RE: ChatGpt developed Module MMM-Dockerstat

      @sdetweil Ok, is there any other method of achieving this?

      posted in Development
      R
      Rags
    • RE: MMM-Moon, See the moon phases and rise/set times!

      @sdetweil said in MMM-Moon, See the moon phases and rise/set times!:

      @Rags a much better way is to use css to set the size instead of changing the code

      Sure. Understood. Just learning.

      posted in Utilities
      R
      Rags
    • ChatGpt developed Module MMM-Dockerstat

      I am novice self taught coder having basic knowledge of coding in various languages. I used ChatGPT to help me code a module for MagicMirror. The results are definitely encouraging. I am sure the masters in coding may not need to rely on ChatGPT, but for novice coders it is a good beginning.
      So the Module is uploaded on github . It is not fully functional and has a few bugs. ChatGPT almost gave up to debug the code and advised me to check with the community/forum to resolve it and make it work. So i request the community to identify the bugs and make it work.
      The idea of the module is very basic and is to;

      1. ssh into another machine running on the home network and probe the status of the docker container running.
      2. Display the results in a dashboard form on the MM instance running on another pi.

      Any help will be greatly appreciated and will definitely motivate many MM fans to start to design and code newer modules and increase the fan base.
      https://github.com/Ragziesoft/MMM-Dockerstat

      posted in Development
      R
      Rags
    • RE: Is it possible to clone an existing Magic Mirror installation on a Fresh Installation of Raspbian ?

      @sdetweil said in Is it possible to clone an existing Magic Mirror installation on a Fresh Installation of Raspbian ?:

      @Rags thanks for the feedback

      \1. what modules? I’d like to examine that. the restore does npm install if there is a package json or there is a node_helper that uses one of the removed libs (after creating the package
      json)

      \4. this is w my install script, right? can u send me the ~/install.log
      same userid at gmail

      2/3. yes modules that depend on other files that I don’t know about.

      still. less than a day is a win

      I have mailed you the install.log file. Few of the modules that needed npm install (as far as i remember) are DHT sensor, PIR sensor, GPIO notification, speedtest, mmm-tools, default calendar, Open Ai, Google photos; the list is incomplete as i dont remember now. Anyways i feel there could be certain issues which either got sorted automatically during reboot or after npm install .
      The font awesome icons for calendar are not showing up, the speed test module has been put in EOL, so it did not fire up. So i guess the script should detect if a certain module is in EOL in the github and suggest a backup.

      During restore of MM the following msg was visible;
      npm WARN old lockfile
      npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      npm WARN old lockfile
      npm WARN old lockfile This is a one-time fix-up, please be patient…
      npm WARN old lockfile
      npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Mat>

      Do i need to upgrade to ver 7 ??

      Finally, yes your script to backup and restore is certainly a win. Thanks

      posted in General Discussion
      R
      Rags
    • RE: Is it possible to clone an existing Magic Mirror installation on a Fresh Installation of Raspbian ?

      @sdetweil Ok i finally managed to migrate to a new SSD. However, it was not without surprises. i had to

      1. Redo a npm install on a few modules to make them work.
      2. MMM-Google photos module folder was missing the token.json file had to be recopied from backup(Thank god i had module folder on my SD)
      3. API key of MMM-OpenAi had to be recreated and stored in .env file.
      4. The PM2 did not work with the automated installation. I got an error [PM2][ERROR] File ecosystem.config.js not found. Could be an error from my side while configuring, not sure. I deleted the instance of pm2 and reinstalled manually.
        But the process was not smooth, it took some doing, but finally my new MM seems to been successfully cloned. Yet to fully check all modules.
        I have regained configuration control of the display and have been able to rotate it to Portrait mode. i am yet to check sound configuration.
      posted in General Discussion
      R
      Rags
    • RE: Is it possible to clone an existing Magic Mirror installation on a Fresh Installation of Raspbian ?

      @sdetweil Thanks for the reply. If i understood correctly, the steps involved would be;

      1. Run your backup script and take a backup of the existing MM installation and save it to an externally location.
      2. Install a fresh Raspberry Pi OS on the new SSD.
      3. Install MM using your script.
      4. Copy the saved MM backup directory to the new SSD MM directory.
      5. Run your restore script to restore the MM to the original configuration.

      So if these steps are followed, will just running the restore script ensure ;

      1. All dependencies will also be automatically loaded and configured?
      2. Is there any other configuration setting specially for GPIO control that may be required?
      3. Are there any other additional scripts that may be required to be run?

      Sorry for requesting for specific queries to be answered. I don’t want to goof up the installation and then spend hours to recover.
      Thanks

      posted in General Discussion
      R
      Rags
    • Is it possible to clone an existing Magic Mirror installation on a Fresh Installation of Raspbian ?

      Of late I am having certain issues with my OS on my Raspberry Pi 3B+ (32 GB SD Card). While there is no issue with the MagicMirror installation, configuration issues relating to display and sound of the Pi are plaguing me and no amount of update and upgrade of OS are resolving the issue. I have decided to do a fresh install of the OS onto a new SSD device. However, i want to retain the Magic Mirror installation intact, as the process of reinstalling all the modules (I have more than 15 running) would be very time consuming. I am thinking of a fresh install of MagicMirror on the SSD. However, will it be a good idea to overwrite the MagicMirror modules and config directory after the fresh install of MagicMirror with modules and config directory from the the older SD card? I have a feeling it may not work. So what is the easiest way to avoid the tedious process of migrating the MagicMirror from old SD card to new SSD? Thanks

      posted in General Discussion
      R
      Rags
    • RE: MMM-OpenAI

      @MMRIZE said in MMM-OpenAI:

      @Rags
      Give me the whole configuration and log of backend terminal/frontend dev-console. Without details, I cannot guess anything.

      ??backend terminal/frontend dev console…please guide howto ? thanks

      posted in Productivity
      R
      Rags
    • RE: MMM-OpenAI

      @sdetweil Oh ok, fine I shall tinker around and see if I have goofed up somewhere and wait for the developer for the rescue. Thanks

      posted in Productivity
      R
      Rags
    • RE: MMM-Moon, See the moon phases and rise/set times!

      @Rags said in MMM-Moon, See the moon phases and rise/set times!:

      @enderflop
      Okay, so i tried it out and it is working fine. Nice effort. However, You have forgotten to add the sample config.js entries, though you have given the configuration options. Is there a way to enlarge the size of the image in the configuration file?
      Thanks

      To add lines of code to configure the size of the image, you can modify the getDom function as follows:

      getDom: function() {
        var outerDiv = document.createElement("div");
        if (this.content) {
          var img = document.createElement("img");
          img.src = this.content;
          img.style.width = this.config.width || "100%"; // add this line to set the width of the image
          img.style.height = this.config.height || "auto"; // add this line to set the height of the image
          outerDiv.appendChild(img);
        } else {
          outerDiv.innerText = "No image!";
        }
        return outerDiv;
      },
      
      add this in config.js;
      {
        module: "MMM-Moon",
        position: "top_right",
        config: {
          width: "400px",      //    as per requirement
          height: "400px"       //    as per requirement
        }
      }
      

      code blocks please, by sdetweil

      posted in Utilities
      R
      Rags
    • RE: MMM-OpenAI

      @Rags said in MMM-OpenAI:

      @Rags said in MMM-OpenAI:

      @MMRIZE @MMRIZE
      Thanks for the update. Yes now it works fine. I am not getting "something is wrong’ messages, but prompts about the token lengths whenever they exceed.
      Thanks. I hope there will be voice integration soon.

      So once again some issue has cropped up. The Openai integration with Telegrambot was working fine up to now. However, now the /chatai messages are not getting displayed on the MM whereas they are getting displayed on the Telegrambot app on the phone. The /txtai and /imgai have no issues. Please help in getting it to work again.

      Can the developer please look into the issue described above. Thanks

      posted in Productivity
      R
      Rags
    • RE: MMM-OpenAI

      @Rags said in MMM-OpenAI:

      @MMRIZE @MMRIZE
      Thanks for the update. Yes now it works fine. I am not getting "something is wrong’ messages, but prompts about the token lengths whenever they exceed.
      Thanks. I hope there will be voice integration soon.

      So once again some issue has cropped up. The Openai integration with Telegrambot was working fine up to now. However, now the /chatai messages are not getting displayed on the MM whereas they are getting displayed on the Telegrambot app on the phone. The /txtai and /imgai have no issues. Please help in getting it to work again.

      posted in Productivity
      R
      Rags
    • RE: Wooden Vertical Magic Mirror

      @dvbit
      Nice. Can you tell me how have you managed to get the portrait display on your mirror? I am struggling with my monitor to be detected by Raspbian and to flip the display.
      Thanks

      posted in Show your Mirror
      R
      Rags
    • RE: MMM-Moon, See the moon phases and rise/set times!

      @enderflop
      Okay, so i tried it out and it is working fine. Nice effort. However, You have forgotten to add the sample config.js entries, though you have given the configuration options. Is there a way to enlarge the size of the image in the configuration file?
      Thanks

      posted in Utilities
      R
      Rags
    • Portrait Mode Acer Monitor HA240Y

      I recently bought an ACER HA240Y monitor (https://www.displayspecifications.com/en/model/8d8f1615)
      for my Magic Mirror. I wanted to install the monitor in my frame in portrait mode. However, The display settings of the Pi OS are unable to identify the monitor and i am unable to find the drivers for the monitor in the Raspberry Pi OS. I am not able to proceed further to flip the display from landscape to portrait. Is there any way in which this can be resolved.
      Thanks

      posted in General Discussion
      R
      Rags
    • RE: MMM-OpenAI

      @MMRIZE
      It’s possible that the error is caused by using optional chaining in a JavaScript version that doesn’t support it.

      I modified the code as below, rewriting the code without using optional chaining.
      postProcessing: function(helper, resp) {
      let choice = resp.response ? resp.response.choices[0] : undefined;
      if (choice) {
      let message = choice.message ? choice.message.content.choice.text : undefined;
      if (message) {
      helper.sendNotification(‘TTS_SAY’, message);
      }
      }

      I am not getting any syntax error now. However, there is some issue with Google TTS (unrelated I think) , as it is sending a notification as TTS_Say_Error. Google TTS API hopefully is configured correctly as no errors are thrown up during starting MM. How should i go about resolving it.

      posted in Productivity
      R
      Rags
    • RE: MMM-Openai with EXT-TelegramBot

      @Rags Okay i reinstalled MMM-TelegramBot and now everything works. So apparently there are issues in EXT-TelegramBot, which maybe someone can resolve.

      posted in Troubleshooting
      R
      Rags
    • RE: MMM-Openai with EXT-TelegramBot

      @MMRIZE
      Sorry about that. But i haven’t understood why “MMM-TelegramBot” worked and “EXT- TelegramBot” isnt working, though It seems to be okay for all telegram commands like before.
      Do i need to revert back and reinstall MMM-TelegramBot? provided someone can share the old repositories that worked. Please provide a solution. After having installed Openai if the Telegram interface is not useable then it would be such a colossal waste of effort.

      posted in Troubleshooting
      R
      Rags
    • MMM-Openai with EXT-TelegramBot

      @MMRIZE I had to reinstall MMM-TelegramBot today as it had an issue. I have installed EXT-TelegramBot as MMM-TelegramBot is End of Life. After reconfiguring the config.js file i managed to get the EXT-TelegramBot up and running. However, the MMM-Openai is having an issue . I am getting an error “Sorry that command is not registered.” I tried adding the Openai commands in the module of config.js file (/chatai, /txtai etc) but the error still persists. Any pointers to solve this issue.
      Thanks

      posted in Troubleshooting
      R
      Rags
    • 1 / 1