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.

    MMM-Jeedom Display presence on same line

    Scheduled Pinned Locked Moved Utilities
    6 Posts 2 Posters 990 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.
    • S Offline
      selyjohns
      last edited by selyjohns

      Hi,

      I want to display two boolean valued with symbolon and symboloff on the same line. Do you know if is it possible ?

      The goal is to display on the same line if me of my gf are present, with the good symbol depend of boolean value.

      Actually, it’s display on two different line, because first occurence of sameLine can only contain idx and title.

      Edit : maybe, another solution is to display information only if the value of boolean is true ?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • E Offline
        ELMAGO
        last edited by

        @selyjohns je n’ai pas tout à fait compris ce que tu souhaites. Mais je peux reprendre demain pour voir si j’ai quelque-chose qui puisse t’aider…et oui je suis français

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          selyjohns @ELMAGO
          last edited by

          @elmago

          Salut,
          Merci de ta réponse.
          Voici les informations de Jeedom qui sont affichées sur mon MM.
          alt text

          J’aimerai que nos présences soient affichées sur la même ligne, ou a defaut que la présence ne soit affichée que si le booleen a true (presence)

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            ELMAGO @selyjohns
            last edited by ELMAGO

            @selyjohns donne moi aussi ton fichier config ou au mini la parti de ce module.

            mais de memoire il faut ajouter un truc du genre :

            sameLine: true,

            comme la par exemple :

            {
            idx: “778”,
            //customTitle: "Trajet 1 : ",
            sameLine1: true,
            unit : “min.”,

            			},
            

            {
            idx: “780”,
            //customTitle: "Trajet 2 : ",
            sameLine1: true,
            unit : “min.”,

            			},
            
            1 Reply Last reply Reply Quote 0
            • S Offline
              selyjohns
              last edited by

              Hello,
              Meilleurs voeux :)

              Voici un extrait de la config.
              Le sameLine ne peut pas fonctionner dans ce cas, car le symbôle dépend de l’état du booléen et on ne peut pas spécifier cela dans la première partie d’un sameLine

              Si jamais tu as une idée, sinon ce n’est pas très grave :)

                              {
                                      module: 'MMM-Jeedom',
                                      header: 'Informations Maison',
                                      position: "bottom_right",
                                      config: {
                                              updateInterval: 3000,
                                              jeedomAPIKey: "XXX",
                                              jeedomURL: "X.X.X.X",
                                              jeedomPORT: 80,
                                              jeedomHTTPS: false,
                                              jeedomAPIPath: "/core/api/jeeApi.php",
                                              sensors: [
                                              {
                                                      idx: "473",
                                                      symbolon: "fa fa-user-check",
                                                      symboloff: "fa fa-user-times",
                                                      customTitle: "Josselyn",
                                                      boolean: true,
                                      },
                                              {
                                                      idx: "481",
                                                      symbolon: "fa fa-user-check",
                                                      symboloff: "fa fa-user-times",
                                                      customTitle: "Stéphanie",
                                                      boolean: true,
                                      },
                                              {
                                                      idx:"1183",
                                                      sameLine1: true,
                                                      unit : "°C",
                                      },
                                              {
                                                      idx:"1184",
                                                      customTitle: "Salon",
                                                      symbol: "fa fa-thermometer-half",
                                                      sameLine2: true,
                                                      unit : "%",
                                      },
              
              E 1 Reply Last reply Reply Quote 0
              • E Offline
                ELMAGO @selyjohns
                last edited by ELMAGO

                @selyjohns Oui une idée mais à la c…

                j’essayerais d’indexer le tout :

                Voici ton code modifié :

                                {
                                        module: 'MMM-Jeedom',
                                        header: 'Informations Maison',
                                        position: "bottom_right",
                                        config: {
                                                updateInterval: 3000,
                                                jeedomAPIKey: "XXX",
                                                jeedomURL: "X.X.X.X",
                                                jeedomPORT: 80,
                                                jeedomHTTPS: false,
                                                jeedomAPIPath: "/core/api/jeeApi.php",
                                                sensors: [
                                                {
                                                        idx: "473",
                                                        symbolon1: "fa fa-user-check",
                                                        symboloff1: "fa fa-user-times",
                                                        customTitle1: "Josselyn",
                                                        boolean1: true,
                					sameLine1 : true,
                                        },
                                                {
                                                        idx: "481",
                                                        symbolon2: "fa fa-user-check",
                                                        symboloff2: "fa fa-user-times",
                                                        customTitle2: "Stéphanie",
                                                        boolean2: true,
                					sameLine2 : true,
                                        },
                                                {
                                                        idx:"1183",
                                                        sameLine1: true,
                                                        unit : "°C",
                                        },
                                                {
                                                        idx:"1184",
                                                        customTitle: "Salon",
                                                        symbol: "fa fa-thermometer-half",
                                                        sameLine2: true,
                                                        unit : "%",
                                        },
                

                Et voici mon bout de code pour exemple :

                sensors: [
                				{
                					idx: "778",
                					//customTitle: "Trajet 1 : ", 
                					sameLine1: true,
                					unit : "min.",	
                
                				},
                				{
                					idx: "777",
                				 	customTitle: "Trajet 1 : ",	
                				 	sameLine2: true,
                
                				},
                				{
                					idx: "780",
                					//customTitle: "Trajet 2 : ", 
                					sameLine1: true,
                					unit : "min.",
                
                				},
                				{
                					idx: "779",
                				 	customTitle: "Trajet 2 : ",	
                				 	sameLine2: true,
                
                				},
                
                
                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • 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