8/2/2023 0 Comments Best magic mirror modules![]() The screen, the Raspberry Pi and its power supply can be stored inside. This is glass, with a semi-transparant reflective surface.īefore building, I made a drawing in SolidWorks. This glass plate is covered with a semi-transparant foil layer. Instead of using a see-through mirror, a normal glass plate is used. The frame of the first mirror is made out of wood. We both made a mirror in a different way. This flexibility makes our open source project easy to reuse for other purposes. For example: Changing to another HTTP-request handler, is as easy as editing only the DiscourseRequestHandler. Every class has it’s own purpose, which gives a clear overview of what every part of the software does. That is not always the case, because of limitations of the platform.Īs can be seen in the class diagram below, the module is built out of multiple classes. Where possible, multiple notifications can be downloaded at one. The notifications are downloaded in the order they are needed. To not overload the Discourse webserver, we limit our requests to 1 request per 3 seconds (max 20 per minute). We had to make a module that was, robust, flexible (easy to extend or reuse), easy to read and efficient. The software was, as expected, the most work of all. We researched which API calls are necessary for our project, how to request an API key and how to handle the communication with different Discourse sites. An API is an interface programs can talk to, to get notifications from Discourse. Automating this, makes the proces of shipping your module less tedious.Ī big part of this project was dedicated to using the Discourse API. With continuous integration an application, like our module, can be easily published when it is passes all tests.We used the Jasmine testing framework with Karma as client. When something breaks later, you get automatically notified when the tests are unsuccessful. It’s best practice to do this before writing the actual code. Unit testing means that you test the behavior of your code.Everytime somebody uploads software to our project, it gets automatially checked on coding style mistakes. That is why we started automating our repository. To make a software project professional, it is important to review code of your team mates. That means that every day, the module we will create gets more popular.Īs can be seen in the Product Breakdown Structure below, it takes a lot of work to make a module. ![]() The message can be dismissed by reading or acknowledging the message on the user’s Discourse-platform.ĭiscourse is getting more popular every day. That way, you see the message casually when you walk by your mirror in the living room. Having the notifications displayed on a mirror is a nice solution. When the message is showed to you in the mirror, you don’t have to check the site or your mail every time. When someone sends you a message, you don’t want to let them wait. One of them, is RobotExchange.io, the site where our minor communication takes place. Modules can: Show the time and date, show the weather forecast, show when your train leaves, show news and much more.ĭiscourse is an open source Internet forum and mailing list management software application that is used by many sites. Right now, there are 671 3rd-party modules publicly released for everybody to use, and ours is the 672th! While it works as a mirror, you can see the screen through the glass. What is a MagicMirror?Ī MagicMirror is a see-through mirror in front of a display, that is hooked up to a Raspberry Pi. Our plugin makes it possible to show notifications of every website that uses Discourse, a discussion/mailing/forum platform used by over 10.000 organisations. That is a smart mirror, driven by a Raspberry Pi, that shows you news, information and notifications. ![]() ![]() We made a module (plug-in) for the MagicMirror ( see it here). MagicMirror Module for displaying Discourse notifications Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |