MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    MMM-HTTPRequestDisplay

    Utilities
    5
    10
    7095
    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.
    • E
      Eunanibus Module Developer last edited by Eunanibus

      I created this to help another member @acdacd2 but I figure it can be universally used. Many thanks to @KirAsh4

      It is available here: https://github.com/Eunanibus/MMM-HTTPRequestDisplay

      This is not only my first module, but it’s my first real venture into JavaScript, before this I’ve not really had any experience.

      The module allows a targetURL that responds with XML data to be displayed on the mirror. This hopefully supposed to be useful to anyone with any kind of home automation or sensor data that can be received via a HTTP request. In theory, one might be able to get a read out on say; all the doors that are locked in a house.

      I’m not sure. It’s very choppy, and needs some serious work. Right now it only inspects one node hierarchy down. I’d like to improve that in the future.

      Below, is an example using the OpenWeather API to make a request.

      alt text

      alt text

      alt text

      1 Reply Last reply Reply Quote 2
      • zombi27
        zombi27 last edited by zombi27

        nice! this will be very helpful when i get time to work on my home-automation (loxone) module 🙂 Thank you!

        idoodler 1 Reply Last reply Reply Quote 0
        • E
          Eunanibus Module Developer last edited by

          Thank you 😉 - I hope it’s useful to someone. It needs some work so I’ll probably revisit it soon.

          But right now I’m working on a new module to give to everyone. And it’s even cooler 😛 - I actually think a lot of people will use it.

          1 Reply Last reply Reply Quote 1
          • cowboysdude
            cowboysdude Module Developer last edited by

            VERY nice with this I think you have solved a few issues for me! 🙂 I wrote a module for my joomla site and was looking for a way to use it here [NFL Scoreboard] but since this will do the httprequest I can pick apart my module and use the parts with this and it should work!! Bravo!!

            HUGE Thank you!

            1 Reply Last reply Reply Quote 0
            • cowboysdude
              cowboysdude Module Developer last edited by

              OH and where can I download it from? Thank you!

              1 Reply Last reply Reply Quote 0
              • E
                Eunanibus Module Developer last edited by

                Download available here

                https://github.com/Eunanibus/MMM-HTTPRequestDisplay

                I need to make some fixes to the module so for right now consider it in Beta 🙂

                1 Reply Last reply Reply Quote 1
                • K
                  Kristianson last edited by Kristianson

                  Great! Should solve my problems, however I seem to have issues retrieving any data :

                  this is from my config:

                  {
                  module: ‘MMM-HTTPRequestDisplay’,
                  position: ‘top_center’,
                  header: ‘Room Temp’,
                  config: {
                  httpRequestURL: “http://192.168.1.38/guestRoomTemp.php”,
                  updateInterval: 2500
                  }
                  }

                  The guestRoomTemp.php output an XML file format such as this
                  “< root>< roomTemp>20.00< /roomTemp>< /root>” (had to add the space in the XML output example here as the editor seemed to remove the tags)…

                  are there issues calling .php files? The error I get is: HTTP Request Failed. Status 0.
                  Please check the request URL in the module config.

                  I can call the page and get the result from a web browser so there should be no access rights issues?

                  1 Reply Last reply Reply Quote 0
                  • E
                    Eunanibus Module Developer last edited by Eunanibus

                    Hello guys,

                    Thanks for reminding me to do this. This script has needed some work for a while now and I keep delaying it.

                    There’s an issue with cross-site scripting I need to resolve (so resolving external URL’s may fail) - I also want to establish the issue with node inspections. I’m going to begin fixing these issues as soon as my exams are up (So beginning of June) - So you can expect an update then. Apologies for the inconvenience in the mean time.

                    As an added bonus, I’ll be releasing a new module also 🙂 It’s pretty cool looking and I’m looking forward to giving it to all of you.

                    Thanks!

                    1 Reply Last reply Reply Quote 0
                    • K
                      Kristianson last edited by

                      Cool! Quick response! I might move it to the localhost then for now until new version is out :)…

                      1 Reply Last reply Reply Quote 0
                      • idoodler
                        idoodler Module Developer @zombi27 last edited by

                        @zombi27 You may wanna checkout my module MMM-Loxone:)

                        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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy