@andrewchumchal also in MMM-Digital-Ocean.js
Read the statement by Michael Teeuw here.
Posts
-
RE: Need some advise. Digital Ocean Modules
-
RE: Need some advise. Digital Ocean Modules
this should give you a litte help
node_helper.jsconst 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
-
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) ?
-
RE: How to make sure dependencies get installed?
@andrewchumchal create a package.json file with
npm initfill out the fields, after that typenpm install --save DEPENDENCYthen the dependencie gets saved into the package.json file, when you provide the package.json file with your module the users have to typenpm installand all dependencies which are stored in package.json automatically getting installed -
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
-
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 Schedulesection, but it is necessary anyways, so it should be moved to the install instructions @ianperrin -
RE: Calendar and newsfeed loading...
@elfary any errors in the terminal or electron console (
CMD+SHIFT+Ior starting mirror withnpm start dev)? -
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 followingcd ~/MagicMirror/modules/MMM-Formula1and then typenpm install -
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
-
RE: MMM-PIR-Sensor - White Screen
@Bangee I’m using 6.4.0 but I got no pir sensor
-
RE: MMM-PIR-Sensor - White Screen
@Bangee did you change your node version at some point?
-
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.?
-
RE: MMM-PIR-Sensor - White Screen
@Bangee doesn’t matter anymore paviro exchanged the wiring-pi library to onoff
-
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

[card:fewieden/MMM-NFL]
-
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/
-
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
-
RE: MMM-PIR-Sensor - White Screen
@zam start with
npm start devand report if there is an error or in the terminal -
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 ;)
-
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