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

http request

Scheduled Pinned Locked Moved Development
53 Posts 7 Posters 45.9k 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.
  • A Offline
    acdacd2 @KirAsh4
    last edited by Jun 25, 2016, 6:39 AM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • A Offline
      acdacd2
      last edited by Jun 25, 2016, 6:44 AM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • A Offline
        acdacd2
        last edited by Jun 25, 2016, 6:57 AM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • A Offline
          acdacd2
          last edited by Jun 25, 2016, 7:20 AM

          I’m using that code in php

          $xml = simplexml_load_file('XML/status1.xml');
          echo "<br>--------------<br>XML parsing <br>--------------<br>";
          $result = array();
          
          foreach($xml->children() as $child){
          $result[$child->getName()] = trim($child);
          1 Reply Last reply Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer
            last edited by Jun 25, 2016, 8:59 AM

            have a look in here https://forum.magicmirror.builders/topic/240/soccer-standings i had also problems with cors so i used the request module in my node_helper to fix it

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 0
            • A Offline
              acdacd2
              last edited by Jun 25, 2016, 11:36 AM

              I copied the xml file on a synology web server, same behaviour status :0

              1 Reply Last reply Reply Quote 0
              • E Offline
                Eunanibus Module Developer
                last edited by Jun 25, 2016, 4:42 PM

                Thanks @strawberry-3-141 - I’ll take a look and see if there are any changes I can make.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  acdacd2
                  last edited by acdacd2 Jun 25, 2016, 5:53 PM Jun 25, 2016, 5:53 PM

                  I took contact with the provider, he advices me to use x-device techno?

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    Phate @acdacd2
                    last edited by Jul 17, 2016, 5:50 PM

                    @acdacd2 said in http request:

                    some errors with nom install

                    pi@raspberrypi:~/MagicMirror/modules/default/MMM-HTTPRequestDisplay $ npm install
                    npm WARN enoent ENOENT: no such file or directory, open ‘/home/pi/MagicMirror/modules/package.json’
                    npm WARN enoent ENOENT: no such file or directory, open ‘/home/pi/MagicMirror/modules/node_modules/node_helper/package.json’
                    npm WARN modules No description
                    npm WARN modules No repository field.
                    npm WARN modules No README data
                    npm WARN modules No license field.

                    @KirAsh4

                    I’m having this same error with a module… What am I doing wrong… any hints much appreciated

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      KirAsh4 Moderator
                      last edited by KirAsh4 Jul 17, 2016, 11:48 PM Jul 17, 2016, 11:40 PM

                      Does that module actually require an 'npm install' to be run? Don’t blindly run commands that you don’t know are actually necessary. You need to ask the author of that module how to properly install it, what the steps are, what’s needed, etc., etc. I know nothing of that module.

                      Edited to add: running an 'npm install' is generally only required if the specific module needs any additional node dependencies installed. However, the author would make this known. If it doesn’t say that anywhere, do not assume you have to do it yourself. You may end up causing more harm to your installation than good.

                      A Life? Cool! Where can I download one of those from?

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 5 / 6
                      • 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