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 194.1k 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.
    • A Offline
      AxLed Module Developer @Cr4z33
      last edited by

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

      @axled I put the IP and WebIf port of my Vu+ Duo², but then… how do I stream something?
      I thought I was supposed to enter some M3U channel IPs or?

      @Cr4z33
      In my case (Dreambox DM800se) i just entered the IP-Adress without port. You can crosscheck this with your browser: are you able to reach the webfrontend of your receiver with the IP-Adress you entered?

      The module works as follows (very short description): It reads the xml file of .../web/getallservices, build a list of the services and stations. The command DB-PLAY passes the selectede2servicereference to omxplayer.

      AxLED

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

        1. @evroom
        Thanks for your logs, i fixed the errorhandling and that typo.
        Please do a git pull now you should get detailed errors shown on the module in MM.

        2. How the module works (in the background).
        2.1 apiabout (About):
        Samplelink: http://dm800se.fritz.box/web/about
        I am reading two values, the model and what service is running (can be a station or playing a recorded movie).
        0_1546019571247_about.gif

        2.2 apiservices (Services):
        Samplelink: http://dm800se.fritz.box/web/getallservices
        I am reading all services (stations) of the receiver.
        Important: The part 1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet(your string might/will look different) is also needed for the parameters in config.js (apiServicelistplayable and apiepgnow).
        Sample:
        apiServicelistplayable: http://dm800se.fritz.box/web/servicelistplayable?sRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
        apiepgnow: http://dm800se.fritz.box/web/epgnow?bRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
        0_1546019759781_getallservices.gif

        3. apiTimerlist (Timerlist):
        Samplelink: http://dm800se.fritz.box/web/timerlist
        I am reading if any timers are active, so i can show it in the module.
        0_1546020081812_timerlist.gif

        4. apiServicelistplayable (Servicelistplayable):
        Samplelink: http://dm800se.fritz.box/web/servicelistplayable?sRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
        I am reading which stations are on the same bouquet, this is important, if any active timers are running. As timers have priority. All stations with the value false will be shown in a different css-style (gray and italic).
        Important: Check the following part with the one you get from http://dm800se.fritz.box/web/getallservices 1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet(your string might/will look different).
        0_1546020292241_serviceplayable.gif
        5. apiepgnow (Epgnow):
        Samplelink: http://dm800se.fritz.box/web/epgnow?bRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
        I am reading the epg of my favorites (same source as servicelist), so i can write the beginning time and tite of the actual running program.
        Important: Check the following part with the one you get from http://dm800se.fritz.box/web/getallservices 1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet(your string might/will look different).
        0_1546019734449_epgnow.gif

        Maybe this helps to find some configuration problems for the right link parameters.

        Regards

        AxLED

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

          @AxLed
          So I guess we need to get a list displayed first, before sending the DB-PLAY command, right ?
          I have set “apiBase: ‘http://192.168.178.28’,” in the config, but it only shows the channel that is currently running on my box.
          No error in pm2 logs, just the “Starting node helper for: MMM-Dreambox”.
          The URL http://192.168.178.28/web/getallservices gives a list in XML style.

          (the code button </> does not work here)

          This XML file does not appear to have any style information associated with it. The document tree is shown below.



          1:7:1:0:0:0:0:0:0:0:FROM BOUQUET “userbouquet.favourites.tv” ORDER BY bouquet
          etc, etc, etc.

          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
            to your 1st question: yes we need a list displayed and selected one entry first, otherwise DB-PLAY wont work.

            Tipp: To insert xml code in the forum, you have to replace < by (& # 6 0 ; ) without spaces and > by (& # 6 2 ; ) without spaces.

            to your 2nd question: that http://192.168.178.28/web/getallservices is returning an xml file (if viewed in browser) is good.

            1. Question: Did you make a git pull, as i had some error in my errorhandling. If not, do git pull in the MMM-Dreambox folder first.

            2. Question: What is the xml showing under

            &#60;e2timerlist&#62;
             &#60;e2timer&#62;
              &#60;e2servicereference&#62;&#60;/e2servicereference&#62;
            
            1. Question: Same xml file, are there entries following (like my screenshot above?):
            &#60;e2servicelist&#62;
             &#60;e2service&#62;
            

            AxLED

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

              @AxLed

              1. Just did. No (visible) changes.

              2. All my timed programs. Exactly like in your example.

              3.All my bouquets with the services in it. Like in your example.

              We have simular Dreamboxes, so simular output.
              I have 3 bouquets (Favourites (TV), Nederland (TV), Duitsland (TV))
              I use WebControl Dreambox (via the DM IP) to control the box.

              Unfortunate your tip with (& # 6 0 ; ) and (& # 6 2 ; ) is not working for me; it deletes everything between < and >:

              (<)


              (>)

              That is a major flaw of this forum, besides not really being iPad friendly.

              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 AxLed

                Is the module now working or do you still have issues?
                AxLED

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

                  Same issues.
                  Do not see any services list, so can not play one.
                  All apiXXX settings in the config file work when pasted in the browser.
                  XML output is simular like yours.
                  I only left apizap empty.

                  Perhaps you could output some ‘landmarks’ in the MM log, like:
                  About - okay / not okay
                  Services - okay / not okay
                  EPGNow - okay / not okay
                  Zap - okay / not okay
                  Servicelistplayable - okay / not okay
                  omxplayer started

                  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

                    1. You can try another git pull of the master branch and test, as I found some more errors in my code (if not all of the 5 requests are successful).
                    2. You can try to delete the MMM-Dreambox folder an do git clone --branch debug https://github.com/Ax-LED/MMM-Dreambox.git.
                      I made this debug branch for you, with a different node_helper.js, which no shows some ‘landmarks’ in PM2 logs.

                    AxLED

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

                      @axled maybe I am misunderstanding everything, but I need to understand whether it’s just a Dreambox information module or whether I can actually stream into an omxplayer iframe?

                      If that is what it can do then all I see right now is some information (and by the way in German) about the current channel playing on the VU+:

                                                       DREAMBOX
                      

                      Model Duo² - dezeit läuft: (Rai 3 HD)

                      Nothing else.
                      No streaming stuff going on. :smiling_face_with_open_mouth_smiling_eyes:

                      Here’s my module config and yes I use a different port than 80 or 8080.

                      		{
                      			module: 'MMM-Dreambox',
                      			header: 'Dreambox',
                      			position: 'bottom_right',
                      			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'
                      				}
                      		},
                      
                      
                      A 1 Reply Last reply Reply Quote 0
                      • evroomE Offline
                        evroom @AxLed
                        last edited by

                        @AxLed

                        1. Same result. No services list.

                        2. Same result. No services list. But …

                        0|mm  | Starting node helper for: MMM-Dreambox
                        0|mm  | MMM-Dreambox: 1. Request EPGNOW succeeded.
                        0|mm  | MMM-Dreambox: 2. Request ABOUT succeeded.
                        0|mm  | MMM-Dreambox: 3. Request Services succeeded.
                        0|mm  | MMM-Dreambox: 4. Request Timerlist succeeded.
                        0|mm  | MMM-Dreambox: 5. Request Servicelistplayable succeeded.
                        0|mm  | MMM-Dreambox: Notification FETCH_DATAreceived. New datas from dreambox should be pulled.
                        0|mm  | MMM-Dreambox: 2. Request ABOUT succeeded.
                        0|mm  | MMM-Dreambox: 5. Request Servicelistplayable succeeded.
                        0|mm  | MMM-Dreambox: 3. Request Services succeeded.
                        0|mm  | MMM-Dreambox: 1. Request EPGNOW succeeded.
                        0|mm  | MMM-Dreambox: 4. Request Timerlist succeeded.
                        

                        So, we are getting somewhere :-)
                        In the debug branch, could you perhaps send the playable services list to the MM log ?

                        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)

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

                          I see in your code that the HTML requests are successful (status code 200), so next step is to determine if the parsing was successful.
                          I know how json parsing works using Perl, but in MM context I have no clue, so I am not much of help there.

                          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 @Cr4z33
                            last edited by AxLed

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

                            maybe I am misunderstanding everything, but I need to understand whether it’s just a Dreambox information module or whether I can actually stream into an omxplayer iframe?

                            @Cr4z33
                            Its an entertainment module, means it show informations of your receiver and you can stream the channels with the omxplayer as overlay on your monitor (monitor must be local connected to pi). The displayed informations are needed to control the dreambox/receiver.

                            Your config looks ok.

                            Can you please answer following questions:

                            1. do you have timers in your receiver (can be checked by http://IPofyourReceiver/web/timerlist)?
                            2. what if you open MM in a browser in the same network and use F12. Are there any errors?

                            AxLED

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

                              @evroom
                              I think we are getting closer to a working module.
                              The 5 requests are successful, so config should be ok.

                              Can you please answer following questions:

                              1. do you have timers in your receiver (can be checked by http://IPofyourReceiver/web/timerlist)?
                              2. what if you open MM in a browser in the same network and use F12. Are there any errors?
                              3. Can you send me following 5 xml files: …/web/about, …/web/getallservices, …/web/timerlist, …/web/servicelistplayable, … /web/epgnow

                              After this i can modifiy the node_helper.js of development branch for further debugging.

                              AxLED

                              evroomE Cr4z33C 2 Replies Last reply Reply Quote 0
                              • evroomE Offline
                                evroom @AxLed
                                last edited by

                                @axled

                                1. Yes
                                2. Perhaps stupid, but do not how to do that. Cannot open MM using the MM IP.
                                3. Yes. Probably by pm.

                                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)

                                evroomE A Cr4z33C 3 Replies Last reply Reply Quote 0
                                • evroomE Offline
                                  evroom @evroom
                                  last edited by

                                  Can only upload pictures.
                                  Do not see a pm option.
                                  Hate it when you need to solve problems before you can solve problems.

                                  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 @evroom
                                    last edited by

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

                                    Perhaps stupid, but do not how to do that. Cannot open MM using the MM IP.

                                    My MM config.js for IP looks like

                                    config = {
                                    	address: "192.168.56.101", 
                                    	port: 8080,
                                    	ipWhitelist: [], // Set [] to allow all IP addresses
                                    

                                    So can can open a browser in the same network and enter http://192.168.56.101:8080 to open MM in my browser. F12 shows a console where you can filter for errors.

                                    Just send me the files by email ak10zeichen-xy@yahoo.de

                                    AxLED

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

                                      @AxLed

                                      1. No timers are set right now.

                                      2. Here is what it came out on the console running MM into Dev mode:

                                      MMM-Dreambox.js:228 Uncaught TypeError: Cannot read property '0' of undefined
                                          at Class.socketNotificationReceived (MMM-Dreambox.js:228)
                                          at module.js:246
                                          at r.<anonymous> (socketclient.js:25)
                                          at r.emit (index.js:133)
                                          at r.onevent (socket.js:270)
                                          at r.MMSocket.self.socket.onevent (socketclient.js:19)
                                          at r.onpacket (socket.js:228)
                                          at r.<anonymous> (index.js:21)
                                          at r.emit (index.js:133)
                                          at r.ondecoded (manager.js:345)
                                      socketNotificationReceived @ MMM-Dreambox.js:228
                                      (anonymous) @ module.js:246
                                      (anonymous) @ socketclient.js:25
                                      r.emit @ index.js:133
                                      r.onevent @ socket.js:270
                                      MMSocket.self.socket.onevent @ socketclient.js:19
                                      r.onpacket @ socket.js:228
                                      (anonymous) @ index.js:21
                                      r.emit @ index.js:133
                                      r.ondecoded @ manager.js:345
                                      (anonymous) @ index.js:21
                                      r.emit @ index.js:133
                                      s.add @ index.js:241
                                      r.ondata @ manager.js:335
                                      (anonymous) @ index.js:21
                                      r.emit @ index.js:133
                                      r.onPacket @ socket.js:456
                                      (anonymous) @ socket.js:273
                                      r.emit @ index.js:133
                                      r.onPacket @ transport.js:145
                                      r.onData @ transport.js:137
                                      ws.onmessage @ websocket.js:147
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • Cr4z33C Offline
                                        Cr4z33 @evroom
                                        last edited by

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

                                        1. Perhaps stupid, but do not how to do that. Cannot open MM using the MM IP.

                                        Just run MM into DEV mode and in the right panel switch to the tab ‘Console’

                                        cd ~/MagicMirror/
                                        npm start dev
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          AxLed Module Developer
                                          last edited by

                                          Can you send me following 5 xml files: …/web/about, …/web/getallservices, …/web/timerlist, …/web/servicelistplayable, … /web/epgnow by email ak10zeichen-xy@yahoo.de

                                          AxLED

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

                                            @axled

                                            Forgot the port.
                                            I see this error:

                                            TypeError: undefined is not an object (evaluating 'json.e2servicelistrecursive.e2bouquet.e2servicelist.e2service')
                                            

                                            In line 229 of MMM-Dreambox.js:

                                            this.sender = json.e2servicelistrecursive.e2bouquet.e2servicelist.e2service;
                                            

                                            Mailed you the files.

                                            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

                                            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
                                            • 1 / 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