MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

Problem with MMM-MyGarbage module



  • 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: [ ‘’ ]
    }



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



  • what do I need to do? 🙂



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



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



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



  • 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)



  • @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 : )


Log in to reply