• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Rest

Scheduled Pinned Locked Moved Utilities
resturltemperature
25 Posts 6 Posters 20.1k Views 7 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    balthaz @Tuxdiver
    last edited by Sep 17, 2016, 11:57 AM

    @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 bytes

    Stay in loading mode
    Thanks in advance

    T 1 Reply Last reply Oct 11, 2016, 3:17 PM Reply Quote 0
    • T Offline
      Tuxdiver @balthaz
      last edited by Oct 11, 2016, 3:17 PM

      @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.

      T B 2 Replies Last reply Oct 14, 2016, 9:40 AM Reply Quote 0
      • T Offline
        Tuxdiver @Tuxdiver
        last edited by Oct 14, 2016, 9:40 AM

        @Tuxdiver said in MMM-Rest:

        @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…

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jopyth Moderator
          last edited by Oct 14, 2016, 12:41 PM

          @Tuxdiver What kind of sensors are you using for this internally (your openHAB)?

          Helpful sticky: How to troubleshoot

          T 1 Reply Last reply Oct 16, 2016, 4:44 PM Reply Quote 0
          • B Offline
            balthaz
            last edited by Oct 14, 2016, 4:53 PM

            Hello,
            I am currently on vacation, I will try on my return.
            Thanks

            1 Reply Last reply Reply Quote 0
            • T Offline
              Tuxdiver @Jopyth
              last edited by Oct 16, 2016, 4:44 PM

              @Jopyth said in MMM-Rest:

              @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.

              1 Reply Last reply Reply Quote 0
              • B Offline
                balthaz @Tuxdiver
                last edited by Oct 26, 2016, 4:09 PM

                @Tuxdiver Yes it’s working good now :)
                Is it possible to display alphanumeric response?

                Thanks

                T 1 Reply Last reply Oct 27, 2016, 7:55 PM Reply Quote 0
                • T Offline
                  Tuxdiver @balthaz
                  last edited by Oct 27, 2016, 7:55 PM

                  @balthaz Please have a look at the last version on Github :-)

                  Attention: it has an incompatible change of the config parameters - see README.md!

                  1 Reply Last reply Reply Quote 0
                  • 1 Offline
                    12wsx
                    last edited by Dec 16, 2017, 11:29 PM

                    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.

                    T 1 Reply Last reply Dec 17, 2017, 1:48 PM Reply Quote 0
                    • T Offline
                      Tuxdiver @12wsx
                      last edited by Dec 17, 2017, 1:48 PM

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy