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.

    Display temperature over network

    Scheduled Pinned Locked Moved General Discussion
    14 Posts 7 Posters 3.1k Views 7 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.
    • L Offline
      linuxdxs
      last edited by

      Hello, at first please excuse my bad english. I build a thermometer with an Rasperry zero. The Raspi shout transmit the value over the Network. All Magic Mirror should display the temperature.
      Can someone help me?

      thank you in advance

      S lavolp3L 2 Replies Last reply Reply Quote 0
      • S Away
        sdetweil @linuxdxs
        last edited by

        @linuxdxs how transmit over network?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • L Offline
          linuxdxs
          last edited by

          So far I have no idea how to transfer the data. Maybe over udp and phyton?

          S 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @linuxdxs
            last edited by

            @linuxdxs what is running on the pi 0?.. raspian and python?

            you could set up a little web server (using node js and express, or python) and then a module on the Magic Mirror could call that server to get the data

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • L Offline
              linuxdxs
              last edited by

              Ok, which webserver would you prefere

              S 1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil @linuxdxs
                last edited by

                @linuxdxs you can write code to start the web server… node web server using express library is very short…
                I don’t know python that well… I’m sure a google search will give u results…

                so, whatever u feel more comfortable with

                once u set that up you can use your browser to invoke the function on the pi0 to return the temp…

                once that is working, then u can build a module to do the same…
                using my sample module might help on the last step

                https://github.com/sdetweil/SampleModule

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  Why not write the module that goes into MM and then use a script on the thermometer to update the module when the temp changes? If your thermometer is measuring the internal temp of a home, and that changes infrequently because the heat or AC is on, there’s no point in polling the thermometer every five minutes to see what the temp is. :)

                  S 1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil @ember1205
                    last edited by

                    @ember1205 thats another way, but takes more skill to trigger into MM…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    E 1 Reply Last reply Reply Quote 0
                    • E Offline
                      ember1205 @sdetweil
                      last edited by

                      @sdetweil Agreed. And, it would still require a method for the module to “register” with the remote thermometer of its existence when it loads so that initial temp and updates will be transmitted.

                      S 1 Reply Last reply Reply Quote 0
                      • S Away
                        sdetweil @ember1205
                        last edited by

                        @ember1205 based on @linuxdxs comments and questions, I think starting slow is a better choice…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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