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);
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);
I have the same message with my environment.
In a browse it’s ok
no problemo,
with this config, black screen
modules: [
{
module: 'MMM-HTTPRequestDisplay',
position: 'bottom_bar', // This can be any of the regions. Best results in left or right regions.
header: 'MMM-HTTPRequestDisplay', // This is optional
config: {
httpRequestURL: 'http://192.168.1.248:8889/status.xml',
// See 'Configuration options' for more information.
}
},
is that correct ?
{
module: 'MMM-HTTPRequestDisplay',
position: 'bottom_bar', // This can be any of the regions. Best results in left or right regions.
header: 'MMM-HTTPRequestDisplay', // This is optional
config: {
accessToken: 'http://api.openweathermap.org/data/2.5/weather?q=London,uk&mode=xml',
// See 'Configuration options' for more information.
}
},
Note from Moderator: Please use Markdown on code snippets for easier reading.