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

    Posts

    Recent Best Controversial
    • RE: Problem with MMM-ValuesByNotification and MMM-CommandToNotification

      @sdetweil Hi thx for the fast reply. This is a script from the creator of the module. In the module folder is another folder with scripts. The description how to use it is:

      script: Either a absolute path or the realtive path of a script starting at the “scripts” directory. Make sure to add a “./” as prefix if you call a script in the “scripts” directory.

      And in his example he did this:

        {
         module: "MMM-CommandToNotification",
         disabled: false,
         config: {
          updateInterval: 10,
          commands: [
           {
            script: "./randomInteger.js",
            args: "-10 10",
            timeout: 5,
            notifications: [
             "TEST1",
             "TEST2",
            ],
           },
           {
            script: "./randomNumberJson.js",
            args: "-50 20",
            skips: 3,
            timeout: 10,
            conditions: {
              returnCode: [0,1,2]
            }
            notifications: [
             "TEST3",
             ["TEST4", true]
            ],
           }
          ]
         },
        },
      

      I changed it to:
      script: “./temperature/dht22”,

      posted in Troubleshooting
      J
      Jimmy1502
    • Problem with MMM-ValuesByNotification and MMM-CommandToNotification

      Hello i used to following code to add a temperature and humitidy display to my magic mirror. i use a dht22 and i already checked the sensor with a arduino. it is working and giving reasonable outputs. But i just get “Timeout” or “0.00” as values. So did i mess up the code?

      {
         			module: "MMM-CommandToNotification",
      			disabled: false,
         			config: {
      				updateInterval: 10,
          				commands: [
          					{
          					script: "./dht22",
      					timeout: 55,
      					args: "12",
      					notifications: [
      					"Tempout"
             						]
      					}
      
      					]
         				},
        		},
      		        {
                  		module: "MMM-ValuesByNotification",
                  		position: "bottom_left",
                  		header: "Diele",
                  		config: {
                      		updateInterval: 10,
                      		reuseCount: 100,
                      		groups: [
                          			{
                              		items: [
                                  			{
                                      		notification: "Tempout",
                                      		itemTitle: "Bathroom",
                                      		values: [
                                          		{
                                              valueIcon: "fa fa-thermometer-full",
                                              valueUnit: "°C",
                                              valueFormat: "Number(${value}).toFixed(2)",
                                              jsonpath: "temperature",
                                              thresholds: [
                                                  {
                                                      value: "15",
                                                      type: "lt",
                                                      classes: "lt15"
                                                  },
                                                  {
                                                      value: "20",
                                                      type: "lt",
                                                      classes: "lt20"
                                                  },
                                              ]
                                          },
                                          {
                                              valueIcon: "fa fa-tint",
                                              valueUnit: "%rH",
                                              valueFormat: "Number(${value}).toFixed(1)",
                                              jsonpath: "humidity",
                                          },
                                      ]
                                  },
                              ]
                          },
                      ]
                  },
              },
      
      posted in Troubleshooting
      J
      Jimmy1502
    • RE: MMM-DHT22

      Hello, im quite new to the MagicMirror and I only have basic Programming Knowledge. I tried using ur Module and i strictly followed ur guide, but it doesnt work. The module itself is loading even th icons, but there are no numbers visible. I tried to check the library but it doesnt work.
      Is it a Problem on my side or a Problem with the adafruit library?

      Thx for your help.

      posted in Utilities
      J
      Jimmy1502
    • 1
    • 2
    • 2 / 2