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

    Topics

    • O

      Display Lichess Top-Rated Rapid Game

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Requests
      6
      0 Votes
      6 Posts
      1k Views
      thgmirrorT
      @olesoncrypto Hi, create a local html-file at the modules folder with the following content as an example, please add your webside instead of the google-chart: [image: 1636212038159-715e2702-83a2-463b-b37e-1dc7ade99081-image.png] Name it as you like (mychess.html for example) and add the path to MMM-SmartWebDisplay instead of the URL you entered before: url: [“/modules/mychess.html”], Play around with the red-marked values…the exact data depends on the browser in use. This way is much easier than to adjust it directly in MMM-SmartWebDisplay. Greetings Thomas
    • O

      I Broke the default Calendar Module

      Watching Ignoring Scheduled Pinned Locked Moved Solved Troubleshooting
      2
      0 Votes
      2 Posts
      1k Views
      S
      @olesoncrypto 1st… NEVER edit the source code always use config.js if u HAVE edited the source code and want it back then , in the MM folder do git checkout modules/default/calendar/calendar.js to restore the file from the source code repository this should make the default work again (if u restored that section of the config.js from config.js.sample) so, now we need to understand why 4 cals don’t work., 1st test take each URL from each cal entry, one by one in a browser ON the MM system and see if the url downloads an ics file … this is required for the cal module to work if not, fix that then try with your config.js, which looks ok. if not working, add ,"DEBUG" to the end of logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging and start MM like this (make sure to stop any previous running mm, if pm2, then pm2 stop all npm start >somefile.txt wait til u think cal entries should have shown, ctrl-c to stop mm in the terminal window where i started, (ctrl-m to minimize mm if doing ON the pi, I STRONLGY recommend learning to use ssh from other machine to do all maint, so u don’t have these problems ) and then edit somefile.txt to see what is going on
    • O

      No JavaScript experience - Config.js not working

      Watching Ignoring Scheduled Pinned Locked Moved Bug Hunt
      16
      0 Votes
      16 Posts
      4k Views
      S
      @olesoncrypto yes, that will get you general rules for config.js the thing to the left of : does not need quotes for the thing to the right of : if it is a number (9, -1.234) or true/false , no quotes if it contains a letter 12ff234, bob, then needs quotes, single or double doesn't matter as long as they are the same start and end every { needs a matching } every [ needs a matching ] [] is a list [ 1,2,3,4] or [ first,second,third] {} is a structure/object with name/value pairs { x: value, y: othervalue } u can write lists and objects all on one line (what a pain) or across multiple lines... (much more readable) BUT, you STILL need the commas between items in either if u get an error, unexpected token, 99% of the time, u forgot a trailing comma on the line ABOVE the one reported (error on line 45, look at line 44) a good debug process is to join the list or object to a single line in your editor, and get the , between the items, then split it again after each comma... so u have a separate item on each line.
    • 1 / 1