@yawns thankyou so much for your useful reply… i actually only want two apps. one for the lifx lights and the other for the wemo app… i just want to know how exactly would i deal with an api that uses php without placing the magicmirror folder else where… im lost
I have seen module hide/show is available but just wanted to do a quick check Is it possible to change the position of modules at run time?
Lets say, based on config file
Module A is on top, Module B on Bottom.
I wanted to exchange their position at runtime
Hmm… I don’t have any custom css om my develop-version of MM, but the problem is of course that you will not see the pointer when moving over to the “mirror” if you are using a mouse.
You can add a custom.css with only:
then you will see where you “are” when moving the mouse.
But you should not need anything else.
ok for the format, will do that.
I am uneasy about removing the number from the name :
It comes as it from the JCDecaux server. Any parsing from my part would be under risk from future modifications.
The number is the ID, it feels more precise than a ‘name’.
I would need more users’ feedback for this point but with a grand total of one user ‘me’, I think I will let it like this, don’t you agree?
@tosti007 I will have to try again, but what I did was similar to what you suggested.Atleast I believe it was.
The thing that’s mainly bothering me is the fact, that the same code executed on its own and not automated within the node_helper is working fine.
I gave a forum search but couldn’t find much on this.
When building the HTML content wrapper to return via updateDom, is there a way to check the sizes of a given element or the module contents as a whole?
I’ve checked using clientWidth/clientHeight and offsetWidth/offsetHeight but they always return zero I guess because nothing is actually rendered yet.
My desire is to dynamically fill in all available vertical space on left or right side of the screen without having text overflow into a module above or below it. The width of the module in this case would be a fixed size.
Got part way through developing this module, but found in testing that my environment was not up to the task of playing the videos. more in the read me
I am putting it up here in case anyone wants to pick it up
Call the text div directly. But since document.getelementsbytagname is messy (as is document.getelementsbyclassname) you should give this div an ID.
var t = document.createElement("div");
t.id = "textarea";
t.innerHTML = "text";
var u = document.getelementbyid("textarea");
u.innerHTML = "updated text";
I am trying to connect several bluetooth devices and display the data from each device on one central screen (like a hub). I thought the Magic Mirror Platform might be a good solution, but I can’t seem to understand what exactly is needed to write a complete and successful module for just one bluetooth device. What are the requirements an IoT device in order to get it to communicate and display data through the Magic Mirror?
For example, one device I’m trying to connect is a 3230 Bluetooth Smart Pulse Oximeter from Nonin Meidcal Inc. I am able to see and pair the device with the Raspberry Pi 3 but it has no functionality since I don’t have a program to interact with the device. This is where I was hoping to create a module for the device in order to display its data onto the screen, but again I’m not sure if it’s even possible for this device.
@darrene said in Dynamic travel time:
Solved! I don’t think my code-hacking is going to win any awards for elegance but it works - I get a different message and journey time depending on whether it’s the week or the weekend!
So you just changed the MMM-Traffic.js? Could you upload it for us?
I like to display the Journey time “home to work” in the morning (for me) and the time “work to home” in the evening (for my family).