Read the statement by Michael Teeuw here.
MMM-Openhab
-
@LordMM Hi Jürgen, looks like you speak german. Also das Beispiel ist in der readme mehr ist nicht nötig. Gruß Robert
-
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 -
@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" }
-
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 -
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 -
@johntech Webview url=“/static/MMM-View.html” icon=none
-
@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?
-
@johntech Please check again if u did all steps from my readme. looks like u have no fitting sitemap.
-
@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
-
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.