MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Profile switching API

    Scheduled Pinned Locked Moved Requests
    13 Posts 5 Posters 8.4k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 0 Offline
      00conman
      last edited by paviro

      Note from admin: This was originally part of the Facial Recognition Module thread, moved it because it had nothing to do with it.


      @paviro can you please explain to me how you set up different profiles. I don’t (currently) plan on using your code cough too complicated cough but I had an idea for something potential awesome. P.S. could you trigger a profile switch via a ssh?

      1 Reply Last reply Reply Quote 0
      • 0 Offline
        00conman
        last edited by

        PPS in layman terms also because I’m just trying to learn how to build a module (module development form) and my brain is already oozing out my ears.

        paviroP 1 Reply Last reply Reply Quote 0
        • paviroP Offline
          paviro Admin @00conman
          last edited by

          @00conman what do you mean by profile? This module does not switch any profiles it’s just activates and disables the monitor :D

          We're all stories in the end. Just make it a good one, eh?

          – The Doctor

          0 1 Reply Last reply Reply Quote 0
          • 0 Offline
            00conman @paviro
            last edited by

            @paviro response to reading the whole message back

            I was under the impression that you could sync up multiple different module configurations based on a face or “code.” For example Billy’s face code tracks the weather in London while Sally’s tracks New York’s.

            Response I was too lazy to re-write and only wrote reading the first sentance

            I had a stupid idea to make my mirror have 5 base profiles i.e. a weather, default, news, etc. And, I was going to base that profiling off of your code if possible. Also I was wondering if I could use a command from a terminal to change profile so that I could hook it up to a phone or tablet via something like tasker using a ssh. If possible I would love to attempt it but if not than I’ll move that idea to the trash.

            1 Reply Last reply Reply Quote 0
            • 0 Offline
              00conman
              last edited by

              Furthermore, with some time browsing the forums I found this post

              https://forum.magicmirror.builders/topic/10/multiple-layouts-configs

              with you saying, “Different layouts based on facial recognition is already implemented here :slight_smile: It should be trivial to write something similar for the other use cases you just mentioned! Have a look at my code for an example.” While not outright saying it; it does sound something like different “profiles” that are able to be switched between.

              1 Reply Last reply Reply Quote 0
              • paviroP Offline
                paviro Admin
                last edited by paviro

                It is but this thread is not about that module! Please go to this topic for that.


                Update: I moved your posts to the correct topic, please check next time :) will post an example how to switch profiles later.

                We're all stories in the end. Just make it a good one, eh?

                – The Doctor

                1 Reply Last reply Reply Quote 0
                • 0 Offline
                  00conman
                  last edited by

                  Okay sorry about that.

                  My first question is if I would be able to switch out layouts via a command in the Pi’s terminal or via an ssh. And, my second, if I can change layouts from a terminal, is how I would go about making the different layouts.

                  paviroP MichMichM 2 Replies Last reply Reply Quote 0
                  • paviroP Offline
                    paviro Admin @00conman
                    last edited by

                    @00conman sure you could. Would be the same thing like I do in my module but you probably would need to serve an API you could then trigger via a terminal :)

                    We're all stories in the end. Just make it a good one, eh?

                    – The Doctor

                    1 Reply Last reply Reply Quote 0
                    • MichMichM Offline
                      MichMich Admin @00conman
                      last edited by

                      @00conman it would be worth creating a module that has an API to switch “profiles”. It’s actually extremely doable. But I suggest you open a separate topic for this.

                      1 Reply Last reply Reply Quote 0
                      • 0 Offline
                        00conman
                        last edited by

                        Okay I’ll look into it.

                        A 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy