MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. BKeyport
    • Profile
    • Following 0
    • Followers 2
    • Topics 43
    • Posts 906
    • Best 99
    • Controversial 8
    • Groups 1

    BKeyport

    @BKeyport

    Module Developer

    111
    Reputation
    2379
    Profile views
    906
    Posts
    2
    Followers
    0
    Following
    Joined Last Online

    BKeyport Unfollow Follow
    Module Developer

    Best posts made by BKeyport

    • MMM-Multimonth

      MagicMirror Module to display a calendar with multiple months

      A mini-calendar with as many months as the user wants, assuming screen space is available.

      vert-noweek-norep.png

      horz-noweeknum.png

      Download

      https://www.github.com/BKeyport/MMM-Multimonth

      Installation

      Clone this repository in your ~/MagicMirror/modules/ folder ( $ cd ~MagicMirror/modules/ ):

      git clone https://github.com/BKeyport/MMM-Multimonth.git
      

      Using the module

      To use this module, add it to the modules array in the config/config.js file:

      {
        module: 'MMM-Multimonth',
      	position: 'top_left', // can be any of the postions
      	config: { // Optional - will default to 3 months, with one previous and one next. 
      	  startMonth: -1, // Define when you start from current month (negative is before current, zero is current, positive is in future) 
               monthCount: 3, //  How many months to display 
               highlightWeekend: false // highlightWeekend if desired, set to true. 
      	}
      }
      

      Many thanks to kirash for the inspiration with the monthly_calendar module, sdetweil and lavolp3 for the help in coding and CSS work. Without your help, this would just be a pipe dream.

      This is a basic module, but I felt it was good enough for release to the public.

      Please, if you have any suggestions for improvement, let me know, I’m learning Javascript and CSS as I write this, and I dream of much bigger things.

      Localization is provided by moment.js and controlled by the master language of MagicMirror. Please file any errors with localizations as bugs with the moment.js team - https://github.com/moment/moment/

      Versioning

      0.1 Initial release, English / Sunday first only
      0.2 Change code to improve functionality, allow for some localization - will not move start of week yet, but will change languages with system.
      0.25 Temporary fix to allow module to refresh highlighted day of week - sometime between midnight and 1am, wasn’t doing any refresh at all in new MM configuration, didn’t realize it because I rebooted my system nightly for another tool I no longer use. Will adjust later to join in the midnight madness…
      0.3 Now properly refreshes at midnight.
      0.9 - Start of week now moves per moment.js. Note: at this point, module is almost everything I wanted. If I don’t get any bug reports that I can control, I’m going to bump it up to 1.0 and call it good.
      0.95 - Fixed code for moving start of week, formula was backwards. Suggestion was made to add to module, will be adding soon.
      0.99 - Major rewrite by Volker Wegert (Danke sehr!) - Implements everything I want, and I even understand the wizard level code he wrote.
      1.00 - Minor changes to code/css to standardize look.
      1.10 - Added leading and trailing months when 1 month is selected per user request.
      1.20 - Added weekend highlight
      1.21 - Added ability to change current day highlight for weekends.

      posted in Utilities
      BKeyport
      BKeyport
    • RE: Is cloning to a new OS possible?

      @tippon To speed reinstall - I have my config.js and custom.css symlinked to a common location outside the MagicMirror tree, and a bash script setup to clone and npm install every module I use, and reinstall the symlinks.

      easy peasy…

      My system backs that up nightly to a private github repository, and bam quick and dirty way to get my system back running when my pi crashes.

      posted in General Discussion
      BKeyport
      BKeyport
    • MMM-Worldclock

      MagicMirror Module to display clocks from multiple time zones

      After not getting an answer on Sean’s EXCEPTIONAL worldclock module (His first) from the new maintainer, I decided to fork it and start working on it myself. As such, I present to you “MMM-Worldclock”… It’s mostly Sean’s work, with a few fixes here and there right now.

      This will be fully supported, much in the spirit of Sean’s work.

      This module is derived from default MagicMirror module ‘clock’ and modified. Thanks to michaelteeuw.
      This module displays times from around the world.
      Modified fork of worldclock by eouia, renamed and improved.

      Capture.PNG

      Installation

      1. Execute the following commands to install the module:
      cd ~/MagicMirror/modules # navigate to module folder
      git clone https://github.com/BKeyport/MMM-Worldclock # clone this repository
      
      1. Then, add the following into the modules section of your config/config.js file:
      {
        module: 'MMM-Worldclock',
        position: 'top_left', // This can be any of the regions, best results in top_left or top_right regions
        config: {
          // See 'Configuration options' for more information.
      
          timeFormat: 'hh:mm A', //defined in moment.js format()
          style: 'top', //predefined 4 styles; 'top', 'left','right','bottom'
          offsetTimezone: null, // Or you can set `Europe/Berlin` to get timegap difference from this timezone. `null` will be UTC timegap.
          clocks: [
            {
              title: "Home",
            },
            {
              title: "HOLLYWOOD", // Too long title could cause ugly text align.
              timezone: "America/Los_Angeles", //When omitted, Localtime will be displayed. It might be not your purporse, I bet.
              flag: "us",
            },
            {
              timezone: "Asia/Seoul",
            },
          ]
        }
      },
      

      Of course, you should change the configuration values for your purpose.

      for configuration options see github.

      Updates:

      2020-08-06 (BKeyport) Fixed timeFormat per clock to work properly.
      2019-02-24 (Sean) offsetTimezone is added.
      2017-08-25 (sean) supports MMM-TelegramBot (https://github.com/eouia/MMM-TelegramBot) command /worldclock is added
      2017-08-10 (sean) Country flags are supported. HTML/CSS Structures are refined.

      ** Note: telegram bot may not work in this version, I did not modify that code in the slightest, however, if it’s relying on the module name, it’s broken. I’ll fix it if it gets reported to me.

      Thanks to Seongnoh Sean Yi’s (eouia) for his exceptional module and all the wonderful support he’s done over the years. I wouldn’t have the knowledge I have without Sean’s help.

      posted in Utilities
      BKeyport
      BKeyport
    • RE: Flickering in portrait mode
      sudo Raspi-config 
      

      Advanced Options -> GL Drivers -> Legacy.

      “legacy” and “normal” drivers are the same thing.

      posted in Troubleshooting
      BKeyport
      BKeyport
    • RE: Room climate module

      The problem with having the mirror and the sensor so close is that the heat from the monitor and the pi itself will mess with the readings of the sensor.

      posted in Hardware
      BKeyport
      BKeyport
    • RE: MMM Remote Control Error

      FWIW, in the future,

      Open a terminal
      Type cd MagicMirror and press Enter
      Now you’re in the MagicMirror directory
      Type npm run config:check and press Enter
      MagicMirror will now check your config

      posted in General Discussion
      BKeyport
      BKeyport
    • RE: MMM-Multimonth

      new product released!

      Added:
      Language and calendar modification unlinked. The module now has startWeek variable to set the start of the week

      You now can shorten the day names to the shortest available for your language. (for english, instead of “Sun Mon Tue Wed Thu Fri Sat” it will be “S M T W T F S”

      Removed:
      All references and use of Moment. It’s now native code completely.

      Other:
      There’s a bug - Week numbers are in the system, but it will generate an additional line. I am going to re-do the module more (enough to create a MultiMonth2), so in that process I’ll sure I’ll find the cause.

      As a reminder, internationalization is based on the mirror as a whole, so if you have your mirror set to French, it will have French month and day names.

      Read the Readme for instructions.

      Thanks to MMRize for the inspiration to do this!

      posted in Utilities
      BKeyport
      BKeyport
    • RE: I am stuck need help

      One of the best commands to know is

       npm run config:check
      

      Start at the topmost error and work your way down the file - it’s got lots of problems, but is easily fixed. Also, I highly recommend a graphical type editor if possible - Geany is what I use.

      I installed samba on my magic mirror so I can edit with the PC version of Geany and save it right to the Pi. It’s great.

      posted in Troubleshooting
      BKeyport
      BKeyport
    • RE: Newbie - Build Smart Mirror

      This is the fun part of the process. Figuring out what’s best to do for YOU.

      I Would:

      • Get a fan “hat” for your Pi.
      • Use heat sinks
      • If you use the HDMI outputs, use the one closest to the power plug.
      • Know your power supply is proper for the unit. (Bad power = bad experience).
      • Install using @sdetweil scripts. (See: https://docs.magicmirror.builders/getting-started/installation.html#alternative-installation-methods)

      I Wouldn’t:

      • Follow any old guides regarding magic mirror or follow guides not on the magicmirror.builders website - They may have bad information.
      • forget to specify your OS version when searching for help (major system breaking changes happen between releases, so always search for things like this “Static IP address using buster”)
      • ask questions before searching for an answer (We’ve been through it all).
      • be afraid to ask questions here - no question is stupid, just some are already answered.

      – Good luck, may your project be successful.

      posted in General Discussion
      BKeyport
      BKeyport
    • RE: MMM-Multimonth

      @sdetweil Thanks, Sam - I tend to think multiple platform so I leave the main directories off when I write…

      posted in Utilities
      BKeyport
      BKeyport

    Latest posts made by BKeyport

    • RE: MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

      @BerkSmash1984 I’ve also found, in the documentation for MMM-Wallpaper, a “filter” option - If you don’t want to put a background on the modules, you can use this to improve readability.

      posted in Utilities
      BKeyport
      BKeyport
    • RE: MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

      @sdetweil found it. Missing a * on the opening CSS when I did it…

      .MMM-OpenWeatherForecast * {
      	box-sizing: border-box;
      	margin-left: auto;
      	margin-right: auto;
      }
      

      does it, for anyone else that runs across this.

      posted in Utilities
      BKeyport
      BKeyport
    • RE: MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

      @BerkSmash1984 FYI, there’s more ways to make things easier to read - fade the background - or add a background to the modules themselves.

      Here’s how to add a background to the modules:

      the .5 is the opacity in this case, I’ve got it set to 50% visible.

      .module {
        background-color: rgba(0,0,0,.5); 
      }
      
      posted in Utilities
      BKeyport
      BKeyport
    • RE: MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

      @sdetweil the problem is that I can’t find the right CSS class to apply it to.

      posted in Utilities
      BKeyport
      BKeyport
    • RE: MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

      Anyone know how to get the entire table to center within the region? I don’t want to center the contents, only the position of the table being built by the app.

      thanks!

      posted in Utilities
      BKeyport
      BKeyport
    • RE: MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

      @BerkSmash1984

      It uses the defaults from MagicMirror for grey text. I use:

      root {
      	--color-text: #DDD;
      	--color-text-dimmed: #666;
      	--color-text-bright: #fff;
            --color-background: #000;
      	
      }
      
      /* Originals: 
        --color-text: #999;
        --color-text-dimmed: #666;
        --color-text-bright: #fff;
        --color-background: #000;
      /*
      posted in Utilities
      BKeyport
      BKeyport
    • RE: Change the color of the calendar line for the TODAY event.

      @sdetweil The other option is to use an alternative calendar display module, like MMM-CalendarExt3Agenda which is designed for a literal billion CSS options.

      posted in System
      BKeyport
      BKeyport
    • RE: MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

      @chris1971 DarkSky is dead. You’ll have to switch. Apple bought 'em up and is shutting down the APIs.

      posted in Utilities
      BKeyport
      BKeyport
    • RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons

      @wishmaster270 Submitted a pull - please tell me what you think… I didn’t update the documentation however. I figured you could handle that, as I’m a horrible documentation writer.

      🤣🤣🤣

      posted in Utilities
      BKeyport
      BKeyport
    • RE: A working weather module?

      @bclinton1962 I use openweather forcast for my forecasts, and for the current data (due to the local station being placed where it’s constantly wrong), I use MMM-CommandToNotification and MMM-ValuesByNotification to read my davis weather station.

      posted in Troubleshooting
      BKeyport
      BKeyport