XMLHTTPRequest. Look at how the 'currentweather' module does it in the 'updateWeather()' function.
Read the statement by Michael Teeuw here.
Posts
-
RE: http request
-
RE: http request
Right, I have not tested this on an actual rpi … I’m at the office, so I’m running a serveronly setup. I can do an rpi test later, although I suspect it will still work, as opposed to resulting in a blank screen. It returns the error as expected when it can’t find the file.
-
RE: http request
The file ‘status.xml’ doesn’t exist on my system, so it gets a 404 returned, however it does load up, and it does work.

-
RE: http request
Hey @acdacd2, please use proper Markdown when posting code. It really isn’t that hard to do and it makes it so much easier and pleasant for others to read, and possibly find errors quicker. Specifically you need to use back ticks before and after your code:
``` like so. Note that a back tick is not the same as the normal apostrophe, ` versus ' . ``` -
RE: http request
As a further explanation,
'npm install'is only required if the module you are installing requires other node modules to also be installed. When you first install MagicMirror you have to run'npm install'to install all the dependencies for it to work, however generally, modules don’t need that. The exception is if someone writes a module that requires another node module that isn’t already installed. So there was no need to run that, nor to copy any'.json'package files anywhere. -
RE: Strange weather bug?
The only time I have seen my rpi not update either of the weather stats was if there was a communication error at any given request, however it always picked up at the next update. So this is a bit baffling to me … have either of you guys notice any errors anywhere, whether in npm, pm2, or the console?
-
RE: Weekly Calendar
I haven’t forgotten, it’s just been two rather busy weeks. And I’m recovering from a failed server HD today/this weekend. Yay for backups … not so much fun when it’s terabytes of data. Anyway, I’ll get back this as soon as this mayhem stops, or at least subsides a bit.
-
RE: Monthly Calendar View
Please read about the release here: https://forum.magicmirror.builders/topic/238/monthly-calendar