MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. sdetweil
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 108
    • Topics 85
    • Posts 20,410
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Error Installing Dependencies Permission Denied

      you can’t install in Desktop… its protected…

      use your home folder… then make a shortcut to start the mirror

      posted in Troubleshooting
      S
      sdetweil
    • RE: WeatherForecast

      i got an api key the other day without any trouble. just have to login and go to key settings…

      https://www.wunderground.com/weather/api/d/docs

      posted in Troubleshooting
      S
      sdetweil
    • RE: what can i do in a module, porting from another mirror project

      thanks… not a nodejs developer generally, so didn’t know about the npmjs site…

      also, i run the MM on an ODROID not PI. a lot faster.

      i understand how ws works… i built a custom ws server and interface in front of an api emulation platform to support software testing a couple years ago.

      posted in Development
      S
      sdetweil
    • RE: programming model

      thanks… the image is not shown in the dom, it is shown in a separate ‘browserwindow’, floating over the dom. i just loadUrl the image into the window, after creating and positioning it.
      the mirror code doesn’t know the images are there

      pictorial calendar reminders.

      I have tested that the helper needs to do all this window mgmt

      The scheduler module does scheduling (compare db data to calendar entries), start/stop viewer(s), and provide indirect services to load images depending on their source (file, dropbox, google drive, one drive).

      The viewer module just walks thru a list of urls (getNext()) and opens a window hidden, loads image, hides old window, shows new window, deletes old window. (avoid dead window during load and, minimize screen flash)

      posted in Development
      S
      sdetweil
    • RE: programming model

      yeh, but all this notification event handling really messes up the code i have which is all angular promise based.

      I want to open my own browserwindow (show image), but u can’t do that in a module, only in a helper,
      but then the window handle object needs to be stored inside the object which is managing the list of images for this ‘viewer’. that object is stored in the module… so, how do I transport the window handle object to the module… is the object valid in the other context (helper vs module).

      see the topic ‘what can i do in a module’. (which u already have)

      posted in Development
      S
      sdetweil
    • RE: what can i do in a module, porting from another mirror project

      @idoodler

      do you have any pointers to examples of websockets from the module? or your “other JS code” means some OTHER library of JS code…

      looks like I would have to build another js class to wrap the ws services…(run the server side in the helper) cause I can’t require() in the module itself… load those classes via the scripts…

      posted in Development
      S
      sdetweil
    • RE: what can i do in a module, porting from another mirror project

      cool… that would allow my components to communicate in a synchronous mode…

      posted in Development
      S
      sdetweil
    • RE: programming model

      not class variable (I got that now), but shared would solve a ton of problems.

      posted in Development
      S
      sdetweil
    • RE: Looking for a module to show and hide different modules

      the question was, how do you KNOW that music is playing? what code tells u?

      I would expect the spotify playing module to do a sendNotification(“spotify_Playing”,something);

      so that other modules might know… it does not do that (looking at the code)…

      you could fork the existing code and add the 2 lines (one playing, one not) of code and submit an enhancement (pull) request to the module owner…

      posted in General Discussion
      S
      sdetweil
    • 1
    • 2
    • 2037
    • 2038
    • 2039
    • 2040
    • 2041
    • 2040 / 2041