• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 32.4k 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.
  • T Offline
    tbbear Module Developer @Orakel
    last edited by Dec 14, 2018, 9:21 AM

    @orakel U are using openhab2? The view file is in the directory …/html? I am sure its only a access problem.

    Robert the Bear

    1 Reply Last reply Reply Quote 0
    • O Offline
      Orakel
      last edited by Orakel Dec 14, 2018, 11:20 AM Dec 14, 2018, 10:49 AM

      hi tbbear.
      yes i am using openhab2 on a raspi2.
      the MMM-View.html is in the /html directory and the css dir is in the /html directory 2.
      both html file and the css directory are owner of the openhab user on the openhab2 server.
      wenn i open my MMM Sitemap within the PaperUI i can see my sitemap but at the top of it it says

      HTTP ERROR 404
      Problem accessing /static/MMM-View.html. Reason: Not Found

      i have to change to url in my config.js from http://… to http://… to see the Modul on the MagicMirror but i looks the same like in the paperUI view.

      white background… but i want it black with white fonts

      i tried to put the html file and the css directory into /icon/classic/ directory and changed the IP Adresse to localhost. i must do that for the Image Show in a sitemap. Now i have no errors viewing the Modul in the Mirror but it´s still white… like the sitemaps always shown in the paperUI from openhab2. But in the BasicUI view of the sitemap, if i move the mouse cursor to the top it appears that the localhost has refused the connection.

      i don´t know what i shoul do to get the modul working… still any ideas ?

      greetings

      T 1 Reply Last reply Dec 14, 2018, 11:38 AM Reply Quote 0
      • T Offline
        tbbear Module Developer @Orakel
        last edited by Dec 14, 2018, 11:38 AM

        @orakel Can u try something: Replace the dir name ‘static’ in the files MMM-sitemap and in MMM-View with ‘html’

        Robert the Bear

        1 Reply Last reply Reply Quote 0
        • O Offline
          Orakel
          last edited by Orakel Dec 14, 2018, 1:26 PM Dec 14, 2018, 1:17 PM

          i did it before…it´s the same… i think i can´t use your module but i would like.
          is there anything else needed in openhab ? http binding ? web server ? anything else ?
          i tried to install another instance of MagicMirror on a WIndowsPC and its the same probleme here with the MMM-Openhab module so i think it´s an openhab problem

          1 Reply Last reply Reply Quote 0
          • O Offline
            Orakel
            last edited by Orakel Dec 14, 2018, 4:57 PM Dec 14, 2018, 4:51 PM

            after updating my openhab server your module works !!! i am so happy that it works.
            but there is still one little problem, when i am using your MMM-View.html and your MMM-Style.css.
            when i open my sitemap in the paperui it looks like it should. with one word awesome.
            but in my magicmirror its still white.
            but when i am using the mystyle.css and DarkTheme.html it works in the MagicMirror too.
            i dont know how to insert the code … but i found them in an openhab forum.

            1 Reply Last reply Reply Quote 0
            • L Offline
              LordMM
              last edited by May 15, 2019, 1:29 PM

              Hello,
              i tried this module today.

              Where is the example sitemap file after installing the module ?

              Regards

              Jürgen

              T 1 Reply Last reply May 15, 2019, 6:13 PM Reply Quote 0
              • T Offline
                tbbear Module Developer @LordMM
                last edited by May 15, 2019, 6:13 PM

                @LordMM Hi Jürgen, looks like you speak german. Also das Beispiel ist in der readme mehr ist nicht nötig. Gruß Robert

                Robert the Bear

                1 Reply Last reply Reply Quote 0
                • J Offline
                  johntech
                  last edited by Feb 1, 2020, 3:19 AM

                  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

                  T 1 Reply Last reply Feb 2, 2020, 7:22 PM Reply Quote 0
                  • T Offline
                    tbbear Module Developer @johntech
                    last edited by Feb 2, 2020, 7:22 PM

                    @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 Feb 6, 2020, 1:35 AM Reply Quote 0
                    • Z Offline
                      Zacki84
                      last edited by Feb 2, 2020, 8:01 PM

                      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
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 2 / 6
                      • 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