MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. dubalda
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 19
    • Best 2
    • Controversial 0
    • Groups 0

    dubalda

    @dubalda

    6
    Reputation
    56
    Profile views
    19
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    dubalda Unfollow Follow

    Best posts made by dubalda

    • UK Lock-down mirror

      Hi all,

      Having started lock-down in the UK working from home and trying to home school my kids, this project has been a welcome distraction. I’ve finally managed to complete my mirror and have spent hours going through the various threads to get things working so I thought I’d share my final product. I was keen to use a PIR sensor to turn off the mirror when no one was there, and I have to admit it’s working perfectly.

      These are the modules that I’m using:

      MMM-PIR-Sensor
      MMM-WeatherOrNot
      currentweather
      weatherforecast
      MMM-MyCalendar - this includes our family Google calendar and UK Bank Holidays
      MMM-Spotify
      MMM-GoogleFit
      MMM-TFL
      MMM-LondonTransitStatus
      newsfeed - BBC News and the Financial Times at the top and M25 (motorway) feed at the bottom
      MMM-Strava

      I did setup MMM-GoogleAssistant and MMM-Assistant2Display which worked well when I was testing the but I couldn’t find a good way to mount a microphone and speakers so decided to exclude them.

      I got the frame built by a local carpenter and added a plug socket behind the unit, I wasn’t keen having a wire hanging down in case my kids yanked it! They’re still only small.

      I received three different samples for the two-way mirror:

      Pilkington MirroView 75/20 Generation Two (glass)
      Pilkington MirroView 50/50 Generation Two (glass)
      A generic acrylic two-way mirror

      As I’m using a 27" monitor I was told an acrylic sheet will have imperfections/distortion with reflections and I definitely found that when I compared the three samples. If I was creating a smaller mirror it would be an option. I spent a long time deliberating between the MirroView 75/20 and 50/50 glass. In the end I went for the 75/20 as it’s more reflective in my hallway (and just a little bit darker). I was keen to get a good reflection even when the monitor is in place as my wife used the previous mirror just before she leaves the house. I didn’t want any complaints from head office!

      Anyway…I hope you like it. Since returning to work I’ve found the MMM-TFL module really useful as it shows you which Underground lines have issues and the Google Fit step count is a good motivator to get up and going.

      Thanks again to everyone who contributes to the forums, I found it extremely useful and would be lost with out it.

      Cheers

      Mirror1.jpg

      Mirror3.jpg

      Mirror2.jpg

      posted in Show your Mirror
      D
      dubalda
    • RE: UK Lock-down mirror

      @cluelesscarter Sorry for the delayed response, things seem to be hectic at work as people are returning to the office! I’m going to keep hold of the samples as I might need a different glass depending on the size/lighting conditions of my next mirror.

      On a positive note I purchased them from https://www.mirrorsandglass.co.uk/ who will refund the same costs if you purchase your glass afterwards. That’s what I did and the customer service was excellent. I really wouldn’t bother with acrylic. Give mirror and glass a try, the refund policy for samples is really straight forward.

      I hope that helps.

      posted in Show your Mirror
      D
      dubalda

    Latest posts made by dubalda

    • RE: MMM-WeatherOrNot - Internal Server Error

      @dubalda Seems to be ok now! False alarm!

      b973b456-9c4c-48be-9337-d1219e00c532-image.png

      posted in Troubleshooting
      D
      dubalda
    • MMM-WeatherOrNot - Internal Server Error

      Hello, I was hoping someone can help me. I’ve never had an issue with the MMM-WeatherOrNot module. But this morning I’m getting an error saying “500 Internal Server Error”. Is anyone having his error with this module? Here’s a screenshot? Any suggestions on how to fix this? Thanks in advance!

      daf52545-81a7-42f0-a4ce-4fccff8a5e33-image.png

      Here’s the code:

      	{
      	    disabled: false,
      	    module: 'MMM-WeatherOrNot',
      	    position: 'top_right',
      	    config: {
      	      location: "xxx",                // See instructions
      	      locationCode: "xxx",              // See instructions
      	      languages: "en",                          // See Languages list
      	      tempUnits: "C",                           // F or C
      	      font: "Tahoma",                           // See Font list
      	      textColor: "#ffffff",                     // Hex color codes.
      	      htColor: "#ffffff",                       // high temp color. Hex color codes.
      	      ltColor: "#00dfff",                       // low temp color. Hex color codes.
      	      sunColor: "#febc2f",                      // Hex color codes.
      	      moonColor: "#dfdede",                     // Hex color codes.
      	      cloudColor: "#dfdede",                    // Hex color codes.
      	      cloudFill: "#1f567c",                     // Hex color codes.
      	      rainColor: "#93bffe",                     // Hex color codes.
      	      snowColor: "#dfdede",                     // Hex color codes.
      	      height: "115px",                          // module is responsive to change.
      	      width: "800px",                          // module is responsive to changes
      	      label: "United Kingdom",                        // Location seems logical . .
      	      label2: "London",             		// . . . or anything you like
      	      days: "7",                                // 3, 5 or 7
      	      theme: "salmon",                            // See Themes list *** theme overrides bgColor. ***
      	      bgColor: "#000000",                       // theme overrides bgColor.
      	      icons: "Climacons Animated",              // Iconvault, Climacons or Climacons Animated
      	      animationSpeed: 3000,
      	      updateInterval: 10 * 60 * 1000,
      	    }
      	},
      
      posted in Troubleshooting
      D
      dubalda
    • RE: MMM-PIR-Sensor

      I’ve managed to solve this but the monitor is not turning off. I’ve read further and the module uses tvservice which isn’t support, so I presume that’s the issue.

      @raspberrypi:~/MagicMirror $ sudo tvservice -o
      tvservice is not supported when using the vc4-kms-v3d driver.
      Similar features are available with standard linux tools
      such as modetest from libdrm-tests.

      Does anyone have any work-arounds to get this working? I don’t recall this being an issue on my old MagicMirror. Sadly I’m not a coder so any advice would be great!

      Thanks

      posted in Troubleshooting
      D
      dubalda
    • MMM-PIR-Sensor

      Hello, I was hoping someone might be able to help. I had MMM-PIR-Sensor working on a previous magic mirror but have had to rebuild my RaspberryPi (sadly didn’t back up the SD card). I’m getting the following error after installing and have tried varies troubleshooting tips but no joy. Does anyone have any advice? I’ve tried rebuilding the module folder. Thanks in advance.

      Here’s the log output:

      rajdubal@raspberrypi:~/MagicMirror $ npm start

      magicmirror@2.20.0 start
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      [19.09.2022 20:39.02.730] [LOG] Starting MagicMirror: v2.20.0
      [19.09.2022 20:39.02.737] [LOG] Loading config …
      [19.09.2022 20:39.02.742] [LOG] Loading module helpers …
      [19.09.2022 20:39.02.745] [LOG] No helper found for module: alert.
      [19.09.2022 20:39.02.763] [LOG] Initializing new module helper …
      [19.09.2022 20:39.02.765] [LOG] Module helper loaded: updatenotification
      [19.09.2022 20:39.02.766] [LOG] No helper found for module: clock.
      [19.09.2022 20:39.02.992] [LOG] Initializing new module helper …
      [19.09.2022 20:39.02.993] [LOG] Module helper loaded: calendar
      [19.09.2022 20:39.03.020] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module ‘/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
      was compiled against a different Node.js version using
      NODE_MODULE_VERSION 93. This version of Node.js requires
      NODE_MODULE_VERSION 106. Please try re-compiling or re-installing
      the module (for instance, using npm rebuild or npm install).
      [19.09.2022 20:39.03.021] [LOG] Loading module helpers …
      [19.09.2022 20:39.03.022] [LOG] No helper found for module: alert.
      [19.09.2022 20:39.03.023] [LOG] Initializing new module helper …
      [19.09.2022 20:39.03.024] [LOG] Module helper loaded: updatenotification
      [19.09.2022 20:39.03.026] [LOG] No helper found for module: clock.
      [19.09.2022 20:39.03.026] [LOG] Initializing new module helper …
      [19.09.2022 20:39.03.028] [LOG] Module helper loaded: calendar
      [19.09.2022 20:39.03.038] [ERROR] App threw an error during load
      [19.09.2022 20:39.03.039] [ERROR] Error: The module ‘/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
      was compiled against a different Node.js version using
      NODE_MODULE_VERSION 93. This version of Node.js requires
      NODE_MODULE_VERSION 106. Please try re-compiling or re-installing
      the module (for instance, using npm rebuild or npm install).
      at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
      at Module._extensions…node (node:internal/modules/cjs/loader:1203:18)
      at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1812)
      at Module.load (node:internal/modules/cjs/loader:988:32)
      at Module._load (node:internal/modules/cjs/loader:829:12)
      at c._load (node:electron/js2c/asar_bundle:5:13343)
      at Module.require (node:internal/modules/cjs/loader:1012:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      at bindings (/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
      at /home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
      [19.09.2022 20:39.03.041] [ERROR] Whoops! There was an uncaught exception…
      [19.09.2022 20:39.03.046] [ERROR] Error: The module ‘/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
      was compiled against a different Node.js version using
      NODE_MODULE_VERSION 93. This version of Node.js requires
      NODE_MODULE_VERSION 106. Please try re-compiling or re-installing
      the module (for instance, using npm rebuild or npm install).
      at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
      at Module._extensions…node (node:internal/modules/cjs/loader:1203:18)
      at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1812)
      at Module.load (node:internal/modules/cjs/loader:988:32)
      at Module._load (node:internal/modules/cjs/loader:829:12)
      at c._load (node:electron/js2c/asar_bundle:5:13343)
      at Module.require (node:internal/modules/cjs/loader:1012:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      at bindings (/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
      at /home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
      code: ‘ERR_DLOPEN_FAILED’
      }
      [19.09.2022 20:39.03.048] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [19.09.2022 20:39.03.048] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [19.09.2022 20:39.03.305] [LOG] Launching application.
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
      failed to load driver: kms_swrast
      MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
      failed to load swrast driver
      ^C/home/rajdubal/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT

      posted in Troubleshooting
      D
      dubalda
    • RE: MMM-COVID19

      @sdetweil I think the issue was due to the api having to be paid for. In the end I changed to MMM-COVID19-SPARKLINE which working fine. Thanks for your help!

      posted in Health
      D
      dubalda
    • RE: MMM-COVID19

      Thanks…I’ll have a look.

      posted in Health
      D
      dubalda
    • RE: MMM-COVID19

      I’ve tried…

      curl -H “x-rapidapi-host: coronavirus-monitor-v2.p.rapidapi.com” -H “x-rapidapi-key: xxx” ‘https://coronavirus-monitor-v2.p.rapidapi.com/coronavirus/cases_by_country.php’

      And have copied the key (copy/paste) exactly from the website but get the message…

      “message”:“You are not subscribed to this API.”

      I think I’ll just get the Covid numbers from the news! Thanks for your help @sdetweil !

      posted in Health
      D
      dubalda
    • RE: MMM-COVID19

      Sorry to hear you’re in hospital! Hopefully it’s nothing to serious.

      I tried…

      https://coronavirus-monitor.p.rapidapi.com/coronavirus/united_states_cases.php&api_key=xxx

      and received.

      {“message”:“Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info.”}

      RapidAPI does see it’s free service. I’ve amened the entries in node_helper.js back to the their defaults but still no joy there. Very strange.

      posted in Health
      D
      dubalda
    • RE: MMM-COVID19

      Hi Sam,

      I just get "{“message”:“Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info.”}

      Sorry, perhaps I missing something here…are you refering this URL

      https://coronavirus-monitor-V2.p.rapidapi.com/coronavirus/cases_by_country.php

      Thx

      posted in Health
      D
      dubalda
    • RE: MMM-COVID19

      Hi guys,

      I’m not getting much luck getting this to work. I just get the header and no errors in the log.

      {
      module: “MMM-COVID19”,
      position: “top_left”,
      config: {
      updateInterval: 300000,
      worldStats: true,
      delta: true,
      lastUpdateInfo: true,
      countries: [ “Argentina”, “China”, “Italy”, “Spain” ],
      headerRowClass: “small”,
      rapidapiKey : “xxx”
      }
      },

      I’ve also amended the node_helper.js for the module to include the new rapidhost URLs

      var byCountryUrl = ‘https://coronavirus-monitor-V2.p.rapidapi.com/coronavirus/cases_by_country.php’

      getGlobalStats: function(key) {
      var self = this
      var options = {
      method: ‘GET’,
      url: worldStatsUrl,
      headers: {
      //‘x-rapidapi-host’: ‘coronavirus-monitor.p.rapidapi.com’,
      ‘x-rapidapi-host’: ‘coronavirus-monitor-v2.p.rapidapi.com’,
      ‘x-rapidapi-key’: key
      }
      }

      getStatsByCoutry: function(key) {
      var self = this
      var options = {
      method: ‘GET’,
      url: byCountryUrl,
      headers: {
      //‘x-rapidapi-host’: ‘coronavirus-monitor.p.rapidapi.com’,
      ‘x-rapidapi-host’: ‘coronavirus-monitor-v2.p.rapidapi.com’,
      ‘x-rapidapi-key’: key
      }
      }

      Any help would be great!

      Thanks

      posted in Health
      D
      dubalda