@feleb i have a covid charting module
Read the statement by Michael Teeuw here.
Posts
-
RE: Chart Module for Json Data
-
RE: Can't upload pictures to site..
I have reported this, hopefully someone from the website team will look into this
-
RE: basic help
and for the future, if u have problems with config.js syntax errors, in the MagicMirror folder run
node tests/configs/check_config.jsit will report the problems. start & fix from the top
edit: wrong name for the checker… (removed extra s on the end) -
RE: updated installer script available for testing
@BD0G said in Anyone want to try updated installer...:
XXABI_1.3.9’ not found (required by node) node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: versionGLIBCXX_3.4.21’
I have found a fix, allowing jessie to continue to work… added fix to latest installer…
thanks for your help -
RE: client/server architecture
@peterbarlow2000 the node_helper file gets executed on the server, (one instance for all clients)
and the file in the module folder that matches the module name (modulename.js we call it)
runs on the client (one instance for each client)I would change this
code needs to be executed on the client (by electron?).to
code needs to be executed on the client (in the browser?). -
RE: npm dependencies not installed on fresh MM2 installation
yes, some of the platforms (Pi Stretch for example) are not installing npm and/or node as part of their initial installs…
see here https://www.battlehillmedia.com/installing-node-js-and-npm-on-raspberry-pi-3/
-
RE: How to find the module(s) to update ?
@RIKKO14 the update notification module does a git status for each module. if the module is linked to an upstream GitHub repo, git status will tell you if you are behind on changes.
so, if the messages aren’t being helpful, go to each non-default folder in ~/MagicMirror/modules
and do
git statusif I reports behind, then do
git pull
if the module has a package.json file, then also do
npm install -
RE: client/server architecture
u can look at an example of how to connect the two to insure correct connection,
see my two posts starting here
https://forum.magicmirror.builders/topic/12021/making-my-first-module-issue-with-notifications/7modulename.js creates a random number on startup (per client)
and that is appended to the module identifier (per module: in config.js on server)
to create a unique module/client pair, and that is passed in/out on any requests to/responses from the node_helper -
RE: MMM-Awesome-Alexa (again =p)
@stalker401 i made a script out of the steps
https://www.dropbox.com/s/omrx3vztjp738hf/do-install.sh?dl=0
download, make it executable ( chmod +x do-install.sh)
and then execute it… (./do-install.sh)the steps include the whole thing, git clone, and onward
-
RE: CSS Font size and Color
@johnnyboy every module gets to do their own thing in terms of styles.
if they aren’t documented in the module doc, MAYBE there is a css file in the module folder (usually not)the ‘most’ direct way to discover the styles for a particular thing, is using the developers window (vs looking thru the code)
ctrl-shift-i, to open the dev window,
select the elements tab, and navigate thru the web page to find the elements you want to manipulate.
at the bottom of the page you will see the class tree list closest to the module on the right, closest to main.css on the left…the css tree of attributes is on the right, closest to the module on the top, closest to main on the bottom
looks like this , the element classnames are circled at the bottom
you can edit/add the attributes on the top right panel with a click, type its name (it will show a drop down , then is value, also a a drop down… so u can experiment and not have to write css file, try, etc,etc,etc
-
RE: Can't upgrade MM 2.7.0 on Raspberry Pi Zero W
@tjk031 edit the package.json and change the electron version from ^3.0.13 to ^2.0.4
then erase node_modules
rm -rf node_modulesand then
npm installagain
-
RE: Newsfeed Wrap with CSS
@schlittrix the text align has to be inside the bracesof the newsfeed class
-
RE: weather forecast and current weather modules
@hango ok, maybe YOU know what your getting yourself into… most users don’t…
follow the rules, talk about how you are SUPPOSED to do things… teach them the RIGHT way.
i’m here because I want to be, help users, we have enough problems with old docs written and not maintained, old code written and not maintained, we don’t need special instructions that are fragile.
-
RE: Beginner mistakes
@bhepler there is an ongoing problem w custom.css being overwritten.
My new upgrade script saves and restores
-
RE: Newsfeed Wrap with CSS
@schlittrix yes
u can specify lots of style elements in a single class like that
for readability you should put the contents on separate lines inside the braces
like thisnewsfeed-desc { width: 700px; text-align: center; } -
RE: Need help - New programmer
@innovation the ‘string’ is the value used in the getDom() function to create the html content
somestring:“this is just a test string”,
counter: 0,getDom(){ var wrapper=createElement("div") wrapper.innerText=this.somestring return wrapper; }there is no stopping the module, it MUST always be running… so, if u want to change the string,
you can start a timer, and when the timer expires, call a routine that does the work.timerRoutine: function(){ this.somestring="some other string" }but how does MM know u changed the value?
u tell MM there is new content…timerRoutine: function(){ this.somestring="some other string "+ this.counter++; this.updateDom(time_to_delay_in_ms, 0 = immediately) }now we need to start a timer… lets say, 15 seconds after we do it in getDom, lets change the text
getDom(){ var wrapper=createElement("div') wrapper.innerText=this.somestring // use the value of the somestring variable to display setTimeout(this.timerRoutine, 15000) // call the timerRoutine in 15000 milliseconds return wrapper; // after here , MM will put the html tree defined in wrapper, // in the 'position' the module defined in config.js }another way is to use the repeating timer, instead of the single event version
start: { // now the timerRoutine will be called every 15 seconds, forever // it will change the string, and then inform MM to call to get new content setInterval(this.timerRoutine,15000) // start a repeating timer every 15 seconds }, getDom(){ var wrapper=createElement("div') wrapper.innerText=this.somestring // use the value of the somestring variable to display return wrapper; }you can do this same updateDom() call after receiving a message back from your node helper with new content.
(my sample module does this) -
RE: MMM-network-signal module ALWAYS displays message text
@MMush that needs to be in the config block
{ module: position: config:{ showMessage: false } }, -
RE: weather module just shows loading?
@scumbelly right…
general config.js rules
thing to the left of colon (:) does not need quotes
if the thing to the right of colon is a number or true/false,
should NOT have quotes,
otherwise the thing to the right needs quotes.
single or double doesn’t matter, as long as both ends are the same -
RE: Petition to get Sdetweil his own group tag....
@bkeyport no thanks,… don’t need a badge… i like doing what I do… thats enough