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

    Posts

    Recent Best Controversial
    • RE: MMM-PythonPrint customisation

      Sam,

      Thank you for this MMM-PythonPrint. More than the sample module this really helped me follow how to wrap my head around how the script.js node_helper and anything else work together. The way you worded the variables and the input and output text really made sense and made it easy to follow what is happening. I am learning a lot. Again, Thank you.

      Kelly

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: Can I round Precipitation Units

      I figured it out. I wanted to round it off too. No decimal places.
      You have to edit the template files. look for the showPrecipitationAmount if statement. I altered the output a little bit… see below for what I did.

      in forecast.njk

                      {% if config.showPrecipitationAmount %}
                          {% if f.precipitationUnits %}
                              <td class="align-right bright precipitation">
                                  {{ f.precipitation }}{{ f.precipitationUnits }}
                              </td>
      		                {% else %}
                              {% if f.pop %}
                                  <td class="align-right precipitation">
                                      {{(f.pop * 100).toFixed(0)}}%
                                  </td>
                              {% endif %}
                              <td class="align-right bright precipitation">
                                  {{ f.precipitation | unit("precip") }}
                              </td>
                          {% endif %}
                      {% endif %}
      

      I found info on the templates by googling nunchucks templates.

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: dri3 extension not supported

      @kayakbabe said

      I am getting the same error on a fresh sd card on a rpi 3B with buster 32bit installed. It has manually installed MagicMirror, node, etc., no extra modules, just the config sample copied to be config.js.
      …
      [2092:0905/201909.167187:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      [2132:0905/201909.521340:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
      [2106:0905/201909.609131:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      …

      I did more digging and I am not sure if this is the right solution for a Raspberry Pi 3B running Buster
      I followed the instructions on this page [https://www.raspberryconnect.com/projects/35-games/142-trying-out-opengl-on-raspberry-pi-3] and the viz_main and gpu memory buffer and other stuff disappeared. I’m now playing with the different settings in the raspi-config and going to up the split memory. I tried first with settings it to 128 , half of what they recommended, cause I’m just contrary my mama says. And MagicMirror does seem to run more smoothly than with the default buster install. BUT the pi is much worse at multi tasking now. I can’t have very many chromium windows going at once. So, i’m going to play with the video setttings more. I know I won’t be running chromium when the mirror is running. But if I put a lot of modules into the magic mirror… it would stress the pi too.

      Anyway, perhaps this info will help you.

      Note: on the last buster install, the raspi-config advanced options and performance options are a little different location in the menu than described in this article.

      Kelly

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: GPIO'S

      @BKeyport You’ll be limited by the amperage of the Raspberry Pi power supply. You might be able to power about 3 feet of an led strip. But for anything longer, you will need more amperage. Look on Adafruit for “light painting” with a raspberry pi. They discuss the power needs of the strips. Also the more modules you have runnning, the more power the pi will use itself. SO… you might not even be able to power 3 feet.

      posted in General Discussion
      kayakbabeK
      kayakbabe
    • RE: PIR sensor problem after restart Raspi

      @JoeFranz have you checked the logs and see whats throwing errors? That is where I would start.

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: dri3 extension not supported

      @leftyleo not to hijack this thread. But since you were thinking of going from 64 to 32 bit os…
      I am getting the same error on a fresh sd card on a rpi 3B with buster 32bit installed. It has manually installed MagicMirror, node, etc., no extra modules, just the config sample copied to be config.js.
      …
      [05.09.2022 20:19.03.191] [LOG] Starting node helper for: newsfeed
      [05.09.2022 20:19.03.192] [LOG] Sockets connected & modules started …
      [05.09.2022 20:19.05.030] [LOG] Launching application.
      [2092:0905/201909.167187:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      [2132:0905/201909.521340:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
      [2106:0905/201909.609131:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      …

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: Multiple screens fo MM.

      @hogedir With a raspberry 4 you can have two displays. I’m thinking they can be set up as an extended desktop . Then it’s no big deal with the default magic mirror.
      Top_left and top_right would end up being left and right…
      I haven’t tried this with MM. But I have used my pi with two screens. But in my mind it ought to work with MM.
      Just don’t use the middle_center or any position that would span across both monitors.

      posted in General Discussion
      kayakbabeK
      kayakbabe
    • RE: Electron v20 will coming with next release but...

      @sdetweil said in Electron v20 will coming with next release but...:

      @kayakbabe where do you see 12?

      all is ok to 19

      https://github.com/fivdi/epoll/issues/42
      Top comment by David

      posted in Upcoming Features
      kayakbabeK
      kayakbabe
    • RE: Electron v20 will coming with next release but...

      I saw on those github issues posed above that

      “This will result in applications that use epoll/onoff being broken after Electron 12.”

      That means most of the button and input sensor type magicmirror modules will probably break.

      So, I"m kinda glad I broke my new button module. and found this info right after. I think I"m going to go with a python based script and bypass the node on/off and epoll. So back to the drawing board.

      posted in Upcoming Features
      kayakbabeK
      kayakbabe
    • RE: help on new spam control idea

      @sdetweil said in help on new spam control idea:

      Also how about no including links for new users until they make x number of allowed posts.

      this hurts real new users struggling to get their stuff running,
      worked for a couple days/weeks to get it to work and finally find this and post…
      and if we put them on the mod queue then they might miss a whole day til their post arrives and someone can help them…

      Good Point.

      posted in General Discussion
      kayakbabeK
      kayakbabe
    • RE: help on new spam control idea

      @sdetweil said in help on new spam control idea:

      why whack the good new users?

      Well, I was thinking that

      I don’t find it horribly annoying especially if it’s the kind that just makes you pick the object from a grid of photos. It doesn’t take too long and it does keep the spam bots from posting. I don’t particularly like it… but I don’t find it horrible either – especially if it stops happening after I’m a member in good standing. You could base it on reputation points. After reputation is gained… then no more reCaptcha. Or if we don’t have the issue with bots… then forget I mentioned it.

      posted in General Discussion
      kayakbabeK
      kayakbabe
    • RE: help on new spam control idea

      What about reCaptcha required to submit a post for new users for the first x number of posts?

      posted in General Discussion
      kayakbabeK
      kayakbabe
    • RE: help on new spam control idea

      @kayakbabe It think posts that have certain spammy words or phrases could be added to moderation too like

      now hiring
      buy now
      be your own boss
      additional income
      limited time
      earn money
      get rich
      I enjoyed your post
      You write very well
      I offer you
      I was reading this article and find it very informative

      There are obvious ones that recur here but I can’t think of them right now.

      Also how about no including links for new users until they make x number of allowed posts. I run some sites and we get visited by human spammers who will make two or three comments to try to get the posts with links to show. Usually it’s garbage, ipso lorem, or something that just doesn’t make sense. So I just moderate all posts that include links from users with less than 10 number of good posts. Or, I can go ahead a mark a user as moderation exempt if I determine them to be legit.

      posted in General Discussion
      kayakbabeK
      kayakbabe
    • RE: help on new spam control idea

      how about allow nodejs.org and www.npmjs.com too.

      posted in General Discussion
      kayakbabeK
      kayakbabe
    • RE: Ways to automate shutdown and startup

      @hesspoint You can shut down the operating system BUT you can’t completely shutdown the power to it. The only way to actually have the pi completely off is to unplug it. By running a shutdown command the led on the pi will still be drawing power and showing you it “isn’t running”.

      If you just want to shutdown the operating system/mirror etc and don’t care that the pi still has power… Then, you can do it via the operating system. There is a thing called a cron job which you setup on the crontab. You can set it to run every night at the same time.

      Here is a link on the raspberry pi forum about retropi (a different project) that will tell you how setup your cron .
      https://www.raspberrypi-spy.co.uk/2018/03/raspberry-pi-retropie-shutdown-button/

      There are some MagicMirror modules that might help you do the same thing via a web url that points to the pi at your house. You would need a fixed ip address at your house, setup your router to allow the outside world to talk directly to your pi, and setup the module too. I haven’t used one of them.

      I think there is an Internet of Things IOT module that could probably work via IFTTT too.

      posted in Hardware
      kayakbabeK
      kayakbabe
    • RE: Electron

      @plainbroke did you look at your pm2 logs? Sam really helped me by explaining where to look. I’ll bet it’s a module.

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: Electron

      @sdetweil If I didn’t need a breadboard for testing the button circuits I’m adding, it could be done the way you say. I’m not working on the appearance of my mirror, If I were then I’d do as you suggest. I’m working on adding hardware buttons and a new module to make them function the way I want.

      I find it easier to just remove the pi, take it to my desktop where I have a very wide monitor. And where I can play with wiring, breadboard, resisitors, buttons etc. I added the following to my config

      electronOptions: {
      		fullscreen: false,
      		width: 950,
      		height: 950
      	},
      

      so I can have mm running on one quarter of my screen, I have plenty of room for geany on the other and a terminal window, etc. then can just f5 or ctrl+r when I want to test.

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: Electron

      @plainbroke ctrl+m does not stop MagicMirror. It minimizes it so it isn’t showing full screen.

      m = minimize

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: Electron

      @plainbroke
      I use Ctrl+m too so I can minimize the electron browser in order to get to terminal and restart mm.

      Are you using pm2? If so, use this command in the terminal to see how many actual instances of MagicMirror are running.

      pm2 ls
      

      NOTE: You could see more things in the taskmanager in certain situations where another processing thread is required. That doesn’t mean that Electron or MagicMirror has extra “copies” running on your machine. (My machine always shows at least 8 electron threads running, but I only have one MagicMirror instance running. The more modules have in my mirror, the more electron threads show in taskmanager).

      Using pm2 ls, if you see more than one instance you can kill the extras by using the id number of the extra instances. Also, if you see more than one instance, you may just need to redo the pm2 setup.

      If F5 or Ctrl+r don’t work (sometimes they don’t seem to fully restart mm if I’ve added a node package to a module I’m working on) then I use the following command from the terminal.

      pm2 restart mm
      

      to fully reinitialize and restart mm if I need to in when I’m developing/editing a module.

      posted in Troubleshooting
      kayakbabeK
      kayakbabe
    • RE: when to use init , start, loaded of node helper

      @kayakbabe DRAT! I just crushed my microSD with my wheelchair. It is definitely time for bed.

      posted in Development
      kayakbabeK
      kayakbabe
    • 1 / 1