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

    Patex

    @Patex

    4
    Reputation
    899
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Patex Unfollow Follow

    Best posts made by Patex

    • RE: Stuck in development

      @Baxer said in Stuck in development:

      var standings = {};
      this.sendSocketNotification(‘STANDINGS’, standings);

      You are almost there. This is the one bit where you currently are missing code. You need to send the teams data via the socket notification system to the module.

      Since I have no idea how the data exactly looks like I can only give you the hint that you can either populate the standings object yourself (maybe it’s worth to take a look at arrays in javascript)

      var standings = [];
      
      for(myLoopCodition){
        standings.push(teams[i] ...);
      }
      

      or send the entire teams data via the socket and let the module handle it. Now in the getDom() function you can maybe create a nice table to display the data in a fitting way.

      posted in Development
      PatexP
      Patex
    • RE: 24h weather forecast graph

      @feedparakeet For such a basic functionality we should not reinvent the wheel. There are a lot of javascript graphing libraries available which are far more sophisticated than anything we will be able to code for the mm in a reasonable manner. They usually render the result in a canvas which can simply be added to the mirror e.g. http://www.chartjs.org/

      posted in Requests
      PatexP
      Patex
    • RE: digital photo frame

      @schlachtkreuzer6 I created a picture module which loads pictures from a local folder and downscales them to show 1,2 or 4 of them at the same time. The issue being that electron crashes after some time due to being out of memory. The images have a very high resolution (3000 px) and if the 4 image layout is chosen actually 8 pictures are loaded at a time. Maybe time will tell if these issues can be fixed (http://stackoverflow.com/questions/27321997/how-to-request-the-garbage-collector-in-node-js-to-run).

      posted in Requests
      PatexP
      Patex

    Latest posts made by Patex

    • RE: Error when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror)

      @Mykle1 said in Error when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror):

      I could be mistaken but I believe that using sudo npm install can cause problems. Installation of MM and its dependencies should be done as a normal user.

      For what it’s worth.

      Good point. I just saw his sudo npm install and followed along without thinking.
      You can try to uninstall stylelint again with npm uninstall stylelint(with or without sudo , whatever works) and install it again without the sudo command.
      If this does not yield any success in this issue someone fixed a similar warning (https://github.com/KraigM/homebridge-harmonyhub/issues/97).
      Never the less this shouldn’t all be necessary. Maybe it’s time to start over frech again and really be cautious about every step you do.

      posted in Troubleshooting
      PatexP
      Patex
    • RE: Update MagicMirror issue

      @lloydrip said in Update MagicMirror issue:

      M. Pl

      It looks like git wants an e-mail address to perform the pull request. Just follow the instructions and you should be good to go.

      Run
      
      git config --global user.email "you@example.com"
      git config --global user.name “Your Name”
      

      As long as you don’t commit and push back to a repository it doesn’t really matter what you put in there.

      posted in Troubleshooting
      PatexP
      Patex
    • RE: Error when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror)

      @greenwaydev said in Error when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror):

      Magic Mirror running on my Pi Zero W headless. I have followed a few different tutorials, mostly saying the same stuff, and I was

      The error occurs due to incompatible peer dependencies. Npm (recently) introduced the concept of peer dependencies which are dependencies expected to be provided separately to ensure compatibility between different apis.

      I am surprised that in your case mm fails to finish the installation as for me I only get a warning.

      My attempt to fix this would be to:
      For now try run sudo npm i stylelint@latest before running sudo npm install

      If this does not work change the config file to include "stylelint": "^9.0.0" instead of "stylelint": "^8.4.0" and try again.

      Be aware that you usually should never do the second step if you don’t exactly know what you are doing. Upgrading a major version (the version number at the very beginning) indicates a new release with potential api breaking changes. (If semversioning is used). But since your error log indicates that stylelint config is happy with either version, and the dependency is not really used “in production” this might be worth a shot.

      posted in Troubleshooting
      PatexP
      Patex
    • RE: Current Weather still not working properly

      @ryanvox said in Current Weather still not working properly:

      er. it’s missing everything else.
      EDIT
      It’s like the onlyTemp option is set to true but it’s not.

      Do you receive any warnings in the console or the pm2 log which would indicate why and at which point the module fails?
      Do you know a little bit about programming? If so go into the weather module.js file and add a few console.log() to gain some more insight.

      posted in Troubleshooting
      PatexP
      Patex
    • RE: MMM-Memo: How to send Http request?

      Are you able to connect to your mirror (display it’s content in the browser) by going to http://MIRROR_IP:MIRROR_PORT ? If this is not possible your config file does not allow external devices to access the mirror.

      You might need to alter your ipWhitelist in the config file and be sure that the address field is also set accordingly.

      posted in Troubleshooting
      PatexP
      Patex
    • RE: MMM-voice for Brits!

      @joe84maiden

      MMM-voice uses https://github.com/cmusphinx/pocketsphinx for it’s voice recognition tasks. There you will find further instructions (or it’s big brother sphinx) on how to customize it. Last time I attempted to use it I got very poor results and did not bother messing around much. it’s not trivial to set up and requires some kind of phonetic dictionary which you might be able to tweak (or in best case download an already ready to use language model).

      posted in Troubleshooting
      PatexP
      Patex
    • RE: Navigation inside MagicMirror with Buttons / Rotary Encoder on GPIO

      @AxLed said in Navigation inside MagicMirror with Buttons / Rotary Encoder on GPIO:

      led pikeyd (to map GPIO Buttons to keyboard press, as my navigation.html works with javascript which interacts with keyboard press)

      What help exactly do you need? I haven’t taken a look but it seems like a nodejs library for rpi gpios exists making it a completely viable solution.
      A heads up: don’t hack your solution depending on iframe and remote control. Everything you described is natively possible and jumping through many hoops will only introduced bugs and glitches.


      Gib mir bescheid woran genau es momentan scheitert und ich kann dir sicher den ein oder anderen Anstoß geben.

      posted in Development
      PatexP
      Patex
    • RE: Stuck in development

      @Baxer said in Stuck in development:

      var standings = {};
      this.sendSocketNotification(‘STANDINGS’, standings);

      You are almost there. This is the one bit where you currently are missing code. You need to send the teams data via the socket notification system to the module.

      Since I have no idea how the data exactly looks like I can only give you the hint that you can either populate the standings object yourself (maybe it’s worth to take a look at arrays in javascript)

      var standings = [];
      
      for(myLoopCodition){
        standings.push(teams[i] ...);
      }
      

      or send the entire teams data via the socket and let the module handle it. Now in the getDom() function you can maybe create a nice table to display the data in a fitting way.

      posted in Development
      PatexP
      Patex
    • RE: digital photo frame

      @schlachtkreuzer6 I created a picture module which loads pictures from a local folder and downscales them to show 1,2 or 4 of them at the same time. The issue being that electron crashes after some time due to being out of memory. The images have a very high resolution (3000 px) and if the 4 image layout is chosen actually 8 pictures are loaded at a time. Maybe time will tell if these issues can be fixed (http://stackoverflow.com/questions/27321997/how-to-request-the-garbage-collector-in-node-js-to-run).

      posted in Requests
      PatexP
      Patex
    • Resizing container div

      I am creating a picture frame module which changes between different layouts (displaying one, two or four pictures at a time). To get the correct size of the pictures I am using the object-fit property which relies on the container to have a set width.

      The “region fullscreen above” has the correct width and height set but the div ‘containers’ expand depending on the content. Once the container div has the correct size the dimensions can be propagated down with easy css. Since there is no parent selector in css how can I access and set the dimensions correctly.

      div which needs o be resized

      I am aware that I can do this using javascript. I just want to know if there is a possibility using traditional css.

      posted in Development
      PatexP
      Patex