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

    FrostByte

    @FrostByte

    Module Developer
    3
    Reputation
    1
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    FrostByte Unfollow Follow
    Module Developer

    Best posts made by FrostByte

    • [MMM-Cinestar-FDW] German Cinema movie poster "Film der Woche"

      Description:

      The MMM-Cinestar-FDW displays the “Film der Woche” (Movie of the Week) from Cinestar cinemas on your MagicMirror². This module automatically shows the weekly featured film as soon as it’s announced — typically late Wednesday or early Thursday.

      Screenshots:

      fa795be6-ca76-4569-a6bd-9aaefb2ce538-example_1.png

      Download:

      Click here https://github.com/LukasWestholt/MMM-Cinestar-FDW


      Version 1.0

      • Configurable poster height
      posted in Entertainment
      F
      FrostByte
    • RE: Bugsounet and MMM-Pir

      @lif So in my experience, your error just means that you didn’t run ‘npm run setup’!

      posted in General Discussion
      F
      FrostByte
    • RE: Bugsounet and MMM-Pir

      @rkorell Thanks for your answer! That makes total sense. Thanks for reporting your experience. I’ll keep that in mind.

      With Wayland it took me tens of hours to rotate the display by 90 degrees via autostart and I often thought about migrating to X11 back. But in the end it worked.

      posted in General Discussion
      F
      FrostByte

    Latest posts made by FrostByte

    • RE: A command to refresh magic mirror page

      I would take a different approach. Start MagicMirror via ‘npm run server’ and you will get a website endpoint that you can access with a browser. The trick is that after you change the config.json, you can simply reload the webpage (F5). You can then start the browser in kiosk mode (so fullscreen) and automate F5 by external tools.

      posted in General Discussion
      F
      FrostByte
    • RE: Module Development in TypeScript

      Hi @Jalibu,

      thanks for the typings.

      To be honest, it’s not the best possible integration. The MagicMirror repository includes a module-types.ts file, containing the most important types, which I extended a little to fit my needs. A deeper integration, like being able to get correct typings/autocompletion for the this object in functions, is not available. If I find myself using it more in the future, I may look into improving this.

      I want to share an little extension or may a solution for the problem quoted:

      import type { Config } from "../types/Config";
      import type { State } from "../types/State";
      
      interface FrontendModuleProperties
        extends Partial<Module.ModuleProperties<Config>> {
        state?: State;
      }
      
      Module.register<Config>("MMM-XX", {
        defaults: {
          x: 29,
          y: "abc",
        },
      
        getStyles() {
          return ["z.css"];
        },
       <...>
      
        getTemplateData() {
          return {
            config: this.config,
            value: this.state?.value,
          };
        },
      
       <...>
      
        socketNotificationReceived(notificationIdentifier: string, payload: State) {
          if (notificationIdentifier === `ABC-${this.identifier}`) {
            const lastValue = this.state?.value;  // <-- Here lastValue got correct type automatically
            <...>
              this.state = payload;
          }
        },
      } as FrontendModuleProperties);
      
      posted in Development
      F
      FrostByte
    • [MMM-Cinestar-FDW] German Cinema movie poster "Film der Woche"

      Description:

      The MMM-Cinestar-FDW displays the “Film der Woche” (Movie of the Week) from Cinestar cinemas on your MagicMirror². This module automatically shows the weekly featured film as soon as it’s announced — typically late Wednesday or early Thursday.

      Screenshots:

      fa795be6-ca76-4569-a6bd-9aaefb2ce538-example_1.png

      Download:

      Click here https://github.com/LukasWestholt/MMM-Cinestar-FDW


      Version 1.0

      • Configurable poster height
      posted in Entertainment
      F
      FrostByte
    • RE: Bugsounet and MMM-Pir

      Thank you @gullymat. Very interesting comparision!

      posted in General Discussion
      F
      FrostByte
    • RE: Bugsounet and MMM-Pir

      @rkorell Thanks for your answer! That makes total sense. Thanks for reporting your experience. I’ll keep that in mind.

      With Wayland it took me tens of hours to rotate the display by 90 degrees via autostart and I often thought about migrating to X11 back. But in the end it worked.

      posted in General Discussion
      F
      FrostByte
    • RE: Bugsounet and MMM-Pir

      @lif So in my experience, your error just means that you didn’t run ‘npm run setup’!

      posted in General Discussion
      F
      FrostByte
    • RE: Bugsounet and MMM-Pir

      Okay, let’s go into detail. @rkorell

      As already written by @sdetweil , the node_modules directory is created when npm run setup (or npm install as it should be called).

      In addition, the ‘missing files’ are also created dynamically when this command is called. See:

      lukas@smartmirror:~/MagicMirror/modules$ git clone https://github.com/Coernel82/MMM-Pir.git MMM-Pir-test
      lukas@smartmirror:~/MagicMirror/modules$ cd MMM-Pir-test
      lukas@smartmirror:~/MagicMirror/modules/MMM-Pir-test$ npm run setup
      lukas@smartmirror:~/MagicMirror/modules/MMM-Pir-test$ ls -al components/
      total 68
      drwxr-xr-x  2 lukas lukas  4096 Apr  1 19:06 .
      drwxr-xr-x 10 lukas lukas  4096 Apr  1 19:53 ..
      -rw-r--r--  1 lukas lukas  4101 Apr  2 11:23 cronJob.js
      -rw-r--r--  1 lukas lukas  2241 Apr  2 11:23 governorLib.js
      -rw-r--r--  1 lukas lukas  3894 Apr  2 11:23 motion.js
      -rw-r--r--  1 lukas lukas  1563 Apr  2 11:23 motionLib.js
      -rw-r--r--  1 lukas lukas   757 Mar  3 19:09 MotionSensor.py
      -rw-r--r--  1 lukas lukas  3755 Apr  2 11:23 pirLib.js
      -rw-r--r--  1 lukas lukas  6068 Apr  2 11:23 screenDisplayer.js
      -rw-r--r--  1 lukas lukas 19159 Apr  2 11:23 screenLib.js
      -rw-r--r--  1 lukas lukas  1763 Apr  2 11:23 screenTouch.js
      

      I use Wayland/labwc (Debian GNU/Linux 12 bookworm) on aarch64 Raspberry Pi 3B and everything is working for my Pir configuration. I did not use your copy.

      So i am asking again, are there some runtime errrors? So please send me errrors logs.

      The ‘build’ step in package.json is really very confusing. That’s why I’ve started to organise it: https://github.com/Coernel82/MMM-Pir/compare/main...LukasWestholt:MMM-Pir:main#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519

      Best regards,
      Lukas

      posted in General Discussion
      F
      FrostByte
    • RE: Bugsounet and MMM-Pir

      Hi everyone,

      I didn’t quite get it right. Are there still problems with MMM-Pir?

      I see that there are already two pull requests on https://github.com/Coernel82/MMM-Pir/pulls (one is from me). I would be willing to maintain the module, if no one else does.

      Happy to hear from you @coernel

      posted in General Discussion
      F
      FrostByte