Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module keeps "Loading" forever #1

Closed
cyberdie opened this issue Oct 11, 2016 · 4 comments
Closed

Module keeps "Loading" forever #1

cyberdie opened this issue Oct 11, 2016 · 4 comments

Comments

@cyberdie
Copy link

The configured URL resolves correctly using curl and gives back the required info (temperatur from an aquarium).

{
        module: 'MMM-Rest',
        position: 'bottom_right',               // This can be any of the regions.
                config: {
               debug: true,
            sections: [
                {
                    suffix: 'ºC',
                    digits: 1,
                    url: 'http://192.168.1.4:8000/devices/temp2/sensor/temperature/c'
                },
            ],
            output: [
                ['Temperatura Acuario','@1']
            ],
                }
},
@Tuxdiver
Copy link
Owner

I think I found the problem: getting values from another server than the mirror server is not allowed. The "same-origin-policy" of JavaScript does not permit to call other servers.

So at the moment, it is not really possible to use the module. I will try to change it to use a node helper for getting the data, but I can't tell you, when it will be ready.

@cyberdie
Copy link
Author

Have you see this one: https://github.com/Eunanibus/MMM-HTTPRequestDisplay

@Tuxdiver
Copy link
Owner

I looked at MMM-HTTPRequestDisplay, but I think, it must have the same problem with foreign remote URLs.

I just added a node_helper.js to my module. Could you please try again?

@cyberdie
Copy link
Author

Git Pull, reboot and IT WORKS!
Thanks @Tuxdiver !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants