Read the statement by Michael Teeuw here.
http request
-
This post is deleted! -
This post is deleted! -
This post is deleted! -
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);
-
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
-
I copied the xml file on a synology web server, same behaviour status :0
-
Thanks @strawberry-3-141 - I’ll take a look and see if there are any changes I can make.
-
I took contact with the provider, he advices me to use x-device techno?
-
@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.I’m having this same error with a module… What am I doing wrong… any hints much appreciated
-
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.