A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Editing files outside of MM

    10
    0 Votes
    10 Posts
    2k Views
    S
    @aareben if u haven’t made any progress, see my sample module, which provides a node_helper and uses socket notifications for communications with the modulename.js https://github.com/sdetweil/SampleModule
  • Some Modules are showing up, but not on their right pages

    9
    0 Votes
    9 Posts
    397 Views
    R
    @sdetweil any suggestions?
  • How to obtain the current language setting?

    3
    0 Votes
    3 Posts
    534 Views
    ?
    sure ;) config is the entire config file, so you can read it with for example console.log(config)
  • No Tour de France module???

    Moved
    4
    2
    1 Votes
    4 Posts
    809 Views
    thgmirrorT
    Short update, same idea as above: [image: 1598869274369-e214c0ab-7973-4069-a71d-69e5f136739c-image.png] This is the videotext of the german broadcast ARD, looks more like MM:-) Built by this html (which I still can’t add as coding): [image: 1598869338318-51604256-6bd2-4046-a996-fb54b289d070-image.png]
  • MM development environment

    2
    0 Votes
    2 Posts
    416 Views
    S
    @ricky install winscp of bitvise ssh client on your PC, then you can double click edit files on the pi thru the file manager. in electron you can use the debugger, same as chrome and Firefox. u can edit styles, and stop on code. but not really edit code. ctrl-r will refresh mm, while refresh will do the same I the dev window. I use notepad++ on my PC to edit pi files.
  • 0 Votes
    2 Posts
    631 Views
    MrCoffeeM
    I just see, the MMM-Openhab is just linking to the sitemap and has no touch function on its own. Maybe the module kann be modified, linking to a floorplan generated in habpanel. Any opinions on that? Thx
  • MMM-GoogleAssistant

    Unsolved
    18
    0 Votes
    18 Posts
    4k Views
    ?
    @MrDondoT said in MMM-GoogleAssistant: Just a typo in MMM-GoogleAssistant.css row 30 and 32 (it was already there in previous version). thx, i will be corrected for next release edit: lol, same in 41 and 43 not really important, but not clean ;) it can wait again for next release (so go to dev too !)
  • Extension of MMM-Tools (Bugsounet)

    30
    0 Votes
    30 Posts
    7k Views
    ?
    ah … Force contener size with feature: containerSize feature : unit it’s pixel sample: containerSize: 300, and it will make module wider you can aslo to the same thing with itemSize (for the label section like, os, typ, … rekord) itemSize: for the label section (like, os, typ, … rekord) containerSize: for the result value by default it and autocalc result see the full configuration sample and tunning section for more info of each feature
  • Multiline text output inside exec block is displayed as 1 line

    4
    0 Votes
    4 Posts
    614 Views
    S
    @autonomus cool. glad u got it working
  • Mobile app (bachelor thesis)

    116
    4 Votes
    116 Posts
    179k Views
    A
    @strawberry-3-141 said in Mobile app (bachelor thesis): I sent the app to all that have sent me their emails in a private message. Here are also two screenshots that I extracted from my thesis. [image: 1535792916479-konfiguration.png] [image: 1535792936316-seitenmenue.png] Android app is still available?
  • Assistance with a notepad module

    3
    0 Votes
    3 Posts
    639 Views
    alexrmA
    Awesome thank you! This looks exactly like what my client is looking for. Apologies for not seeing the module when searching.
  • Installing MagicMirror² on your Raspberry Pi Zero W

    6
    0 Votes
    6 Posts
    3k Views
    S
    @eyebee did u reply yes to use pm2 for auto start? and if you did, do pm2 start 0 does mm start? if u did not, then run the fixuppm2 script from here https://github.com/sdetweil/MagicMirror_scripts
  • Module Refresh at Midnight

    7
    0 Votes
    7 Posts
    2k Views
    S
    @jmwyds or millis in a day is 24*60*60*1000
  • Updating Compliments using a spreadsheet

    14
    3
    1 Votes
    14 Posts
    5k Views
    S
    @emrah_asl said in Updating Compliments using a spreadsheet: fs.writeFile("modules/default/compliments/remotefile.json", compliments, function(err) { my code in node_helper.js (under compliments folder) are creating file on root normally when you start mm with npm start don’t make this node_helper.js as MM has a special use for that… make it createCompliments.js then the best thing is use the full path for the file fs.writeFile("/home/pi/MagicMirror/modules/default/compliments/remotefile.json", compliments, function(err) { how do you start MM? pm2 start 0 (and it starts on boot too…) If you used the automated install script u would have been prompted to set this up. (if u want to add it now, you can run the fixuppm2.sh script from here https://github.com/sdetweil/MagicMirror_scripts just one line to copy/paste ) now, if you use pm2, it launches MM by using the installers/mm.sh script. you can add your node modules/default/compliments/createCompliments.js to the mm.sh and all will continue as normal. The second problem , my magic mirror fires electron.js error when I try to create file. i don’t understand this. npm start fires electron.js npm reads the package,json file and looks for the command requested "scripts": { "start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js", the ‘start’ command executes that line.
  • Merging Two Forks MMM-homeassistant-sensors

    3
    0 Votes
    3 Posts
    632 Views
    S
    @sdetweil Bummer, oh well, no better way for me to learn…thanks for verifying!
  • LIRC AUTOMATION

    automation coding gpio lirc pir python sensor
    4
    0 Votes
    4 Posts
    1k Views
    S
    @sranj ok, so u receive the trigger in the node_helper, and need to launch/exec/spawn your python pgm so you need the child_process library https://nodejs.org/en/knowledge/child-processes/how-to-spawn-a-child-process/ PIR uses the same library to launch the tvservice command, or vgencmd to blank the screen
  • LIRC Automation using PIR Sensor?

    7
    0 Votes
    7 Posts
    1k Views
    S
    @sranj u will have to write code. some module or module extension. I think. I’ve said all the words that could be used in Google searches to figure it out.
  • Reloading config defaults or module

    10
    0 Votes
    10 Posts
    1k Views
    S
    @hango the code was less than i thought replace this (last line of randomCompliment) return compliments[index] || ''; with this var f = compliments[index]; if ( typeof f == 'function') f= f() return f || ""; a compliment config entry would look like this module: "compliments", config: { compliments : { 'anytime': [ function(){return "this is a test "+ moment().format('MM DD HH:MM:SS')} ] } } all of the things can be functions, or any combo down to just 1 entry as a function. the function must return a string
  • Full Screen Module, switch between modules?

    3
    0 Votes
    3 Posts
    686 Views
    S
    @sdetweil I think you just made my day.
  • Python in module

    3
    0 Votes
    3 Posts
    483 Views
    U
    @Bugsounet I tried giving the full path too, but it did not work The python script does work on its own, there are no errors in that file