MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

    Scheduled Pinned Locked Moved Entertainment
    160 Posts 6 Posters 193.6k Views 6 Watching
    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.
    • evroomE Offline
      evroom
      last edited by

      Okay, rebooted in order to start fresh.

      Now 1 stream.
      Looks like one actual omxplayer active:

      pi@MagicPi:~/MagicMirror/modules $ ps -eaf | grep omxplayer | grep -v grep
      pi       29320 29185  0 18:39 ?        00:00:00 /bin/sh -c omxplayer  --win 0,0,480,320  -o both http://192.168.178.28:8001/1:0:16:177A:C82:3:EB0000:0:0:0:
      pi       29321 29320  0 18:39 ?        00:00:00 /bin/bash /usr/bin/omxplayer --win 0,0,480,320 -o both http://192.168.178.28:8001/1:0:16:177A:C82:3:EB0000:0:0:0:
      pi       29344 29321 10 18:39 ?        00:00:01 /usr/bin/omxplayer.bin --win 0,0,480,320 -o both http://192.168.178.28:8001/1:0:16:177A:C82:3:EB0000:0:0:0:
      

      InfoBarTunerState also states there is one stream.

      The will do for today.
      Will do some more testing tomorrow.

      Thanks a lot AxLed for the support so far !!

      MagicMirror version: 2.33.0
      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      Test environment:
      MagicMirror version: v2.33.0
      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      1 Reply Last reply Reply Quote 0
      • A Offline
        AxLed Module Developer
        last edited by

        @evroom
        Good to hear you had success and thanks for your challenge with more than one bouquet 😂, helped debugging the module.

        AxLED

        1 Reply Last reply Reply Quote 0
        • evroomE Offline
          evroom
          last edited by

          @AxLed
          I have opened 4 feature requests on GitHub.

          To be honest, my MM is hanging a meter or so away from the TV, so I most probably will not make use of the module.
          Navigating through the services list and starting & stopping a stream is not that comfortable
          Although it might be practical to see on my MM what is currently playing and I might use it solely as a program guide.

          Will be available though for some testing.

          MagicMirror version: 2.33.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.33.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          1 Reply Last reply Reply Quote 0
          • A Offline
            AxLed Module Developer
            last edited by

            Hi, if the to monitors are close together you can still view 2 different shows :-) .
            I checked your 4 feature requests and added 2 of them in the module.
            For the other two i can not promise, if they will be implemented.

            AxLED

            1 Reply Last reply Reply Quote 0
            • A Offline
              AxLed Module Developer
              last edited by

              @evroom
              In your feature request, you wanted to select a bouquet (if there is more than one):

              Okay.
              Let’s say I have the bouquet “MagicMirror (TV)”, could there be an option to use this one, instead of the default “Favourites (TV)” ?
              I assume “Favourites (TV)” is the default.

              Please check the dev branch of my module.

              1. Rename your MMM-Dreambox folder to _MMM-Dreambox (for example)
              2. do a git clone --branch dev https://github.com/Ax-LED/MMM-Dreambox.git in your modules folder
              3. add new parameters to your config.js, as descriped in readme. (see apibouquet and listmax).

              Regards

              AxLED

              1 Reply Last reply Reply Quote 0
              • evroomE Offline
                evroom
                last edited by

                Hi @AxLed ,

                Busy trying your updated module.
                I am struggling a bit with it.

                1/ I suppose I set
                apibouquet: 1,
                Is that correct ?
                What does it do ?
                When just enabling, then why not true or false to make it more clear?
                Or do I set it to 1 for bouquet 1 and 2 for 2, etc?
                Please explain.

                2/ The parameter
                listmax: 10,
                is working, but after play or stop, it jumps to the bouquet name.

                3/ On my install, when I do DB-PLAY, it starts the stream twice.
                So, I have 2 omxplayer process-sets and it takes up 2 streams on my Dreambox.
                EDIT: now streaming Das Erste HD. No other process-sets present.
                Perhaps decoding takes to long and omxplayer is respawning.

                4/ Even though I have employer processes, I do not see anything on my screen.
                EDIT: now streaming Das Erste HD.
                I think I have a local issue, as I cannot stream decoded content anymore.
                My MPG2 license is still valid.
                Perhaps a performance issue.

                MagicMirror version: 2.33.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.33.0
                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                1 Reply Last reply Reply Quote 0
                • evroomE Offline
                  evroom
                  last edited by

                  Example for observation/issue 3:

                  DB-PLAY:

                  pi@MagicPi:~/MagicMirror/modules $ ps -eaf | grep omxplayer | grep -v grep
                  pi        4190  4061  0 19:31 ?        00:00:00 /bin/sh -c omxplayer  --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  pi        4191  4190  0 19:31 ?        00:00:00 /bin/bash /usr/bin/omxplayer --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  pi        4214  4191  7 19:31 ?        00:00:00 /usr/bin/omxplayer.bin --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  pi        4222  4061  0 19:31 ?        00:00:00 /bin/sh -c omxplayer  --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  pi        4223  4222  0 19:31 ?        00:00:00 /bin/bash /usr/bin/omxplayer --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  pi        4246  4223 13 19:31 ?        00:00:00 /usr/bin/omxplayer.bin --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  

                  After a few seconds and when the stream is visible on the screen:

                  pi@MagicPi:~/MagicMirror/modules $ ps -eaf | grep omxplayer | grep -v grep
                  pi        4190  4061  0 19:31 ?        00:00:00 /bin/sh -c omxplayer  --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  pi        4191  4190  0 19:31 ?        00:00:00 /bin/bash /usr/bin/omxplayer --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  pi        4214  4191 10 19:31 ?        00:00:02 /usr/bin/omxplayer.bin --win 0,625,590,957 -o both http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
                  

                  MagicMirror version: 2.33.0
                  Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

                  Test environment:
                  MagicMirror version: v2.33.0
                  Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    AxLed Module Developer
                    last edited by

                    @evroom
                    here are some questions:
                    to 1: apibouquet expects a number (integer) and in java it starts with 0. If i use the xml-sample file of /web/getallservices you send me its in your case as follows:
                    0: Favourites (TV)
                    1: Nederland (TV)
                    2: Duitsland (TV)

                    to 2: i cant reproduce this behavior

                    to 3 & 4: try disabling some other modules, to find out if there is a intolerance beetween modules.

                    AxLED

                    Cr4z33C 1 Reply Last reply Reply Quote 0
                    • evroomE Offline
                      evroom
                      last edited by

                      to 1: thanks. Very clear.

                      to 2: does not happen always, or too fast to detect (I did ps manually).

                      to 3: did this, but does not help. I have think I have an issue that is related to my install only.

                      Thanks for the changes. It makes it more usable.

                      MagicMirror version: 2.33.0
                      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      Test environment:
                      MagicMirror version: v2.33.0
                      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      1 Reply Last reply Reply Quote 0
                      • Cr4z33C Offline
                        Cr4z33 @AxLed
                        last edited by

                        @axled I want to give this module another try for some testing, but I still didn’t understand how am I supposed to stream a Dreambox channel in MM? :hushed_face:

                        1 Reply Last reply Reply Quote 0
                        • Cr4z33C Offline
                          Cr4z33 @AxLed
                          last edited by

                          @axled said in [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer:

                          @Cr4z33
                          I dont know if it makes sense, to use a favorite list of services/stations/channels that wont fit on the screen of MM, as the list is to long.

                          Start streaming can be done by selecting one service/station/channel (by using yourmmip:8080/remote?action=NOTIFICATION&notification=DB-SERVICE-NEXT for example) and than start streaming by (yourmmip:8080/remote?action=NOTIFICATION&notification=DB-PLAY).

                          Do you have MMM-Remote-Control installed?
                          Se my previous answer to evroom.

                          AxLED

                          WHERE do I have to enter these commands?

                          In a RPI terminal window?
                          In my ie. Windows 10 Internet browser address box?

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            AxLed Module Developer
                            last edited by

                            @Cr4z33
                            As you have MMM-Remote-Control installed you can test MMM-Dreambox with MMM-Remote-Control first, to make sure it works at all. (Requirement: Your mirror is reachable by browser in the same network). Open browser and enter (without the spaces around &):

                            • http://yourmmip:8080/remote?action=NOTIFICATION & notification=DB-SERVICE-NEXT (for selecting next service)

                            • http://yourmmip:8080/remote?action=NOTIFICATION & notification=DB-SERVICE-PREV (for selecting prev.service)

                            • http://yourmmip:8080/remote?action=NOTIFICATION & notification=DB-PLAY (for start streaming)

                            • http://yourmmip:8080/remote?action=NOTIFICATION & notification=DB-STOP (for stop streaming)

                            Hint: HD Services need MPG License so maybe start with SD services.

                            You can also try the dev branch, as this is the newer one with more functions.

                            AxLED

                            Cr4z33C 1 Reply Last reply Reply Quote 0
                            • Cr4z33C Offline
                              Cr4z33 @AxLed
                              last edited by Cr4z33

                              @axled thanks got the remote module working, but then when I send the commands (succesfully confirmed by the web page) I see no streaming going on in MM.

                              By the way I choosed to install the dev branch of your module.

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                AxLed Module Developer
                                last edited by

                                @Cr4z33
                                Can you show me the MMM-Dreambox Part of your config and some logs?

                                Playing does not work, is selecting DB-SERVICE-NEXT (PREV) working?

                                AxLED

                                Cr4z33C 1 Reply Last reply Reply Quote 0
                                • Cr4z33C Offline
                                  Cr4z33 @AxLed
                                  last edited by

                                  @axled this is the config part:

                                  		{
                                  			module: 'MMM-Dreambox',
                                  			header: 'Vu+ Duo²',
                                  			position: 'bottom_left',
                                  			disabled: false,
                                  			config: {
                                  				apiBase: 'http://*.*.*.*:****',
                                  				omxargs: ' --win 320,180,1600,900  -o both ',
                                  				refreshInterval: 1000 * 30, //refresh every 30 seconds
                                  				apiabout: '/web/about',
                                  				apiservices: '/web/getallservices',
                                  				apiepgnow: '/web/epgnow?bRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet',
                                  				apizap: '/web/zap?sRef=',
                                  				apiTimerlist: '/web/timerlist',
                                  				apiServicelistplayable: '/web/servicelistplayable?sRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet'
                                  				}
                                  		},
                                  

                                  I wanted then to paste here the logs and what was happening when sendings commands, but all I get now is

                                  status	"error"
                                  reason	"unknown_command"
                                  info	"original input: {\"action\":\"NOTIFICATION \",\" notification\":\"DB-PLAY\"}"
                                  

                                  I feel like I am missing something? :smiling_face_with_open_mouth_cold_sweat:

                                  This is btw the MMM-Remote-Control config part:

                                  		{
                                  			module: 'MMM-Remote-Control',
                                  			// uncomment the following line to show the URL of the remote control on the mirror
                                  			position: 'bottom_left'
                                  			// you can hide this module afterwards from the remote control itself
                                  		},
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    AxLed Module Developer
                                    last edited by

                                    @Cr4z33

                                    it is not easy to give support, with this less informations.
                                    As you send me .xml files some days ago, i saw some minor errors in your config.js

                                    1. apibouquet and listmax is missing, so module use defaults (apibouquet: 0, listmax: 15)
                                    2. apiepgnow and apiServicelistplayable are wrong, to match to your receiver/xml file you send me the should look as follows:
                                    • apiepgnow: ‘/web/epgnow?bRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.TerrestrialTv.tv%22%20ORDER%20BY%20bouquet’,
                                    • apiServicelistplayable: ‘/web/servicelistplayable?sRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.TerrestrialTv.tv%22%20ORDER%20BY%20bouquet’,

                                    Can you please also answer my question:
                                    Playing does not work, is selecting DB-SERVICE-NEXT (PREV) working?

                                    To help you further i need some screenshots of the module on your mirror and some logs (pm2 or from the browser by using F12).

                                    AxLED

                                    Cr4z33C 1 Reply Last reply Reply Quote 0
                                    • Cr4z33C Offline
                                      Cr4z33 @AxLed
                                      last edited by

                                      @axled sorry for the late reply. :smiling_face_with_open_mouth_cold_sweat:

                                      I’ve installed your module from scratch and now every MMM-Remote-Control command (but streaming) is working.

                                      Honestly I can’t understand what is wrong because before going to use my decoder with your module all Dreambox-like applications worked like a charm.

                                      What if it depends on using a different WebIf port (I am not using the default 80/8080 port)?
                                      And even if why not?
                                      So far every Android Dreambox app (ie. DreamDroid) or Windows channel editor program for Dreambox that I’ve used worked perfectly.

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        AxLed Module Developer
                                        last edited by

                                        Some ideas:
                                        Start streaming takes up to 15 seconds, did you wait long enough?
                                        Are you streaming SD or HD channels? HD needs mpg license.
                                        Is the play symbol (triangle) shown after sending the command DB-PLAY?

                                        AxLED

                                        1 Reply Last reply Reply Quote 0
                                        • Cr4z33C Offline
                                          Cr4z33 @evroom
                                          last edited by

                                          @evroom can you please let me chat with you?

                                          Need to ask you something about this module. :)

                                          evroomE 1 Reply Last reply Reply Quote 0
                                          • evroomE Offline
                                            evroom @Cr4z33
                                            last edited by

                                            @cr4z33

                                            @evroom can you please let me chat with you?

                                            Need to ask you something about this module. :)

                                            Yes, you can chat with me.

                                            MagicMirror version: 2.33.0
                                            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                            Raspbian GNU/Linux 12 (bookworm)

                                            Test environment:
                                            MagicMirror version: v2.33.0
                                            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                            Raspbian GNU/Linux 12 (bookworm)

                                            Cr4z33C 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 3 / 8
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy