AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Building magic mirror modules12/27/2023 If you have a question about a specific function, put magic mirror in front of your Google query. That means that sometimes the syntax can be difficult, and you need to watch out what programming language you’re in when looking up answers. The first thing that you should know, is that the Magic Mirror modules are written in a custom wrapper of NodeJS, which in turn is a wrapper of JavaScript and can be a wrapper of HTML. How to search things on Google?ĭeveloping anything is all about being able to search for the right things on Google. You will probably get most of your information through these channels. Notice that they are all coming from the Magic Mirror forum or documents. This tutorial on how to make your own module should be seen as an extended summary of The Core module file, Head first developing MM module for extreme beginners, How to develop modules and Python and the Magic Mirror. To be honest, once you get the hang of it, it’s really not that difficult and you can do pretty much anything you want.Įnjoy the read: How to write your own module? I hope this post can help some people to get started with their own module. But I think that’s pretty much all you need to know to be able to understand the guide. Also, it’s quite important that you understand what ‘this’ and ‘self’ mean in programming, so if you don’t, be sure to look it up first. Maybe also important (as it is not mentioned in the document) is that our Mirror uses a page system, with different modules being shown on each page. ![]() Additionally, it requires the full strength of a Jetson Nano to run (at a mere 4FPS), so it would probably not be interesting for most. ![]() Unfortunately, I cannot share my module (called MMM-PaintMe), because of the adaptations that I did for our specific Mirror installation, hence rendering it useless for anyone else. As a way to say thank you, I wanted to share my ‘How to write your own module?’ for beginners, where I address the topics that were not very clear to me in the beginning. Thanks to the numerous forum posts and available modules, I was able to develop my module in just a couple of days. Hello everyone! For an internship, I had to develop a custom module for the Magic Mirror, whilst having no experience whatsoever with it, nor with NodeJS, JS or HTML for that matter.
0 Comments
Read More
Leave a Reply. |