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

    Posts

    Recent Best Controversial
    • RE: Is there a way . . .

      @bkeyport said in Is there a way . . .:

      dang. For some reason, that brings it even tighter to the edges than %. Weird.

      I highly recommend the following for use on the official 7" touchscreen display. Gets you the maximum screen usage.

      (I have a mini-display magic mirror for work.) :)

      body {
      margin: 0px;
      height: calc(100vh - 10px);
      width: calc(100vw - 5px);
      }

      If your margin is 0px, there’s no need to subtract anything from the height and width - they could just be 100vh and 100vw respectively.

      posted in Troubleshooting
      michael5rM
      michael5r
    • RE: MMM-Hue-Lights - new module for your Philips Hue lights!

      @dazza120 said in MMM-Hue-Lights - new module for your Philips Hue lights!:

      @michael5r ohhhhhh! ***** now your showing off, your making me get all your modules lol, that looks good that will compliment your nest muddle perfectly! Thank you Sir!!!

      You’re very welcome - I’m basically just building stuff that I need for my own mirrors :)

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-TelegramBot : Control MM on Telegram

      This is a great module - I’m adding Telegram support to all my modules shortly :thumbs_up:

      posted in System
      michael5rM
      michael5r
    • MMM-Hue-Lights - new module for your Philips Hue lights!

      Hi there,

      Just released another new MM module - this one is mmm-hue-lights and shows the current status of your Philips hue lights and light groups on your magic mirror. It’s a nice way to check whether you forgot to turn the lights on or off :)

      Just like my Nest modules, you have multiple view options and designs, so hopefully you can find a version that looks good on your particular mirror.

      Check it out here:
      [card:michael5r/mmm-hue-lights]

      The read me has examples of what it looks like in all the states & modes, but here’s a couple of representative screenshots:

      image

      image

      image

      Enjoy!


      UPDATES

      12-18-2018: Version 1.1.0
      This adds a hideFilter option which allows you to filter out lights and light groups you don’t want displayed. It’s the opposite of the displayFilter option.

      12-19-2018: Version 1.2.0
      When viewing groups, this now only shows groups with a type of room.

      12-27-2018: Version 1.3.0
      Adds motionSleep and motionSleepSeconds options which allow you to suspend this module when no movement has been detected for X number of seconds.

      12-28-2018: Version 1.3.1
      Changes motionSleep to tie into the regular suspend and resume functions exposed by MM

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @culi831 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

      The modules not update after the recent upgrade ???

      Both the nest-status and nest-cameras modules should be working just fine - what issue are you having?

      Bear in mind that the latest 1.3.0 update added socket notifications for data - which means you will need to restart your MagicMirror application in order for it to receive data, you can’t just reload the browser page (you’ll only have to do this this one time, though).

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @mykle1 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

      @michael5r

      Could you give an example of how this is added to the config.js? Please and thank you.

      electronOptions: {
          webPreferences: {
              webSecurity: false
          }
      }
      

      Sure - it’s just another object, just like modules:

      0_1544975211760_0b3046c5-0fa1-416a-a1cc-efd9f7065e54-image.png

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @max64 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

      @michael5r

      Is Nest Lock status next on your agenda?

      I’d love to, but, unfortunately, Nest doesn’t provide API access to their security system.

      It seems silly - I mean, at the very least providing the current status (home, home guarding, away guarding) seems like it should be a no-brainer, but for now it’s a no-go.

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      Btw, for those of you with Nest cameras as well, I’ve just published a new module called mmm-nest-cameras which shows your camera streams on the mirror as well.

      When both of my Nest modules are installed on the same mirror and you use the same Nest token for both, they’ll share data streams to avoid unnecessarily pinging the Nest API.

      Check it out here:
      [card:michael5r/mmm-nest-cameras]

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @max64 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

      Love the module. (and I tried them all)

      2 humble requests:

      1. Any way to add a transparency setting to the entire graphic so that an underlying background pic can partially show through? (Can that be done via custom.css?)

      2. Can you add a “initial polling delay” config option? (similar to what is in the weather forecast module). My use case is a vertical monitor where I have two instances of the module loaded. One in top-right (Upstairs) and one in bottom right (Downstairs). Nest recommends polling of not more than once per minute with separate device per hour and token limits. I set up each instance of the module to use a different token, but as you can only set the ‘updateInterval’ it’s a challenge to get the two modules to stagger the calls. (And I think this is why i was getting “null” response displayed after a while… )

      1 observation: when using the “alignment” option, both text and graphics are justified according to the setting. This is OK for “center” and even looks OK for “left”, but it does look odd for “right” where the thermostat graphic itself is flush right of the allocated space (e.g., top-right), but the title text is also right justified (.e.g., Upstairs) and not aligned with the graphic itself. IMHO the text above and below the graphic would look best centered with the graphic, and then the whole block is “aligned” according to the setting chosen.

      Again…great work.

      1. Certainly - add this to your custom.css file and the dial becomes transparent:
      .mmm-nest-status .thermostat .circle {
          background: transparent !important;
      }
      
      .mmm-nest-status .thermostat .dial-classic .dial-circle {
          fill: transparent !important;
      }
      

      The !important means that this will also apply when the thermostat is heating or cooling (eg. it will no longer have the blue or orange background). If you only wish for the grey version of the dial to be transparent, remove the !important.

      If you’re using the classic mode of the thermostat, setting the styles above means you get a nice colored glow when the thermostat is heating or cooling:

      0_1544558664428_8f27c027-ffec-4e95-917f-d92cf4c7148e-image.png

      1. It’s already there - for some reason I just forgot to add it to the documentation. Just add initialLoadDelay with whatever value you want to your configuration. The value is in ms, so if you want a 1 minute delay, set the value to be 60000.

      2. In regards to your observation - that’s a legit bug, thanks for spotting it! The alignment setting should only apply to the graphic itself, not the text inside it. I have pushed an update that fixes it, so if you pull the latest version of the module from github, it should be fixed.

      It’s an interesting usecase you have - I hadn’t even thought about using 2 instances of the module to have separate thermostats displayed on the screen in separate locations.

      The reason you’re getting the null response is because of this:
      https://developers.nest.com/guides/api/data-rate-limits

      (I’ve updated the module to display a more helpful error message when that happens.)

      Anyway … it’s not a good idea to make 2 separate calls to the Nest API to get the data (that gives you even more of a chance to get that null error), so check out the latest version (1.3.0) I just pushed - if you use the same token in both module instances, they’ll only do 1 call to the Nest API and use the sockets to update both thermostats at the same time :thumbs_up:

      Thanks for the comments!

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @dazza120 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

      @michael5r Hi yeah thats what i mean but that has shifted it further to the right and only the Nest protect battery stuff i need to move it in the opposite direction finally figure how to take a screen capture lol here is what i mean hue status lower right, the more bulbs you have the worse it will get as it moves up when bulbs are turned on! PS speeds aren’t this slow changed the config file for the speed test and it knocked of a zero so it was a 4 second test lol 0_1544518147439_2018-12-11-084242_1824x984_scrot.png

      It looks like the module is in the middle_center or bottom_bar position, though - which is why it it takes up the entire width of the page. Shouldn’t it be using bottom_left?

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @dazza120 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

      @michael5r cheers but its not that everything else is solid you know where you have the smoke co2 and temp for the themostat on the right i just need that whole thing pulling a little to the left towards the names of the devices, im failing at explaining myself lol

      I think you’re talking about about the width of the battery, co2 and smoke cells, right?

      Try setting them to this:

      .mmm-nest-status .nest-list th,
      .mmm-nest-status .nest-list td {
          width: auto;
      }
      
      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @dazza120 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

      @michael5r hi once again great module, it’s not really the text. I’m on the list display, it goes across the whole screen, I would at least like it to be reduced to the middle/centre so it leaves the weather display on the right that way when my hue lights turn on it doesn’t clash an two when I get more nest protects it doesn’t get into trouble does that make any sense? Once again thanks I saw other modules and I was like nope, saw yours and I had to do it lol 😂

      Sure - that’s not a problem. For the list view, I’m just using the default xsmall size (which gives you a font-size of 15px) from Magic Mirror, but it’s easy to change.

      If you wish to set it to a smaller size, try adding this to your custom.css file in Magic Mirror:

      .mmm-nest-status .nest-list.xsmall {
          font-size: 12px;
          line-height: 16px;
      }
      

      You can change the font-size and line-height to whatever size you want in order for it to fit.

      If that’s still not small enough and you have long names for your Nest Protects, try adding this:

      .mmm-nest-status .nest-list.xsmall .name {
          max-width: 100px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
      }
      

      Again, you can change the 100px to whatever looks nice on your mirror.

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @dazza120 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

      @dazza120 Done just done a New Oth as from my limited understanding i would have to reauthorise the other devices of that Oth easier to do a new Oth. Anyway this just cost me 3 Magic Mirror modules as this is a must i would love to be able to shrink the text type down as when my Hue lights start going on they clash :( BRILIANT MODULE Love it!

      Thank you :)

      Which texts are you trying to shrink?

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      @dazza120 Run the getToken.sh script in your terminal, and simply skip over the initial steps (where you set up a Nest developer account). It shouldn’t be a problem to use your existing Nest account (I also had one before I started this project).

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-DarkSkyForecast - Yet ANOTHER weather module

      @kwabenalexx Add:

      units: 'us'
      

      to the DarkSkyForecast config to switch to imperial units. It’s the default for darksky, but not the default for this module.

      posted in Utilities
      michael5rM
      michael5r
    • RE: MMM-DarkSkyForecast - Yet ANOTHER weather module

      Great module - I really liked the fact that you had everything classed out, so it was super easy to manipulate the UI without having to screw with your JS.

      Looks very nice on my mirror:

      0_1544242929790_0921efcf-1970-4d02-9783-d59a612322b1-image.png

      posted in Utilities
      michael5rM
      michael5r
    • MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

      Hi there,

      Just created & released my first MM module - it’s called mmm-nest-status and displays your Nest thermostats and protect smoke detectors on your magic mirror. There are a couple of other Nest modules out there, but I found them be either buggy, ugly or unmaintained, so I thought it was time for a brand new module.

      It shows all states of your thermostats and protects, but also supports multiple view modes, sizes and designs, so there’s a good chance you’ll be able to use it no matter how you’ve set up your mirror.

      Check it out here:
      [card:michael5r/mmm-nest-status]

      There are a ton of screenshots in the repo, showing all the different view modes, but here’s a couple of representative ones:

      0_1544198378033_c82f4ea1-33e1-4aa1-9b0a-09c3eb27cd8c-image.png

      0_1544198609821_3dbd8f66-a552-4303-8234-520fb0fd033b-image.png

      0_1544198391391_a0c653dc-8bb3-472d-8b6e-d10dca80e9d7-image.png

      0_1544198404952_13757140-9aa8-4711-900d-46f967217100-image.png

      Hope you find it useful!
      Michael


      UPDATES

      12-09-2018: Version 1.2.0
      Refactors the data-getting to use the socket system built into the magic mirror project - this will allow my upcoming mmm-nest-cameras module to use the same Nest data without having to do multiple calls to the Nest API.

      12-12-2018: Version 1.3.0
      Socket updates, small tweaks.

      12-27-2018: Version 1.4.0
      Adds motionSleep and motionSleepSeconds options which allow you to suspend this module when no movement has been detected for X number of seconds.

      12-28-2018: Version 1.4.1
      Changes motionSleep to tie into the regular suspend and resume functions exposed by MM

      posted in Utilities nest thermostat protect smoke detector
      michael5rM
      michael5r
    • 1 / 1