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

    Posts

    Recent Best Controversial
    • RE: Changing moment.js behavior

      As the calender.js file takes over the days “TODAY” and “TOMORROW” it was actually quite easy to add another definition to take over the “DAYAFTERTOMORROW”.

      I’ve changed the ‘calender.js’ code to look like this:

      ...
      if (event.fullDayEvent) {
      	if (event.today) {
      		timeWrapper.innerHTML = this.translate("TODAY");
      	} else if (event.startDate - now < one_day && event.startDate - now > 0) {
      		timeWrapper.innerHTML = this.translate("TOMORROW");
      	} else if (event.startDate - now < 2*one_day && event.startDate - now > 0) {
      		timeWrapper.innerHTML = this.translate("DAYAFTERTOMORROW");
      	} else {
      ...
      

      And I’ve adjusted /MagicMirror/translations/de.json to look like this

      ...
      	"TOMORROW": "Morgen",
      	"DAYAFTERTOMORROW": "Übermorgen",
      	"RUNNING": "noch",
      ...
      

      Which led to this:
      0_1472593100725_termine.png

      Great, just what I needed… :)

      I’m aware that this will be overwritten by any update I might perform, but I can’t think of any other way to implement this feature.

      posted in Troubleshooting
      yo-lessY
      yo-less
    • RE: Website Launched

      Wow, great work!
      This kind of production quality is normally only found in projects that try to sell you something :). Well, I’m sold, keep up the outstanding work.

      posted in Announcements
      yo-lessY
      yo-less
    • RE: Adjusting monitor brigthtness level via software

      @KirAsh4 Sorry to hear that. All the best for you.

      posted in Hardware
      yo-lessY
      yo-less
    • RE: Auto-disable module

      @ronny3050 Impressive response, thank you!

      posted in Development
      yo-lessY
      yo-less
    • RE: Changing moment.js behavior

      @MichMich Well, I sort of assumed that a change that somehow breaks the calendar for any other language than German would probably not be merged into the develop branch ^^. But I can have it depend on an if-condition and we can take a look at whether it makes sense to include it in the calendar, will submit a pull request and we’ll take it from there.

      posted in Troubleshooting
      yo-lessY
      yo-less
    • RE: PIR sensor behind glass?

      @dmcinnes It’s great to hear that they’re working on an external 5v power supply, this means it should be possible to use them on the Pi. It would be really nice if you could try hooking them up to the Pi to see if they’re acting up once attached to the Pi’s pins. I’ll probably try to get one as well if you can confirm they’re working on the Pi as well.

      posted in Hardware
      yo-lessY
      yo-less
    • RE: Schedule a function in a module.

      Hey @veryaner, I’m currently working on a module that implements node-cron and it’s running fine. If you’re still looking for an answer, let me know.

      posted in Development
      yo-lessY
      yo-less
    • RE: cant get magicmirror to show up on screen

      Then you’re not experiencing the same problem. What you are describing is normal behavior.

      If you use SSH, the Pi doesn’t know what monitor it should use, since you’re sitting in front of another monitor, so your command should be:

      DISPLAY=:0 npm start
      

      Try that, it should work without problems.

      Everything is also explained here .

      Why aren’t you using PM2 to run the mirror?

      posted in Troubleshooting
      yo-lessY
      yo-less
    • RE: cant get magicmirror to show up on screen

      @kula Great to know it’s working for you. Use PM2, it makes sure your mirror stays up and running and doesn’t stop at some stage. It also provides logs that can help troubleshoot potential mirror problems.

      posted in Troubleshooting
      yo-lessY
      yo-less
    • 1 / 1