MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Problem with MMM-MyGarbage module

    Troubleshooting
    3
    8
    289
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rkvant last edited by

      Hello. I only get “loading” on my MagicMirror. When I start up I get this error. Im a beginner and have no clue what’s wrong. Hope someone can help me:)

      [2020-11-25 15:42:57.385] [ERROR] CsvError: Invalid Record Length: header length is 4, got 1 on line 58
      at Parser.__onRow (/home/pi/MagicMirror/modules/MMM-MyGarbage/node_modules/csv-parse/lib/index.js:636:15)
      at Parser.__parse (/home/pi/MagicMirror/modules/MMM-MyGarbage/node_modules/csv-parse/lib/index.js:527:40)
      at Parser._flush (/home/pi/MagicMirror/modules/MMM-MyGarbage/node_modules/csv-parse/lib/index.js:352:22)
      at Parser.prefinish (_stream_transform.js:140:10)
      at Parser.emit (events.js:200:13)
      at prefinish (_stream_writable.js:633:14)
      at finishMaybe (_stream_writable.js:641:5)
      at endWritable (_stream_writable.js:661:3)
      at Parser.Writable.end (_stream_writable.js:592:5)
      at parse (/home/pi/MagicMirror/modules/MMM-MyGarbage/node_modules/csv-parse/lib/index.js:946:12) {
      code: ‘CSV_INVALID_RECORD_LENGTH_DONT_MATCH_COLUMNS’,
      column: ‘#FFFF00’,
      empty_lines: 0,
      header: false,
      index: 1,
      invalid_field_length: 0,
      quoting: false,
      lines: 58,
      records: 56,
      record: [ ‘’ ]
      }

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @rkvant last edited by

        @rkvant the data received is not good. So it sounds like you rotation might be wrong

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • R
          rkvant last edited by

          what do I need to do? 🙂

          S 2 Replies Last reply Reply Quote 0
          • S
            sdetweil @rkvant last edited by

            @rkvant i don’t know, not my module… read the module instructions carefully

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • S
              sdetweil @rkvant last edited by

              @rkvant doc says to create a csv file. In very specific format

              Sam

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • R
                rkvant last edited by

                AHA. Thanks. I will try to fix the csv file 🙂

                1 Reply Last reply Reply Quote 0
                • R
                  rkvant last edited by

                  OK, I think the csv file I ok, but a new error…someone who knows this problem or where I must start? 🙂 hehe

                  [2020-11-26 18:28:19.732] [ERROR] Whoops! There was an uncaught exception…
                  [2020-11-26 18:28:19.733] [ERROR] TypeError: Cannot read property ‘isSameOrAfter’ of undefined
                  at /home/pi/MagicMirror/modules/MMM-MyGarbage/node_helper.js:63:24
                  at Array.filter ()
                  at Class.getNextPickups (/home/pi/MagicMirror/modules/MMM-MyGarbage/node_helper.js:61:42)
                  at /home/pi/MagicMirror/modules/MMM-MyGarbage/node_helper.js:34:18
                  at Parser. (/home/pi/MagicMirror/modules/MMM-MyGarbage/node_modules/csv-parse/lib/index.js:941:7)
                  at Parser.emit (events.js:200:13)
                  at endReadableNT (_stream_readable.js:1154:12)
                  at processTicksAndRejections (internal/process/task_queues.js:84:9)

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    raymondjspigot @rkvant last edited by

                    @rkvant maybe post the contents of the csv you’ve put together? Possibly if there’s just a typo like a comma out of place the module will fail to load it, might be helpful to see the data you’re feeding in : )

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy