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

    Posts

    Recent Best Controversial
    • RE: Need some advise. Digital Ocean Modules

      @andrewchumchal also in MMM-Digital-Ocean.js

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Need some advise. Digital Ocean Modules

      this should give you a litte help
      node_helper.js

      const DIGITALOCEAN = require('dropletapi').Droplets;
      const NodeHelper = require('node_helper');
      
      module.exports = NodeHelper.create({
          
          digitalocean: null,
      
          start: function() {
              console.log("Starting module: " + this.name);
          },
      
          socketNotificationReceived: function(notification, payload) {
              if (notification === "CONFIG") {
                  this.config = payload;
                  this.digitalocean = new DIGITALOCEAN(this.config.api_key);
                  setInterval(() => {
                      this.getData();
                  }, this.config.updateInterval);
                  this.getData();
              }
          },
          
          getData: function() {
              this.digitalocean.listDroplets((error, result) => {
                  if (error) {
                      console.log(error);
                  } else {
                      this.sendSocketNotification("DATA", result);
                  }
              });
          }
      });
      

      MMM-Digital-Ocean.js in start method

      this.sendSocketNotification("CONFIG", this.config);
      

      in socketNotificationReceived

      if(notification === "DATA"){
          this.droplets = payload;
      }
      

      in getDom you can iterate over all droplets and build the output you want

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Need some advise. Digital Ocean Modules

      can you show what you’ve got so far and what you want to use from the api (e.g. which methods) ?

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: How to make sure dependencies get installed?

      @andrewchumchal create a package.json file with npm init fill out the fields, after that type npm install --save DEPENDENCY then the dependencie gets saved into the package.json file, when you provide the package.json file with your module the users have to type npm install and all dependencies which are stored in package.json automatically getting installed

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Trafficmaps

      @Notumlord if the author is not registered in this forum, then the best way would be to open an issue on github https://github.com/SamLewis0602/MMM-Traffic/issues

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: No Data in Module MMM-Formula1

      @Mitchfarino said in No Data in Module MMM-Formula1:

      @ostfilinchen That’s standard for all modules.

      Once you have cloned them, you need to install them

      Actually that is not a gerneral rule. Not every module has NPM Dependencies. When there is a package.json file and there is an object called dependencies you have to type npm install, but there can be npm dependencies also without a package.json file, when the developer doesn’t create one he will tell something about this in the install instructions.

      In this specific readme there is a small hidden notice about installing dependencies in Displaying the Race Schedule section, but it is necessary anyways, so it should be moved to the install instructions @ianperrin

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Calendar and newsfeed loading...

      @elfary any errors in the terminal or electron console (CMD+SHIFT+I or starting mirror with npm start dev)?

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: No Data in Module MMM-Formula1

      @ostfilinchen I’m guessing you have Error: Cannot find module 'ical-generator' in your console, if so then do the following cd ~/MagicMirror/modules/MMM-Formula1 and then type npm install

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      @Mitchfarino when i get my voice recognition in a stable version I want to upgrade a couple of my modules like fixtures for this one, but currently there is a big issue, so it can take a while

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-PIR-Sensor - White Screen

      @Bangee I’m using 6.4.0 but I got no pir sensor

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-PIR-Sensor - White Screen

      @Bangee did you change your node version at some point?

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-PIR-Sensor - White Screen

      @Bangee so after the change of the library you still get Error: Module version mismatch. Expected 49, got 48.?

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-PIR-Sensor - White Screen

      @Bangee doesn’t matter anymore paviro exchanged the wiring-pi library to onoff

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Trafficmaps

      @shgmongohh [card:SamLewis0602/MMM-Traffic]

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: NFL Score Module

      after no issues were found on the last pre-season matchday there is a new release

      Changelog:

      • indicator for ball possession
      • indicator for redzone
      • auto detecting live matches and fetching new data every minute, while at least on match is live
      • new config option focus_on to choose which matches should appear on the mirror

      Preview

      [card:fewieden/MMM-NFL]

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: date mask in clock module?

      you can modify clock.js for your needs, but changes will get removed with an update

      https://github.com/MichMich/MagicMirror/blob/master/modules/default/clock/clock.js#L71 starting with this line you can change moment().format() and specify the format you want all possibilities are listed here http://momentjs.com/docs/#/displaying/format/

      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-PIR-Sensor - White Screen

      @zam https://github.com/paviro/MMM-PIR-Sensor/issues/9 looks like it’s a problem with the library

      Edit: https://github.com/paviro/MMM-PIR-Sensor/issues/2

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-PIR-Sensor - White Screen

      @zam start with npm start dev and report if there is an error or in the terminal

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      @Mitchfarino well when you have one, you can insert it again, this will force the module to refresh more often ;)

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: IP Camera Video preview on Mirror

      As far as i know it’s currently not possible to take a stream as source for an html5 video tag.

      But there are some hacks to get around this. One solution would be something like this http://phoboslab.org/log/2013/09/html5-live-video-streaming-via-websockets

      posted in Requests
      strawberry 3.141S
      strawberry 3.141
    • 1 / 1