@Fonfon also take a look here https://github.com/roramirez/MagicMirror-Module-Template
Read the statement by Michael Teeuw here.
Posts
-
RE: setInterval for multiple API requests
@Privacywonk i would do it like this, copy your schedule update to node helper
- send a socket notification from client to nodehelper in the start method to initialise the socket connection (e.g. the config)
this.sendSocketNotification("CONFIG", this.config);
- in the nodehelper when you receive the notification, run schedule update
socketNotificationReceived: function(notification, payload) { if (notification === 'CONFIG') { this.config = payload; if (this.started !== true) { this.started = true; this.scheduleUpdate(); } } }
the started flag makes sure it gets called only once, even if you’re connecting multiple clients.
- send a socket notification from client to nodehelper in the start method to initialise the socket connection (e.g. the config)
-
RE: MMM-Fuel
@seansation this is currently not supported, feel free to send a pr.
-
RE: 7" touchscreen as a alarm clock?
@wizz you can shrink them with css
-
RE: MMM-voice for Brits!
@joe84maiden be aware, that when you add more modules for voice recognition, the module will create a new dictionairy automatically. So all your adjustments would be lost if you don’t backup them somewhere ;)
-
RE: MMM-Fuel
Alternative provider for the USA and also supporting Canada and Tasmania (Australia) now.
2.4.0
Added
Changed
- Migrated provider
nsw
from API v1 to v2 in order to support new region Tasmania (Australia) - Dependency update
Link to module https://github.com/fewieden/MMM-Fuel
- Migrated provider
-
RE: 7" touchscreen as a alarm clock?
@wizz you could try
body { transform: scale(0.5); }
which should make everything half the original size
-
RE: Help choosing more than one item from an array
@mykle1 what you describe above is actually not an array, it’s an object (hash). Arrays are always defined with
[]
not{}
.Now to your problem. you can create an array from your config value and save it in a variable e.g.
var lifeForms = this.config.lifeForm.split(',');
. it would look like this['Cats', 'Bats', 'Bears']
. Then you can loop over it to get the ids and save it into another variablevar lifeFormIds =[]; for (let lifeForm of lifeForms) { if (this.config.lifeFormArray[lifeForm]) { lifeFormIds.push(this.config.lifeFormArray[lifeForm]); } }
To create the id list you just join it comma seoerated like
lifeFormIds.join(',');
-
RE: (2.1.0, API) Revising the Show/Hide mechanism
@Jopyth one way would be hide a module with the scheduler and show it again with the remote control or voice or something else
-
RE: 7" touchscreen as a Non-alarm clock?
@carltonb try that one
{ module: 'clock', position: 'top_left', config: { dateFormat: 'dddd<br />MMMM<br />D<br />YYYY' } }