MMM-EOL



  • Trying to get this module to work with my mirror. Even with the default config (copy/paste from Github) I only get a LIFE AS WE KNOW IT… message ate the specified location (bottom_right).

    Here my config entry:

    {
        module: 'MMM-EOL',                       // Best in left, right or center regions
        position: 'bottom_right',
        config: {
                      lifeForm: "Primates",
                      scrollDes: "yes",
                      dLength: 400,
                      useHeader: true, 
                      header: "EOL", 
                      maxWidth: "300px",
                      animationSpeed: 0,
                      rotateInterval: 1 * 60 * 1000,   // 1 minute
                      }
         },
    
    

    Can’t find anything in the log:

    /home/pi/.pm2/logs/mm-out.log last 15 lines:
    0|mm       | MMM-WunderGround helper started ...
    0|mm       | Connecting socket for: newsfeed
    0|mm       | Starting module: newsfeed
    0|mm       | Connecting socket for: MMM-EOL
    0|mm       | Starting node_helper for: MMM-EOL
    0|mm       | Sockets connected & modules started ...
    0|mm       | Launching application.
    0|mm       | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 300000
    0|mm       | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/xxxxx.org_2d35383537383430373xxxxx%40resource.calendar.google.com/public/basic.ics - Interval: 300000
    0|mm       | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/xxxxxxxx%40gmail.com/private-f8bbcbb32xxxxx5e42be433227f77b93/basic.ics - Interval: 300000
    0|mm       | GET_WUNDERGROUND
    0|mm       | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
    0|mm       | Create new news fetcher for url: http://feeds.bbci.co.uk/news/science_and_environment/rss.xml - Interval: 300000
    0|mm       | MMM-voice: Checking files.
    0|mm       | MMM-voice: Starting pocketsphinx.
    
    

    Appreciate any pointers to fine the issue.



  • Found the following in the console… all Chinese to me but I guess its related to the problem

    MMM-EOL.js:183 Uncaught TypeError: Cannot read property '0' of undefined
        at Class.processEOL (MMM-EOL.js:183)
        at Class.socketNotificationReceived (MMM-EOL.js:218)
        at module.js:246
        at r. (socketclient.js:25)
        at r.emit (index.js:83)
        at r.onevent (index.js:83)
        at r.MMSocket.self.socket.onevent (socketclient.js:19)
        at r.onpacket (index.js:83)
        at r. (index.js:83)
        at r.emit (index.js:83)
    processEOL @ MMM-EOL.js:183
    socketNotificationReceived @ MMM-EOL.js:218
    
    

  • Project Sponsor Module Developer

    @mash55

    Looks like an API data issue. Give me a little time and I’ll fix that for you. Sorry for the inconvenience…


  • Project Sponsor Module Developer

    @mykle1

    Ok, I’m going to look into this now. Sorry, life gets in the way.


  • Project Sponsor Module Developer

    @mash55

    As I thought, the way the data is presented by the API has changed. The module is not completely fixed but it does work. It will rotate through the images but it will not display the nice description that the module normally displays.

    I’m struggling a bit with the new data, concerning the description. The data that comes from the node helper in the command terminal shows one thing. The data that is processed in the module.js file and shown in the dev console seems to show different amounts of data. Again, concerning the description. I’m very confused by it. I welcome any assistance that anyone is willing to give.

    Meanwhile, you can do agit pull for the partial fix (no description) and I’ll continue to investigate this problem



  • Thanks for looking into this… I can confirm that it now rotates through the images (progress) but without the description. Hope you can figure out whats wrong pulling down the description as well.


  • Project Sponsor Module Developer

    @mash55

    Ok, thanks. I will continue to look at this and I’ll reach out to a friend or two if I can’t solve it on my own. I am working on a few other things so it likely will take some time. That’s why I issued the temporary fix just to get it up and running until I can devote some time to it.


  • Project Sponsor Module Developer

    @mash55

    I wanted to let you know that I looked at this for a while. Apparently, the element description that is in the API data has changed with most of the species. They used to provide lengthy, interesting information about the species you were viewing. Now those descriptions contain limited information, such as “bear eating acorns” which tells you nothing about the bear itself. It’s hit or miss, too. Some species have better descriptions than others. Some have none. If you would like to see and decide for yourself you can add this to your custom.css file

    .MMM-EOL .description {
      color: #FFFFFF;               /* Color the description text. Default is white. */
    /*  text-align: center;   */        /* Align the description text. (left, center, right) */
    /*    display: none; */         /* Uncomment if you don't want description text */
    }
    

    If you are not pleased with the result you can uncomment display: none, to once again hide the description. There’s not much else I can do at this time. My apologies.



  • @Mykle1 Thanks for looking into this… I will check and see how useful the descriptions will be.


  • Project Sponsor Module Developer

    @mash55

    No problem. I’m very unhappy with the changes they made to the API data, especially in regards to the descriptive text. Before the changes, the text was extensive and very informative. Now, not so much.