MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. bwente
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    B
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 2
    • Posts 9
    • Groups 0

    Topics

    • B

      ReferenceError: primordials is not defined

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Troubleshooting
      6
      0 Votes
      6 Posts
      1k Views
      S
      @BKeyport try the upgrade script again, with force instead of apply it will remove and and add the right version of node the right way, including on buster please advise your results
    • B

      Updating Compliments using a spreadsheet

      Watching Ignoring Scheduled Pinned Locked Moved Development
      14
      3
      1 Votes
      14 Posts
      4k 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.
    • 1 / 1