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-Temperature

    Scheduled Pinned Locked Moved Utilities
    9 Posts 4 Posters 3.3k Views 4 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.
    • wishmaster270W Offline
      wishmaster270 Module Developer @Hadr1en
      last edited by

      @Hadr1en Hi, the module expects an json string as output of the script it executes. There is a section in the readme which shows an example:

      {
         "humidity": 32.61236572265625,
         "temperature_c": 25.50150878906249, //Temperature in °C
         "temperature_f": 77.9027158203125, //Temperature in °F
         "error": false
      }
      

      What kind of error do you get?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        snakestang @wishmaster270
        last edited by

        @wishmaster270

        I know this is an old thread but maybe someone can help. I have everything installed but for the life of me can’t get it to change to fahrenheit. No matter where I put the change line in config it always reads celsius.

        I am using a DS18b20 if it matters.

        Tha ks in advance.

        wishmaster270W 2 Replies Last reply Reply Quote 0
        • wishmaster270W Offline
          wishmaster270 Module Developer @snakestang
          last edited by

          @snakestang Hi, I currently do not use the module (and only used the Fahrenheit option during development) in my setup but I will try to setup a simple development environment to check your problem.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            snakestang @wishmaster270
            last edited by

            @wishmaster270

            No worries. Thanks for your time. Not the end of the world by any means.

            1 Reply Last reply Reply Quote 0
            • wishmaster270W Offline
              wishmaster270 Module Developer @snakestang
              last edited by

              @snakestang
              Hi,

              i tried the following configuration

                  {
                    module: "MMM-Temperature",
                    position: "bottom_right",
                    config: {
                      useCelsius: false,
                      sensors: [
                        {
                            name: "Sensor One",
                            script: "ds18b20",
                            args: "123456"
                        }
                      ]
                    },
                  },
              

              and everything works as expected.
              The unit is changed to “°F” and the “temperature_f” value is chosen.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                snakestang @wishmaster270
                last edited by

                @wishmaster270

                I will try again! Thanks for checking!

                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