MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. 0lek
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.
    0
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    0lek

    @0lek

    0
    Reputation
    312
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    0lek Unfollow Follow

    Latest posts made by 0lek

    • Language changer module

      Hey,

      I’m trying this again. I’ve wrote another post earlier this year, but it did not help me.

      What I’m trying to do is to change the language of the mirror on the fly. So have two pages, one in English, one in Polish and then change them every x seconds. Modules on both would be the same. This would also need to apply to stock modules, such as clock etc.

      Difficulty: Is there a way to do this w/o having to refresh the page every x seconds?

      There’s a ton of toggle/carousel/hide modules for modules, but they don’t help: if a module is hidden and shown, it’s config is not reloaded.

      Thanks for any help.

      posted in Development
      0
      0lek
    • RE: Wrote 2 modules already, but don't know where to start for another...

      @cirdan Thank you. This sounds like a good idea.

      But oh boy, did I badly describe what I want to do. 🙂

      I wasn’t talking about one module only, but about the whole mirror! So I’d like to have one module “MMM-LangChanger” that you can set up and that then changes the language of ALL the modules. So also the system clock module etc.

      So somehow I need to set the language in the config, and then re-load the config without re-loading the mirror.

      b/c if that’s NOT possible, I think the only way for me would be to add a custom code to EACH module (incl. the stock clock) and then to have LangChanger only send a socket notification. But that would NOT work with stock modules then…

      posted in Development
      0
      0lek
    • Wrote 2 modules already, but don't know where to start for another...

      So just to make it clear: I wrote 2 modules already, they work beautifully. But now I have this idea in my mind and can’t find a way to implement it.

      So what I’d like two do is to have a language changer module. Imagine airport boarding signs. They are always in the local language as well as English. They change every couple of seconds back and forth.

      How can I do this? Is it even possible to do that via a module? I tried changing this.config.language on a loop, but that doesn’t do anything.

      A pointer in the right direction is enough, I can figure the rest out. 🙂

      Thanks!

      posted in Development
      0
      0lek