MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Rags
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 12
    • Posts 48
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by 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
    • 1
    • 2
    • 3
    • 4
    • 5
    • 1 / 5