@buzzkc great thanks… I always thought that custom.css was a bad idea… every module should supply their own file as the getStyles() function provides the mechanism.
Read the statement by Michael Teeuw here.
Posts
-
RE: CSS Order of execution
-
RE: Github usage and module continuations
@crisvdn here is a link to the list work
https://forum.magicmirror.builders/topic/18092/automatic-checking-of-all-magicmirror-modules?_=1704465730999i’ve just pinned it to the top of the Development section so it won’t get lost
(I couldn’t find it when I mentioned it the first time) -
modules using openweather api need review
we have received notice from Openweather, that they are shutting down the version 2.5 weather endpoint in June 2024
see
https://github.com/MagicMirrorOrg/MagicMirror/issues/3424for the weather provided by MagicMirror, you will also have to change or add the apiVersion property
see the documentation for exact format
https://docs.magicmirror.builders/modules/weather.html -
RE: Creating Module with API Key/Secret
@lilpkstud said in Creating Module with API Key/Secret:
JSON.stringify()
correct… u converted the object to a string… don’t need to do that
just pass the object from helper up to module …
then it will use the this.data.name
-
RE: Are you tired of editing config.js, or have trouble doing it, see my new module
I have updated the module now to support multiple instances of the same module,
a little config (adding name to a file) … altho the module will auto detect if multiples are being used NOW, regardless of the fileALSO, one lacking feature of this solution is being able to get the form exactly right… as the info is missing in the module data…
BUT i am creating the form info ANYHOW, so it can be saved and manually edited to improve the module experience, and I will use THAT instead of constructing the info every time…
this means u can add selection lists, and other features (very easily)
see the two issues for instructionsmulti-module
https://github.com/sdetweil/MMM-Config/issues/2and save and use schema file
https://github.com/sdetweil/MMM-Config/issues/11 -
RE: Head first developing MM module for extreme beginners
@nrayever see my sample module,
https://github.com/sdetweil/SampleModuleand follow the module developers doc
-
RE: MMM-cryptocoin
thanks guys.
send me text messages if u think I’ve missed some other troublesome users
-
RE: Help with creating a table
@Schmaniel welcome to the fun. 900,000 details to consider. size color, font … css
-
RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
@Ivanov_d OR the better way, never change files supplied by mm or a module(as this breaks upgrades or fix distribution). the system is designed to support your local changes
edit ~/MagicMirror/css/custom.css
(if it doesn’t exist, create it)add all those definitions but add the module name (and a space) in front of each
.MMM-HomeAssistant-Sensors
notice the leading dot
-
RE: Read dates from file and do a compare
@bravooscar
in node_helper.jsvar NodeHelper = require("node_helper"); const fs = require('fs') const path = require('path') // add require of other javascripot components here // var xxx = require('yyy') here module.exports = NodeHelper.create({ // handle messages from our module// each notification indicates a different messages // payload is a data structure that is different per message.. up to you to design this socketNotificationReceived(notification, payload) { console.log(this.name + " received a socket notification: " + notification + " - Payload: " + payload); // if config message from module if (notification === "CONFIG") { // save payload config info this.config=payload let p = path.resolve('.','modules',this.name,this.config.filename) console.log("file="+p) fs.readFile(p, (error,filedata)=> { console.log("filedata="+filedata) let data =JSON.parse(filedata) this.sendSocketNotification('filedata', data) }) } }, });