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

    Posts

    Recent Best Controversial
    • RE: GasBuddy

      If you want to, send it to me. I can take a look today or tomorrow.

      posted in Requests
      yawnsY
      yawns
    • RE: Translation "After one month" in Calendar Module

      Yep, looks like I am right. This is found in moment.js locale settings. In this case it uses the future variable and M from relativeTime

      //! moment.js locale configuration
      //! locale : Dutch [nl]
      //! author : Joris Röling : https://github.com/jorisroling
      //! author : Jacob Middag : https://github.com/middagj
      
      var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
      var monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
      
      var monthsParse$3 = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
      var monthsRegex$4 = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
      
      hooks.defineLocale('nl', {
          months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
          monthsShort : function (m, format) {
              if (!m) {
                  return monthsShortWithDots$2;
              } else if (/-MMM-/.test(format)) {
                  return monthsShortWithoutDots$2[m.month()];
              } else {
                  return monthsShortWithDots$2[m.month()];
              }
          },
      
          monthsRegex: monthsRegex$4,
          monthsShortRegex: monthsRegex$4,
          monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
          monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
      
          monthsParse : monthsParse$3,
          longMonthsParse : monthsParse$3,
          shortMonthsParse : monthsParse$3,
      
          weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
          weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
          weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
          weekdaysParseExact : true,
          longDateFormat : {
              LT : 'HH:mm',
              LTS : 'HH:mm:ss',
              L : 'DD-MM-YYYY',
              LL : 'D MMMM YYYY',
              LLL : 'D MMMM YYYY HH:mm',
              LLLL : 'dddd D MMMM YYYY HH:mm'
          },
          calendar : {
              sameDay: '[vandaag om] LT',
              nextDay: '[morgen om] LT',
              nextWeek: 'dddd [om] LT',
              lastDay: '[gisteren om] LT',
              lastWeek: '[afgelopen] dddd [om] LT',
              sameElse: 'L'
          },
          relativeTime : {
              future : 'over %s',
              past : '%s geleden',
              s : 'een paar seconden',
              ss : '%d seconden',
              m : 'één minuut',
              mm : '%d minuten',
              h : 'één uur',
              hh : '%d uur',
              d : 'één dag',
              dd : '%d dagen',
              M : 'één maand',
              MM : '%d maanden',
              y : 'één jaar',
              yy : '%d jaar'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
          ordinal : function (number) {
              return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
          },
          week : {
              dow : 1, // Monday is the first day of the week.
              doy : 4  // The week that contains Jan 4th is the first week of the year.
          }
      });
      
      posted in Troubleshooting
      yawnsY
      yawns
    • RE: Modules to display Stock (Capital Stock)

      @qqqqqqqq
      You are in the modules base folder, but you need to change into the specific module folder instead

      posted in Troubleshooting
      yawnsY
      yawns
    • RE: MagicMirror Servermode on Synology DS

      Well, you need node.js on your Synology webserver. Searching the web it seems to be possible, but the node.js addon I found was rather old. Give it a try, you can’t break it ;)

      posted in Tutorials
      yawnsY
      yawns
    • RE: Worldclock & Currency

      @ryck said in Worldclock & Currency:

      @yawns You can always use https://exchangeratesapi.io/ if you don’t want to make people get an apiKey…

      Thanks for the heads up. I updated the module to use the new source instead.

      posted in Requests
      yawnsY
      yawns
    • RE: Translation "After one month" in Calendar Module

      Okay MM-Hans. After looking at vendor.js I noticed moment.js is loaded from "moment.js" : "node_modules/moment/min/moment-with-locales.js",

      So if you go ahead, open "~/MagicMirror/vendor/node_modules/moment/min/moment-with-locales.js", and scroll down to line 10649 (no, I’m not kidding) and change één to een you are good to go.

      0_1518780654875_een.PNG

      posted in Troubleshooting
      yawnsY
      yawns
    • RE: How do I edit config, I see every new module starts whit going to config.js

      @KMH0
      Actually it is always the same thing.

      1. Find yourself a module you like, for example: MMM-IP
      2. Top right on the github repository you see a green button saying “clone or download”. If you click it you get the url for this repository. In this case it is https://github.com/fewieden/MMM-ip.git
      3. Open a terminal on your pi (either directly or using SSH) and type cd ~/MagicMirror/modules
      4. Clone the module to your pi by typing git clone https://github.com/fewieden/MMM-ip.git. This downloads the repository and extracts it into a new folder.
      5. Enter the new directory cd MMM-ip and run npm install (in this case it is not required … the readme should tell you to do so)
      6. Edit your config file and add the code for the new module as the readme instructs to.
      7. Restart your magic mirror process and check what happened.

      Sidenote: If you run into trouble with your config file, you can always paste the content into http://jshint.com/. If everything is fine it will only show this which is fine:

      One undefined variable
      64	module
      
      posted in Troubleshooting
      yawnsY
      yawns
    • RE: MagicMirror Servermode on Synology DS

      according to the synology wiki:

      ipkg update; ipkg install nano

      posted in Tutorials
      yawnsY
      yawns
    • RE: Himself's first Mirror

      Interesting, looks very slim. I am not sure if I like the orange/pink color or not :)

      posted in Show your Mirror
      yawnsY
      yawns
    • RE: Calendar Module +1 day Error

      It is a bit irritating where to put the config stuff. Some needs to go to config section directly, some need to go to the calendars section.

      Please try this:

      {
      	module: 'calendar',
      	classes: 'default everyone',
      	// header: 'Termine',
      	position: 'top_right',
      	config: {
      		displayRepeatingCountTitle: true,
      		timeFormat: 'absolute',
      		dateFormat: 'DD MMM',
      		fullDayEventDateFormat:'DD MMM',
      		showEnd: false,
      		getRelative: 48,
      		urgency: 2,
      		calendars: [
      			{
      				url: 'https://calendar.google.com/calendar/XXX',
      				symbol: 'calender',
      				colored: true,
      				maximumEntries: 5,
      				repeatingCountTitle: 'Birthday'
      			}
      			]
      	}
      },
      
      posted in Troubleshooting
      yawnsY
      yawns
    • 1
    • 2
    • 18
    • 19
    • 20
    • 21
    • 22
    • 31
    • 32
    • 20 / 32