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

    Posts

    Recent Best Controversial
    • Calendar event dates enhancement

      This is a request that was made by djsunrise19 on GitHub which i will quote below:

      Hi,
      
      today I've seen another behavior. I had an event at 16 o'clock. I looked on both (MM1 and MM2) mirrors at 15 o'clock:
      
      MM1: displays in 1 hour or in 45 minutes (of course, 15minutes later)
      MM²: displays today at 16 o'clock
      
      Is it possible to put this function from MM1 in your MM² app? I know that is a personal feature. But in my opinion the MM1 solution fits way better. So you realize that the event is in the near future.
      
      Perhaps we can make that configurable.
      

      This is my current take on it. I added a timeFormat config option that allows you to set it to 'absolute' or 'relative'. When set to 'relative' the time display will look like this:
      Relative Time Display

      While in 'absolute' format, it looks like this:
      Absolute Time Display

      The current code already checks whether an event is happening within the next 48 hours and translates the event time into ‘TODAY at’ or ‘TOMORROW at’. I added another check to see if an event it within the next 6 hours, which will change the time format to ‘in x hours’ which will count down till the event happens:

      6 hours Time Display

      This is all currently being worked on locally on my fork. Once done I’ll submit a pull request. But I’d like to get feedback from others (as well as from djsunrise19 who originally requested this.) I’d like to know what other enhancements/changes people would like to see.

      One thing for me is how I like things displayed. I like the relative time, but only up to a point. For example, if I see an event that says ‘in 2 days’, that will get my attention versus if it said ‘May 4th’. Simply because I may not know what the current date is and see the absolute date won’t mean much. However, at the same time, an event that’s happening 20 days from now, I don’t need it to say ‘in 20 days’. I’m perfectly happy with it saying ‘May 22nd’ on that. So i may add another option, maybe call it 'urgency' and allow it to be configurable to what one would want. For me that would be a week, so that any event happening within a week, it would say ‘in x days’ where everything else further away would display the absolute date. It’s a combination of having both absolute as well as relative dates displayed. That’s just my preference though.

      Thoughts?

      posted in Development
      KirAsh4K
      KirAsh4
    • RE: Preference Page

      Not that I’m aware of. But then, @MichMich is always working on some aspect or another of the code, sometimes in complete secrecy, in a bunker deep underground and won’t tell us anything. He’ll just surprise all of us one day: “NEW RELEASE!”

      posted in Requests
      KirAsh4K
      KirAsh4
    • RE: NPM ERR!

      @EoF, awesome. Thanks for that. Someone should start collecting all the various keyboard shortcuts and compile them in one post, possibly even on the wiki page. I’ve seen CTRL-W posted, this ALT-F2. One can also completely switch to a virtual console and back to the GUI by hitting CTRL-ALT-F[1-7] …

      posted in Troubleshooting
      KirAsh4K
      KirAsh4
    • RE: Attach the monitor with glue to the mirror?

      Attach the mirror to the monitor, not the other way around. I know, semantics, but the monitor is what is the heaviest here, and that is what should be hanging to the wall with proper brackets, the mirror then attaches to the monitor. If you hang the mirror on the wall, the monitor will fall off of it, or break it from the weight.

      posted in Hardware
      KirAsh4K
      KirAsh4
    • RE: Calendar event dates enhancement

      Yep, when I’m done cleaning it up. I have this thing against repeating blocks of code, which I had to do here, once for an all day event and again for a timed one. So let me rewrite it first and clean it up.

      posted in Development
      KirAsh4K
      KirAsh4
    • RE: Auto on/off of the TV (not the Pi)?

      @Rtopher said in Auto on/off of the TV (not the Pi)?:

      @KirAsh4
      I had already found the link you referenced and in trying to go through it the instructions falter. I’m following the setup listed towards the bottom of this site but when I get down to sudo git clone https://github.com/Pulse-Eight/libcec.git I’m prompted to login to get hub but then just get “remote: repository not found.” Any ideas or advice?

      What are you logging in as? The 'sudo' command is local to you (your rpi), so that password is your regular user’s password (possibly the 'pi' user, in which case you should not need it as it’s already configured to be allowed to run 'sudo'.) I can run it just fine and it clones that repository as expected.

      posted in Requests
      KirAsh4K
      KirAsh4
    • RE: How to install a module?

      Each module should have installation instructions. If you can’t find them, contact the author of the module for them. They should be posted.

      As for the clock, that is dependent on your Raspberry Pi, not MM. So if the clock is off, that means you haven’t configured the Raspberry Pi for the correct timezone and city. Please read the documentation on the 'raspi-config' command on how to configure your Raspberry Pi properly.

      posted in Troubleshooting
      KirAsh4K
      KirAsh4
    • RE: Secure Wireless Home Automation

      I use RF and BLE for most of my communications in the house. I started with RF a few years ago, using cheap nRF24L01+ modules (specifically these ones), then I started changing some things to BLE (like light control) so I can trigger them from my phone. Though lately I’ve been using ESP8266 WiFi modules which can encrypt/decrypt data being transferred. They have AES encryption built-in.

      Don’t ask me for any finished (or properly working) code though. :) It’s what I call a ‘beer project’, meaning when I have time to sit and have a beer, then I will have time to work on that project.

      posted in Hardware
      KirAsh4K
      KirAsh4
    • RE: Issue with sendSocketNotification and socketNotificationReceived

      Sorry, it was funny. I’ll go back to my dark cave now. :)

      posted in Development
      KirAsh4K
      KirAsh4
    • RE: Monthly Calendar View

      I can spend days coming up with style ideas, but I think I’m done fiddling with this. It’s time to move on to the next step in the process. I’m cleaning up the branches on GitHub and getting ready to open the flood gates. In the mean time, here’s the 4 styles that I’m including. Note that the ‘slate’ style is really meant for people who have a mirror-less display as the colors probably won’t show very well through a 2-way mirror.

      • The calendar is language aware, meaning it will translate to your language setting.
      • The calendar will automatically start on either Monday or Sunday depending on your language setting.
      • The header (month and year) can be suppressed (not shown) if desired.
      • Customization can be done through the custom CSS file
      • Current day is highlighted through CSS styling.
      • Probably more stuff I forget at the moment … I’ll have it all written out in the README file, including the full styling tree.

      0_1465100367184_calStyles.png

      posted in Requests
      KirAsh4K
      KirAsh4
    • 1 / 1