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

    Posts

    Recent Best Controversial
    • RE: JSON request module

      @wishmaster270
      good evening
      thank you for your return, for the config file I put back yours or mine is good? I would test this tomorrow morning, tonight it’s rugby.
      good evening and thank you again

      posted in Requests
      E
      ELMAGO
    • RE: JSON request module

      @wishmaster270 @sdetweil

      I correct myself, it is displayed but thus, having created the custom.css file in css:

      c70503d5-7fdd-4bcf-aff4-0be3fdc8537d-image.png

      08393d06-6cfc-4d4b-a59a-d588f2c700cd-image.png

      Here is my config file:

      // AFFICHAGE
      
      {
      		module: "MMM-ValuesByNotification",
      		position: "top_right",
      		header: "TEMPERATURE MAISON",
      		config: {
      			updateInterval: 10,
      			reuseCount: 100,
      			addClassesRecursive: true,
      			groups: [
      				{
      					items: [
      						{
      							notification: "TEMPSALLE",
      							itemTitle: "Salle  ",
      							classes: "withIcons",
      							values: [
      								{
      									valueUnit: " °C",
      									valueFormat: "Number(${value}).toFixed(2)",
      									jsonpath: "data",
      								},
      							]
      						},
      						{
      							notification: "TEMPBUREAU",
      							itemTitle: "Bureau  ",
      							values: [
      								{
      									valueUnit: " °C",
      									valueFormat: "Number(${value}).toFixed(2)",
      									jsonpath: "data",
      								},
      							]
      						},
      					]
      				},
      			]
      		},
      	},
      
      
      posted in Requests
      E
      ELMAGO
    • RE: JSON request module

      @wishmaster270
      The custom file?

      there is no problem, you help me already it is a lot.

      There is nothing urgent, I just have this display to do on a whole home automation installation.

      I await your return and thank you again.

      posted in Requests
      E
      ELMAGO
    • RE: JSON request module

      @wishmaster270 said in JSON request module:

      valueTitle

      I’m really sorry but I’m really bad at this.

      I did this:
      config:

      //TEMPERATURE MAISON
      
      {
         module: "MMM-CommandToNotification",
         disabled: false,
         config: {
          updateInterval: 60,
          commands: [
           {
            script: "/usr/bin/curl",
            args: "-s  http://192.168.100.244:3000/TEMPSALLE",
            timeout: 5000,
            notifications: [
             "TEMPSALLE",
             ],
           },
      
           {
                 script: "/usr/bin/curl",
                 args: "-s  http://192.168.100.244:3000/TEMPBUREAU",
                 timeout: 5000,
                 notifications: [
                  "TEMPBUREAU",
                  ],
                },
           ]
         },
        },
      
      // AFFICHAGE
      
      {
      		module: "MMM-ValuesByNotification",
      		position: "top_left",
      		header: "TEMPERATURE MAISON",
      		config: {
      			updateInterval: 10,
      			reuseCount: 100,
      			addClassesRecursive: true,
      			groups: [
      				{
      					items: [
      						{
      							notification: "TEMPSALLE",
      							itemTitle: "Salle: ",
      							classes: "withIcons",
      							values: [
      								{
      									valueIcon: "fa fa-thermometer-full",
      									valueUnit: "°C",
      									valueFormat: "Number(${value}).toFixed(2)",
      									jsonpath: "data",
      								},
      {
      									valueUnit: "%rH",
      									valueFormat: "Number(${value}).toFixed(1)",
      									jsonpath: "humidity",
      								},
      							]
      						},
      						{
      							notification: "TEMPBUREAU",
      							itemTitle: "Bureau ",
      							values: [
      								{
      									valueUnit: "°CC",
      									valueFormat: "Number(${value}).toFixed(2)",
      									jsonpath: "data",
      								},
      {
      									valueUnit: "%rH",
      									valueFormat: "Number(${value}).toFixed(1)",
      									jsonpath: "humidity",
      								},
      							]
      						},
      					]
      				},
      			]
      		},
      	},
      
      

      And use css :

      .MMM-ValuesByNotification .vbn .itemWrapper {
        flex-direction: row;
      }
      
      .MMM-ValuesByNotification .vbn .itemTitle {
        min-width: 105px;
        text-decoration: none;
      }
      
      .MMM-ValuesByNotification .vbn .itemTitle.withIcons {
        margin-top: 17px;
      }
      
      .MMM-ValuesByNotification .vbn .itemWrapper.withIcons {
        line-height: 22px;
      }
      
      .MMM-ValuesByNotification .vbn .itemWrapper:not(.withIcons) {
        line-height: 10px;
      }
      

      and nothing is displayed

      posted in Requests
      E
      ELMAGO
    • RE: JSON request module

      @wishmaster270
      You are phenomenal…but I still have three problems:
      1 - When I look for several values, it only shows me the first one.
      2- The Celsius symbol does not seem to be accepted

      76b9ae31-734f-49b5-a4be-5cbf0490a0be-image.png

      3- 3- If I may abuse…is it possible to do the same formatting as this one. CSS and me…

      7e8bc18c-c15d-46ab-a37d-4f7782032f2f-image.png

      Here is my code :

      //TEMPERATURE MAISON
      
      {
         module: "MMM-CommandToNotification",
         disabled: false,
         config: {
          updateInterval: 60,
          commands: [
           {
            script: "/usr/bin/curl",
            args: "-s  http://192.168.100.244:3000/TEMPSALLE",
            timeout: 5000,
            notifications: [
             "TEMPSALLE",
             ],
      	
           },
           ]
         },
        },
      
      {
         module: "MMM-CommandToNotification",
         disabled: false,
         config: {
          updateInterval: 60,
          commands: [
           {
            script: "/usr/bin/curl",
            args: "-s  http://192.168.100.244:3000/TEMPBUREAU",
            timeout: 5000,
            notifications: [
             "TEMPBUREAU",
             ],
      	
           },
           ]
         },
        },
      
      
      // AFFICHAGE
      
      {
         module: "MMM-ValuesByNotification",
         position: "top_right",
         header: "TEMPERATURE MAISON",
         config: {
          groups: [
           {
            items: [
             {
              notification: "TEMPSALLE",
              values: [
               {
                valueTitle: "SALLE A MANGER",
      		valueUnit: "°C",
      		jsonpath: "data",
               },
              ]
             },
      	          {
              notification: "TEMPBUREAU",
              values: [
               {
                valueTitle: "BUREAU",
      		valueUnit: "°C",
      		jsonpath: "data",
               },
              ]
             },
            ]
           },
          ]
         },
        },
      
      

      Once again thank you for everything.

      posted in Requests
      E
      ELMAGO
    • RE: JSON request module

      @wishmaster270

      It’s same

      //TEMPERATURE MAISON
      
      {
         module: "MMM-CommandToNotification",
         disabled: false,
         config: {
          updateInterval: 10,
          commands: [
           {
            script: "/usr/bin/curl",
            args: "-s  http://192.168.100.244:3000/TEMPSALLE",
            timeout: 5,
            notifications: [
             "TEMPSALLE",
             ],
           },
           ]
         },
        },
      
      
      // AFFICHAGE
      
      {
         module: "MMM-ValuesByNotification",
         position: "top_right",
         header: "TEMPERATURE MAISON",
         config: {
          groups: [
           {
            items: [
             {
              notification: "TEMPSALLE",
              itemTitle: "TEMPSALLE",
              values: [
               {
                valueTitle: "TEMPSALLE",
      		valueUnit: "C",
      		jsonpath: "data",
               },
              ]
             },
            ]
           },
          ]
         },
        },
      
      
      posted in Requests
      E
      ELMAGO
    • RE: JSON request module

      @wishmaster270

      There she is
      7b0d670b-43f1-410d-a6ba-5ce99a1012ed-image.png

      posted in Requests
      E
      ELMAGO
    • RE: JSON request module

      @wishmaster270 said in JSON request module:
      Good evening

      (I am in France)

      Thanks for your answer but I still have the same result.

      //TEMPERATURE MAISON
      
      {
         module: "MMM-CommandToNotification",
         disabled: false,
         config: {
          updateInterval: 10,
          commands: [
           {
            script: "/usr/bin/curl",
            args: "-vs  http://192.168.100.244:3000/TEMPSALLE",
            timeout: 5,
            notifications: [
             "TEMPSALLE",
             ],
           },
           ]
         },
        },
      
      
      // AFFICHAGE
      
      {
         module: "MMM-ValuesByNotification",
         position: "top_right",
         header: "TEMPERATURE MAISON",
         config: {
          groups: [
           {
            items: [
             {
              notification: "TEMPSALLE",
              itemTitle: "TEMPSALLE",
              values: [
               {
                valueTitle: "TEMPSALLE",
      		valueUnit: "C",
      		jsonpath: "data",
               },
              ]
             },
            ]
           },
          ]
         },
        },
      
      

      I have to miss something but I don’t see what

      posted in Requests
      E
      ELMAGO
    • RE: JSON request module

      @wishmaster270

      Thank you for your reply.
      So I installed the two modules and configured my config as follows:

      //TEMPERATURE MAISON
      
      {
         module: "MMM-CommandToNotification",
         disabled: false,
         config: {
          updateInterval: 10,
          commands: [
           {
            script: "http://192.168.100.244:3000/TEMPSALLE",
            args: "-10 10",
            timeout: 5,
            notifications: [
             "TEMPSALLE",
             ],
           },
           ]
         },
        },
      
      
      // AFFICHAGE
      
      {
         module: "MMM-ValuesByNotification",
         position: "top_right",
         header: "Module-1",
         config: {
          groups: [
           {
            items: [
             {
              notification: "TEMPSALLE",
              itemTitle: "Item-1",
              values: [
               {
                valueTitle: "Value-1",
      		valueUnit: "°C",
      		jsonpath: "data",
               },
              ]
             },
            ]
           },
          ]
         },
        },
      
      

      and i get :

      663f9695-cd87-4675-9191-428defbea809-image.png

      Can you help me ?

      posted in Requests
      E
      ELMAGO
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 12
    • 13
    • 4 / 13