Read the statement by Michael Teeuw here.
MMM-Rest
-
@Tuxdiver
I add debug mode, but where can i find the log ?I try a tcpdump, and they arre no connection to the url :
pi@mirror:~/MagicMirror/modules/MMM-Rest $ sudo tcpdump |grep dirk
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytesStay in loading mode
Thanks in advance -
@balthaz Sorry for the delay… The problem is the same-origin-policy of JavaScript: you must not call any other server than the one, where the mirror is running.
I will change the module to use a node helper, but that might take some time.
-
@balthaz Sorry for the delay… The problem is the same-origin-policy of JavaScript: you must not call any other server than the one, where the mirror is running.
I will change the module to use a node helper, but that might take some time.
Module is updated on Github. Please try again. Now it uses a node_helper.js to fetch the remote data. Should solve the security “bug” of AJAX…
-
@Tuxdiver What kind of sensors are you using for this internally (your openHAB)?
-
Hello,
I am currently on vacation, I will try on my return.
Thanks -
@Tuxdiver What kind of sensors are you using for this internally (your openHAB)?
I have an ESP8266 / NodeMCU sensors in every room, which send temperate and humidity values via MQTT to the mirror running mosquitto MQTT broker and openHAB. The values from the openHAB - API are then displayed on the mirror using my module.
-
@Tuxdiver Yes it’s working good now :)
Is it possible to display alphanumeric response?Thanks
-
-
Hello, i have problem with this module : saying Module Loading. I have installed newest version from github. It is clear instalation with no others module. How can I check where is the problem.
No need copy my config because it’s only one module copied from repository this module. -
@12wsx This could be a problem with the configured URLs: if the connection could not be made or the other side does not deliver any content, the “Module Loading” message does not disappear.
Try setting the “debug” variable to true in the config and call the MM-Url with a normal browser (Chrome) and look at the development console for messages - maybe that could give you some hints.