ok now i got the problem.
can you please update the module. To do that just type git pullin the module directory (…/modules/MMM-Globe/). And in your config file you have to change your path to https://github.com/ddzurko/Mirror/blob/master/Gear.png?raw=true.
Then it should work.
@rvdgeer do you have pm2 installed and configured? Oh looked above, you do. Well I have noticed even though logs show command error, it still works, I think it’s because node doesn’t surround commands in quotes.
This helps indeed for the error, thanks. But how to use it like I want? I mean, how can you do calculations within following up socketnotifications? It looks like with every gesture the this.config;gesture_up starts with the value 0.
It has been an interesting two weeks playing around with my new MagicMirror for work purposes.
I recently have had success in loading in the recent logs from a google spreadsheet using the quickstart.js file located here
I would want to display that information onto the magicmirror in a corner somewhere.
The issue I am having is trying to understand the module format with node.js and where things need to go if I want to create the quickstart.js as a module.
I have been using this to better understand module creation but I am having trouble wrapping my mind on how I would make something like the quickstart.js in a module.
Where would I put that code in the module and so forth.
It is really neat that we can create and customize modules for our mirrors. I tried to look at other module codes to see how they are structured but it is also hard for me to learn the creators style of coding.
For example, understanding what getDom() does and when I need it or what wrappers are and why I would need that.
I do have coding experience but not with node.js.
I am basically asking for layman’s terms on where to put code if you want it to do this and why it has to go there.
Thank you for taking the time to read this message.
Basically yes, that’s what I’m trying to do. Would that work, assuming I set it up as a new module according to the guidelines you sent earlier? (thank you by the way, that helped a lot).
Essentially I’m just trying to be able to pull data from my MongoDB (I will probably roll this into its own module – right now I’ve committed the sin of modifying app.js directly until I get my bearings). Then use the Mongo data to populate data in other modules (think Hello World, Compliments, etc.).
It sounds like I will need to create a second module that essentially takes my Mongo data and sends it in the form of a JSON object variable to other modules using sendNotification() and then have them update the DOM to reflect the change. I know there are some nuances, but for the sake of brevity, am I generalizing/thinking about it correctly?
@DevilRev I think this is currently not possible within the core application. I also wanted this for my remote control, however I concluded that for now it is sufficient, to add the module to the config, and restart the application in this case.
However this might be worth being added to the core.
@strawberry-3.141 , the json will be on the server, check the link below. It will be very similar. The number 83139 refers to a bus stop and will query the bus arrival timings. The module will need to be able to reload the content every minute to get the updates arrival timings.
Ability to query multiple bus stops will be great!
I’m really interested in adding voice control, especially a solution provided by amazon or google with good recognition.
I can see in the video above alexa can answer all sorts of questions but how can this be incorporated into magic mirror to do thing like restart, show and hide modules, etc?
Also, how would alexa get information about things like the current location to give travel times etc?
I guess the end goal would be to have other modules controlling things like lighting (phillips hue?) and using the voice control to turn it on/off & change colour as an example.
I can’t explain how much I love to see this community, just the story about how MagicMirror came to be.
This is truly remarkable. I’ve decided to make a mirror of my own and I’m already begun to purchase the main parts.
Before my mirror can be fully functional I’ll have to develop some modules for it - but, first things first. When you’re using open source and have the opportunity to contribute, you’re in my opinion obliged to do so.
I’m offering to translate your modules from English to Danish. No matter if it’s a small module with 1 string, or a big one with 1.000+ strings.
My only demand is that the module is open source and free to use for others MagicMirror users.
Just post a GitHub repository link for your MagicMirror module in this thread, and I will fork it, translate it and create a pull request