• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MagicMirror Pimatic (Home Automation) Dashboard

Scheduled Pinned Locked Moved Show your Mirror
35 Posts 10 Posters 34.8k Views 10 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.
  • G Offline
    ganther @Mr.Sponti
    last edited by Apr 23, 2018, 5:18 PM

    @Mr.Sponti
    Thanks for your response.
    Yes, i use the dht-sensors plugin. It is directly connected to GPIO-Pin22

    Here is a Screenshot of a part of the device-config. Perhaps it‘s helpful.

    0_1524503788527_6D37A3E0-7FC5-4B74-9818-F8EAF370BD47.png

    Thank you
    Sandy

    G 1 Reply Last reply Apr 23, 2018, 5:23 PM Reply Quote 0
    • G Offline
      ganther @ganther
      last edited by Apr 23, 2018, 5:23 PM

      And the second menu area:

      0_1524504173601_EAAF835E-1BBC-4158-8E86-03658E10C918.png

      G 1 Reply Last reply Apr 23, 2018, 5:28 PM Reply Quote 0
      • G Offline
        ganther @ganther
        last edited by Apr 23, 2018, 5:28 PM

        Oh sorry, I didn‘t recognize the variables menue entry before oO🤦‍♂️

        It shows $dht22.temperature and .humidity

        I will try these ones in config.

        1 Reply Last reply Reply Quote 0
        • G Offline
          ganther
          last edited by Apr 23, 2018, 5:42 PM

          Yes, Temperatur is shown.
          But with 13 digits behind ‚.‘ just like 24.1234567890123

          Is there a way to cut after 1 or 2 digits behind ‚.‘?
          And a way to select another unit (% instead of degree) or do i have to move it to the notification board?

          Thanks again
          Sandy

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mr.Sponti
            last edited by Apr 23, 2018, 6:04 PM

            Rounding of the values is not a big issue as there is a method '.toFixed(2) ’ available. At the moment the unit specified in the config file is assigned to all values in the table. To implement the value rounding and a individual unit for every value I need to enhance the code. I will put it on my action list for the next version.

            G 1 Reply Last reply Apr 23, 2018, 6:45 PM Reply Quote 0
            • G Offline
              ganther @Mr.Sponti
              last edited by Apr 23, 2018, 6:45 PM

              @Mr.Sponti said in MagicMirror Pimatic (Home Automation) Dashboard:

              Rounding of the values is not a big issue as there is a method '.toFixed(2) ’ available. At the moment the unit specified in the config file is assigned to all values in the table. To implement the value rounding and a individual unit for every value I need to enhance the code. I will put it on my action list for the next version.

              Thank you very much!

              G 1 Reply Last reply Apr 23, 2018, 6:56 PM Reply Quote 0
              • G Offline
                ganther @ganther
                last edited by Apr 23, 2018, 6:56 PM

                One last thought:

                If you add this feature in one of the next versions, it would be fantastic, if you could implement it on notification-board too (rounding and unit).
                Then one module would be enough, it looks very nice and I would save one module-space.

                Sandy

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Mr.Sponti
                  last edited by Apr 25, 2018, 6:20 PM

                  Hi Sandy,
                  to display temperature and the humidity of your DST sensor in the Notification Board with rounded values and the right units should already possible. Try to use the following approach:

                  1. In pimatic create a VariableDevice with a string variable and assign a string including your temperature and humidity Variable.attributes of your DST sensor.
                    (e.q. “Livingroom temperature {round($DST_Temperature,1)} °C - humidity {round($DST_Humidity,1)} %”

                  2. Configure the new VariableDevice into the Notification Board of the MMM-Pimatic module

                  I didn’t test that, but it should work in that way.

                  G 1 Reply Last reply Apr 25, 2018, 8:14 PM Reply Quote 0
                  • G Offline
                    ganther @Mr.Sponti
                    last edited by Apr 25, 2018, 8:14 PM

                    @Mr.Sponti

                    Yes, Great! Both values are shown now rounded.
                    How can I get the unit also be shown?
                    In pimatic variables the units are declared and are shown.
                    But not in notification board.

                    Thank you!

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Mr.Sponti
                      last edited by Apr 26, 2018, 6:01 PM

                      @Mr.Sponti said in MagicMirror Pimatic (Home Automation) Dashboard:

                      “Livingroom temperature {round($DST_Temperature,1)} °C - humidity {round($DST_Humidity,1)} %”

                      Sandy, I’ve tested the notification board with the following string varibale. The units of your measured values need to be part of the string defined in the field expression of your variable device.

                      “Livingroom temperature {round($Temperaturen.Esszimmer,1)} °C - humidity {round($Temperaturen.Esszimmer,1)} %”

                      G 1 Reply Last reply Apr 26, 2018, 7:30 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      3 / 4
                      • First post
                        27/35
                        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