shbatm / octomirror-module

Magic Mirror Module that can interact with an Octoprint instance
MIT License
28 stars 20 forks source link

Currently Showing N/A for all stats #4

Open ColinTravis opened 5 years ago

ColinTravis commented 5 years ago

All stats from Octoprint are showing as N/A.

Switched on debug mode, but no messages are coming through either. The stream works great, and I've got the same API key set as I do in Cura. I'm on version 1.3.9 of Octoprint

elblogbruno commented 5 years ago

I'm having the same error any solution?

shbatm commented 5 years ago

Sorry -- I didn't update the comments here... Please update the module to the latest version:

cd ~/MagicMirror/modules/octomirror-module
git fetch 
git pull

Details of the change here in the MagicMirror forum.

elblogbruno commented 5 years ago

Thanks I'll give It a go.

ColinTravis commented 5 years ago

image

Pulled in newest version, even updated API key. Still seems to be reporting N/A

Nerradia commented 5 years ago

I had the same problem. Enabling "Allow Cross Origin Resource Sharing (CORS)" in Octoprint resolved the problem. image

RoninActual commented 2 years ago

Please check your configuration to ensure the hostname is correct (try the ip, no port) and that the api key is not in brackets.

Find the config that worked for me below:

            {
                    module: "octomirror-module",
                    position: "middle_center",
                    disabled: false,
                    config: {
                    url: 'http://xxx.xxx.xx.xx',
                    api_key: 'api key no brackets',
                    printerName: 'name for the header',
                    streamUrl: 'http://xxx.xxx.xx.xx/webcam/?action=stream',
                    interactive: false,
                    showDetailsWhenOffline: false
                    }
            },