Thank you so much! You have guided me to right direction and now I am doing requests the right way in node_helper :)
Read the statement by Michael Teeuw here.
Best posts made by henrikra
-
RE: What is right way to do http request on my custom module?
Latest posts made by henrikra
-
RE: How to disable auto update?
@mykle1 said in How to disable auto update?:
RemoteControl
I mean I want to know only if someone has pushed updates to the modules. But I dont want notifications when MagicMirror has released a new version
-
RE: How to disable auto update?
@mykle1 Hmm okay nice! What if I want update notifications only from modules? But not from MagicMirror it self?
-
How to disable auto update?
When there is a new version available of MagicMirror I see on my mirror text like
New commits in master. 123 commits behind
. How can I disable this behaviour? I don’t want that my mirror shows on the UI that there is new version available. Or is it even possible to disable checking for new version? -
RE: MMM-RouteInfo
Just wanted to let you know that I made initial TS pr for MagicMirror to add simple types. They aren’t complete but you gotta start somewhere :) https://github.com/MichMich/MagicMirror/pull/1121
-
RE: BUG - after 3/4 days
I am having similar issues as you! The problem is that the wifi connection drops after a day or so. I am also having similar logs like
fatal: unable to access 'https://github.com/MichMich/MagicMirror.git/': Could not resolve host: github.com
Which shows pretty clearly that internet is not available.I have also have custom module with poor error handling and I am getting undefined errors. But I tested my module without internet on my local OSX. It starts to give me same undefined errors. But when I put wifi back up it recovers perfectly. So I am wondering if the mirror is getting wifi back ever?!
Also I am pretty sure that when mirror drops the connection it can’t get it back up because I can’t ssh into it anymore.
Do you guys have any idea how to know if mirror is trying to reconnect to the internet?
-
Alexa vs Google AIY Voice kit
I am going to add voice stuff to my smart mirror soon. Which one you guys would choose and why? :)
-
RE: What is right way to do http request on my custom module?
Thank you so much! You have guided me to right direction and now I am doing requests the right way in node_helper :)
-
RE: What is right way to do http request on my custom module?
@Sean Nice! Can you show example project where you have done it like this?
-
What is right way to do http request on my custom module?
At the moment I am calling my external endpoint with XMLHttpRequest in my custom module. But the server has CORS setting on. My current workaround for that is that I am adding
webSecurity: false
insideelectronOptionsDefaults
injs/electron.js
file. This allows me to do requests to the server without CORS problem.My question is there a correct way to do http requests in custom modules? Are there any disadvantages in my current solution?