A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Need some advise. Digital Ocean Modules
-
where do i add the very last part ?
-
@andrewchumchal also in MMM-Digital-Ocean.js
-
Any where ? or in a function called socketNotificationReceived
-
socketNotificationReceived: function(notification, payload){ if(notification === "DATA"){ this.droplets = payload; } },
-
@strawberry-3.141
Thanks again for all of you help. Now I just need to get the getDom to work :) -
Any ideas where i can start? like where i can get the name and status.
-
for(var i = 0; i < this.droplets.droplets.length; i++;){ var name = this.droplets.droplets[i].name; var status = this.droplets.droplets[i].status; var ip = ''; for(var n = 0; n < this.droplets.droplets[i].networks['v4'].length; n++;){ ip += this.droplets.droplets[i].networks['v4'].ip_address + ' | '; } for(var n = 0; n < this.droplets.droplets[i].networks['v6'].length; n++;){ ip += this.droplets.droplets[i].networks['v6'].ip_address + ' | '; } ip = ip.replace(/ | $/, ''); }
-
@strawberry-3.141
sorry to bug you so much dose that go in the get dom ? -
@andrewchumchal this is just how you can access status name and the ip in getDom for example but you still need to render this
-
This post is deleted!