@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
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?
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
[card:izanbard/MMM-youreBeautiful]
I am putting it up here in case anyone wants to pick it up
@Synthic
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.
@nbrenn the easiest solution without messing with the css around is to create a second module, which is litening on the broadcasts you will send with the data in it from your module you already have
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! :)
Hi darrene,
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).