A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • 0 Votes
    1 Posts
    1k Views
    S

    I, like (I assume) many of RPi tinkerers and hackers, make code changes on my desktop or laptop and then use git to push new code to the RPi. Since MagicMirror doesn’t track css/custom.css, the mirror fails to load up if the file is missing.

    I tried to come up with a PR to have the loader.js file check if the file exists before appending it to index.html. However, since this is client side JavaScript, it does not have access to the file system and can’t use the fs JavaScript module.

    I then tried to use code like:

    var fileDoesNotExist= function(url) { var http = new XMLHttpRequest(); http.open("HEAD", url, false); http.send(); return http.status==404; }

    to do an http request to the server for the file, but realized that it’s just as bad as the actual http request that tries to load the file and will result in the same errors.

    So, I’m posting this here in case anyone has ideas and can help me with creating a PR to solve this problem. It’s not really a bug and not really a feature. Just an error check that’s missing.

    Thanks.

  • Page change when approaching the mirror

    2
    0 Votes
    2 Posts
    1k Views
    brobergB

    @dc11r you could probably use the pir module with the profile module to accomplish this.
    Instead of blacking the screen it could just change profile when nobody is in front of it.

  • Adding modules more than once

    2
    0 Votes
    2 Posts
    2k Views
    strawberry 3.141S

    @TheSwissGuy the id you are asking for is the identifier which is already in the system and looks like module_1_MMM-soccer etc.

    for the newsfeed i have no clue.

    propably the carousel is not working with the identifier

  • a centered modal window/widget from certain module

    3
    0 Votes
    3 Posts
    2k Views
    slametpsS

    @strawberry-3.141 : i mean for the platform. so, all installed module can be called and displayed in that way without implementing it in the module itself.

  • Add pictures to the newsfeed module

    4
    1 Votes
    4 Posts
    3k Views
    cowboysdudeC

    @TheSwissGuy Copying code is okay as long as you’re not trying to take the credit for it ;)

    Why re-invent the wheel if there’s no need? :)

  • Module scheduling

    7
    0 Votes
    7 Posts
    3k Views
    I

    As @yawns points out its down to the individual modules to implement/subclass the suspend and resume methods which in turn can be used to control when background activity is performed.

    This has been around since MM 2.0, so ModuleScheduler doesn’t make any attempt to control the functionality of the modules other than show, hide, dim and send notifications.

    Hope this helps

  • Home Automation

    2
    0 Votes
    2 Posts
    3k Views
    P

    People where already busy with the idea, you can check it out there
    Don’t know if there is a dedicated pages for the module, you can find out.

  • Need help using an API

    6
    0 Votes
    6 Posts
    4k Views
    T

    Just FYI for anyone who tries this later. It worked flawlessly! I had to mess around with exactly what info I needed to pull. But now my mirror shows when i’m on call.

    Thanks for the help!

  • Departure Monitor including delays / Mentz "EFA" Api

    Unsolved
    12
    0 Votes
    12 Posts
    9k Views
    D

    Is there anyone who created a MMM ?
    There are two famous Systems: HAFAS and EFA
    I want to use the EFA
    https://www.administrator.de/wissen/hafas-fahrplanauskunft-api-sammlung-177145.html

  • Post method - gpio steering (relais)

    2
    0 Votes
    2 Posts
    1k Views
    K

    Hi,

    I’m using a home automation system which can provide a POST command to perform some actions within my house. Is there a way to communicate with the MagicMirror system?

    My mirror will be placed in our bathroom. Since there is already a presence sensor placed in our bathroom we would like to use this sensor to perform an action to the gpio pin of the raspberry pi.

    What would be the best method to perform this action?

  • Header for module "hello world"

    4
    0 Votes
    4 Posts
    2k Views
    K

    Sorry, now that I see my post again: I did not insert the header tag in the correct module. (Shame shame)

  • Multiple layouts/configs

    12
    0 Votes
    12 Posts
    10k Views
    K

    What about the raspberry pi skywriter (pimoroni)?

  • Switchable CSS & entirely different layouts.

    2
    0 Votes
    2 Posts
    2k Views
    cowboysdudeC

    Well in theory you could create other positions with css … so you’re not limited to just the standard layout. As the mirrors get bigger the screen area can be defined more.

    For example ‘top_right’ could be ‘top_right_middle’ etc…

  • Window size and position / Configuration with arrays in general

    1
    0 Votes
    1 Posts
    2k Views
    berlincountB

    Hi!

    I’m the one who filed https://github.com/MichMich/MagicMirror/pull/484, which added single configuration options like window_x, window_y, window_height, etc …

    MichMich’s recommendation was to use an array like

    window: {
    width: 1920,
    height: 1080,
    x: 0,
    y: 0
    }

    … which as such would be fine, but horrible to override.

    As the config-loading code uses Object.assign(defaults, config) to override defaults from the config, the whole Array would have to be given - even if only one option would be needed.

    As it would be awesome to just take the whole Array passed to the BrowserWindow call, a generic way of overriding individual defaults Array entries (including unsetting some) from the config would be nice. I’m currently having trouble wrapping my head around this, so I’m reaching out :)

    Ideas?

    count

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
  • This topic is deleted!

    4
    0 Votes
    4 Posts
    106 Views
  • Add module reference to alerts

    7
    1 Votes
    7 Posts
    5k Views
    paviroP

    Well feel free to change things in the alert module since it should be rewritten at some point anyway… :D

  • Standard module: Clock

    3
    0 Votes
    3 Posts
    4k Views
    andrewchumchalA

    @Plati The Config has been push to GitHub. You can look at the module page here and It has a new option for showDate. But remember update the magic mirror first by doing Git Pull

  • Automatic Location Refreshed Daily

    6
    0 Votes
    6 Posts
    3k Views
    cowboysdudeC

    Unless you install a GPS module to show location… which is possible…

  • microsoft magic mirror with face detection

    3
    0 Votes
    3 Posts
    3k Views
    cowboysdudeC

    Yes this is already possible here… it may not be as good to some but you know what? It’s NOT Microsoft… ;)