• 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.

MMM-HTTPRequestDisplay

Scheduled Pinned Locked Moved Utilities
10 Posts 5 Posters 7.6k Views 6 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.
  • E Offline
    Eunanibus Module Developer
    last edited by Eunanibus May 11, 2017, 1:03 PM Jun 23, 2016, 5:27 PM

    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
    • Z Offline
      zombi27
      last edited by zombi27 Jun 24, 2016, 9:13 AM Jun 24, 2016, 9:12 AM

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

      I 1 Reply Last reply Apr 23, 2018, 8:13 PM Reply Quote 0
      • E Offline
        Eunanibus Module Developer
        last edited by Jun 24, 2016, 1:00 PM

        Thank you :wink: - 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 :stuck_out_tongue: - I actually think a lot of people will use it.

        1 Reply Last reply Reply Quote 1
        • C Offline
          cowboysdude Module Developer
          last edited by Jun 26, 2016, 6:31 PM

          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
          • C Offline
            cowboysdude Module Developer
            last edited by Jun 26, 2016, 6:40 PM

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

            1 Reply Last reply Reply Quote 0
            • E Offline
              Eunanibus Module Developer
              last edited by Jul 22, 2016, 12:04 AM

              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 Offline
                Kristianson
                last edited by Kristianson May 11, 2017, 1:00 PM May 11, 2017, 12:57 PM

                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 Offline
                  Eunanibus Module Developer
                  last edited by Eunanibus May 11, 2017, 1:01 PM May 11, 2017, 1:00 PM

                  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 Offline
                    Kristianson
                    last edited by May 11, 2017, 1:01 PM

                    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
                    • I Offline
                      idoodler Module Developer @zombi27
                      last edited by Apr 23, 2018, 8:13 PM

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

                      [card:idoodler/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 Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy