mrdis / MMM-volumio-playing

MagicMirror module that shows what a volumio device is playing
MIT License
4 stars 1 forks source link

Module showing nothing #2

Open tulpenwase opened 1 year ago

tulpenwase commented 1 year ago

Does this module still work? I only see a music note in the mirror and nothing of the rest. IP address is correctly assigned and also entered under ipWhitelist.

Maybe there is a special trick how to connect it to my Volumio instance?

jbat66 commented 8 months ago

I have that same problem. Maybe volumio updated update and this module didn't get updated??

mrdis commented 8 months ago

Sorry but I no longer have a Volumio device to use for testing. Anyway, I checked the volumio API docs at https://developers.volumio.com/api/websocket-api and it looks like it should work ok with the current implementation. Can you paste some console logs to see if there are any errors?

jbat66 commented 8 months ago

image

Thank you for responding!!! I did look at your code, and the volmino api a little bit today, but could not see anything. I didn't spend a whole lot of time on it, had to work. lol I have playing with the volmino api for a month or so, so I know my volmino works with api calls.

I tried http://fqdn.url, I tried just the fqdn.url, and I tried just the IP and http://IP... Not sure the format your module is looking for. I'm assuming http://fqdn.url

notes:

  1. I'm using this in server only mode, and connecting to it via web
  2. I'm using magicmirror2 in a docker container (all other modules work just fine, so I don't think that is the problem)
  3. No logs on the console that are meaningful
  4. No logs on container boot up that are meaningful.
  5. No custom.css
  6. minimal config.js for testing. See below. I did include an screen shot on the icon that shows up.

modules: [

    {
        module: "alert",
    },

    {
        module: "updatenotification",
        position: "top_bar"
    },

    {
        // I never did get this working Sad Panda
        disabled: false,
        module: 'MMM-volumio-playing',
        position: 'top_center',
        config: {
            //url: 'http://volumio-sun.rendezvous'
            url: '10.0.0.100'
            }
    },

    {
        disabled: false,
        module: "clock",
        position: "top_left",
        config: {
            displayType: "digital",
            clockBold: false,
            lat: "41.273381",
            lon: "-104.23405",
            showSunTimes: true
            }
    },

    {
        disabled: false,
        module: "compliments",
        position: "bottom_bar" // default "lower_third"
    },

]

};

mrdis commented 8 months ago

Not sure about this, but can you try setting 'http://10.0.0.100:3000' as url (or whatever your volumio IP is)?

jbat66 commented 8 months ago

Same result, still just has the music icon

jbat66 commented 8 months ago

I made a magicmirror on a pi, no docker, brand new install. I got it all working, and then changed the config.js to only have MMM-volumio-playing. Here are the errors reported.


pi@magicmirror:~/MagicMirror $ npm run start

magicmirror@2.25.0 start DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[03.11.2023 16:43.37.684] [LOG] Starting MagicMirror: v2.25.0 [03.11.2023 16:43.37.690] [LOG] Loading config ... [03.11.2023 16:43.37.693] [DEBUG] config template file not exists, no envsubst [03.11.2023 16:43.37.697] [LOG] Loading module helpers ... [03.11.2023 16:43.37.699] [LOG] No helper found for module: MMM-volumio-playing. [03.11.2023 16:43.37.700] [LOG] All module helpers loaded. [03.11.2023 16:43.37.708] [LOG] Starting server on port 8080 ... [03.11.2023 16:43.37.717] [WARN] You're using a full whitelist configuration to allow for all IPs [03.11.2023 16:43.37.986] [LOG] Server started ... [03.11.2023 16:43.37.987] [LOG] Sockets connected & modules started ... [03.11.2023 16:43.38.031] [LOG] Launching application. [4322:1103/164338.929247:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.930094:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.930755:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.931346:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.931958:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.932491:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.933088:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.935192:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.936032:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.936599:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.937102:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.937591:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.938132:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164338.938889:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [4322:1103/164342.986184:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

jbat66 commented 8 months ago

My modules part of config.js

    modules: [
            {
                    // I never did get this working Sad Panda
                    disabled: false,
                    module: 'MMM-volumio-playing',
                    position: 'top_center',
                    config: {
                            //url: 'http://volumio-sun.rendezvous'
                            url: 'http://10.0.0.100:3000/'
                            //url: 'http://10.0.0.100:3000/playback/'
                            }
            }

    ]
tulpenwase commented 8 months ago

Hello folks,

I have given up trying to get the module to work. But I can still display my Volumio in MM, even with a cover.

Bildschirmfoto 2023-11-06 um 20 55 11

  1. install and activate the Now-Playing plugin in Volumio https://community.volumio.com/t/plugin-now-playing/50318

  2. display the Now-Playing website in your MM. You can find the URL in the plugin configuration. I have used the MMM-helloworld module for this, but you can also use any module for embedding ULRs.

  3. configure the plugin according to your wishes.

I wish you much success.

jbat66 commented 8 months ago

2. MMM-helloworld

That is interesting. How did you configure MMM-Helloworld. All I see is the ability to add a text line.

image

tulpenwase commented 8 months ago

It's actually quite simple. Look here: https://forum.magicmirror.builders/topic/8528/iframe-setting you must insert an iframe.

In my case, the module, in config.js looks like this: ` {

        module: "helloworld",
        position: "top_right",
         header: "Max Power",  
        config: {
        text: "<iframe src='http://YOUR_IP:4004' style='height: 550px; width: 250px;' frameBorder='0' scrolling='no''></iframe>",
        },
    },`

best regards

jbat66 commented 8 months ago

Perfect, I didn't know you could use iframes with helloworld! That is so cool, and I'm running Nowplaying as well, so works with NowPlaying and the normal Volumio interface!! Thank you!!