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-Openhab

    Scheduled Pinned Locked Moved Utilities
    58 Posts 18 Posters 40.0k Views 20 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.
    • J Offline
      johntech
      last edited by

      I am running OH2 and just ran across your article about interfacing OH2 with MagicMirror. First of all thank you for this program. I’m just starting to use Magic Mirror.
      Questions:
      I have installed your code into Magic Mirror.
      I have added your code to the MM config.js file
      I have added the 2 files to my OH2 html directory.
      Where I ran into trouble is in adding the code to my sitemap file.
      You indicate that this added to the beginning of that code:

      sitemap MMM label="MMM-Openhab"
      {
      	        // Set for MMM-Openhab
      	Webview url="/static/MMM-View.html"
      	...
      }
      

      DO I replace my original code :

      sitemap ourhome label="Our Home" { 
      
          Frame label="Today" {
              Text item=Date icon="calendar"
              Text item=Time  icon="time"
          
          }
      

      with your above code? If I do this then my OH2 will not start. Am I missing something? Thank you for any information!
      John

      tbbearT 1 Reply Last reply Reply Quote 0
      • tbbearT Offline
        tbbear Module Developer @johntech
        last edited by

        @johntech Nooo only insert this line

        sitemap ourhome label="Our Home" { 
             Webview url="/static/MMM-View.html"
        
            Frame label="Today" {
                Text item=Date icon="calendar"
                Text item=Time  icon="time"
            
            }
        

        Robert the Bear

        J G 2 Replies Last reply Reply Quote 0
        • Z Offline
          Zacki84
          last edited by

          HI,
          your module works perfect.
          I changed the css file a litte bit, but it didn´t refresh in MM.
          When I open the browser I cleard cache and see the new version. Do you know how to clear cache for this Module/MM?
          THX

          1 Reply Last reply Reply Quote 0
          • J Offline
            johntech @tbbear
            last edited by

            @tbbear

            Thank you for the reply! I have added the line as instructed in your reply. I also had to move the css file into the css directory in the html directory. Looking at the openHAB Basic UI on the screen the colors changed to black as set .

            In this screen, are you supposed to see the button layout as you displayed at the beginning of this article? There is the icon at the top of the screen showing that looks like something is missing.

            On the Magic Mirror screen, the only thing I see is a rectangle white bordered box on the screen.
            I seem to still be missing something.
            John

            tbbearT 1 Reply Last reply Reply Quote 0
            • tbbearT Offline
              tbbear Module Developer @johntech
              last edited by

              @johntech Webview url=“/static/MMM-View.html” icon=none

              Robert the Bear

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                johntech @tbbear
                last edited by

                @tbbear Ok that got rid of the icon on the openHAB web interface but I still get nothing on the Magic Mirror screen but the rectangular screen with a white border.

                What creates the buttons and labels on the Magic Mirror screen?

                tbbearT 1 Reply Last reply Reply Quote 0
                • tbbearT Offline
                  tbbear Module Developer @johntech
                  last edited by

                  @johntech Please check again if u did all steps from my readme. looks like u have no fitting sitemap.

                  Robert the Bear

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    johntech
                    last edited by

                    @tbbear I found the problem!

                    	url: "http://wr-pi-openhab:8080/basicui/app?sitemap=MMM"   // url of your Openhab sitemap
                    
                    

                    I overlooked the fact the I needed to enter MY url to my openHAB program in the line above. Now everything works as it should!!

                    Thank you again for developing this module!!

                    John

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tmcgregor
                      last edited by

                      I have started building my own MagicMirror and would like to use your module to display who’s home based on phones connected to the wifi. I already have OpenHab set up with a sitemap showing who is home. After following your readme file, I now get a white box with nothing in it and chromium opens when MagicMirror does.

                      I made a copy of the sitemap and called it MMMOpenhab.sitemap and added your extra code. The sitemap works and I can access it. I get no errors when running npm start dev so MagicMirror can see the MMM-OpenHab module. I’m just not sure whats going wrong.

                      lavolp3L 1 Reply Last reply Reply Quote 0
                      • lavolp3L Offline
                        lavolp3 Module Developer @tmcgregor
                        last edited by

                        @tmcgregor Just FYI, you could also have that solution with the module MMM-NetworkScanner.

                        How to troubleshoot modules
                        MMM-soccer v2, MMM-AVStock

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          georgeashton02 @tbbear
                          last edited by

                          @tbbear Hi, What is the command to type into the terminal to download this module? Thank you

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @georgeashton02
                            last edited by

                            @georgeashton02 where would you find this module?

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            G 1 Reply Last reply Reply Quote 0
                            • G Offline
                              georgeashton02 @sdetweil
                              last edited by

                              @sdetweil I have found all of the information about it I just cannot find the information needed to install the module… Thanks

                              S 2 Replies Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @georgeashton02
                                last edited by

                                @georgeashton02 ok, how do you install modules in general?

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @georgeashton02
                                  last edited by

                                  @georgeashton02 https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1590679589616

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 1
                                  • G Offline
                                    georgeashton02
                                    last edited by

                                    Yeh you need to clone all the files of the module then mostly npm install that module but i need the address to clone for the files

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @georgeashton02
                                      last edited by

                                      @georgeashton02 said in MMM-Openhab:

                                      but i need the address to clone for the files

                                      i’m not sure I understand that… you mean github?

                                      you know how to use search? google, or on github itself

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        georgeashton02
                                        last edited by lavolp3

                                        @sdetweil Thanks i was being dumb, however i do have another problem any ideas why this is throwing errors at me?

                                        sitemap MMM label="MMM-Openhab"
                                        {
                                        	        // Set for MMM-Openhab
                                        	Webview url="/static/MMM-View.html"
                                        }
                                        
                                        Frame label="TV"
                                        {
                                            Switch item= BedroomTVPower
                                            Switch item= BedroomPauseTv
                                        }
                                        
                                        Frame label="Lights" 
                                        {
                                            Colorpicker item= My_Room_Light_Colour
                                            Switch item= My_Room_Lights
                                        }
                                        

                                        This was all working before i added the code that i was told to add by the MMM-openhab github page…

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @georgeashton02
                                          last edited by

                                          @georgeashton02 where are those? In config?

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            georgeashton02
                                            last edited by

                                            @sdetweil Yes, That code if from my openhab .sitemap file

                                            S 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
                                            • 2 / 3
                                            • 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