BenRoe / MMM-FHEM

A module for the MagicMirror, to display data from FHEM devices.
MIT License
10 stars 14 forks source link

How to setup With Username and Password? #2

Open Hellangel1987 opened 7 years ago

Hellangel1987 commented 7 years ago

Hi,

how to set this up with username and password for fhem ?

Try to set it up as shown in readme. Not showing any values - but smart mirror will boot normally.

tried also:

    {
            module: 'MMM-FHEM',
            position: 'bottom_bar',
            config: {
        user: 'USERNAME',
        password: 'PASSWORD',
            deviceNames: [
                    'Arbeitszimmer',
                    'Wohnzimmer',
                    'Schlafzimmer',
        'Kueche',
        'Bad',
            ],
            deviceReadings: [
                    { name: 'state', icon: 'wi wi-thermometer', suffix: '°' },
             ],
        },

also no success....

Hellangel1987 commented 7 years ago

/push no solution yet

BenRoe commented 7 years ago

Currently it's not supported. Will try to add this in the next update.

Da-ne-ezy commented 7 years ago

Yes an update with USERNAME and PASSWORD would be great. No fixes yet?

Hellangel1987 commented 7 years ago

We Seriosly need a fix for Username and Password otherwise this module is useless @BenRoe any plans ?

ALL Fhem User use Username and Passwort for their Enviroment....

hliebe commented 6 years ago

The setup of username and password can be done by defining your host like this: host: 'username:password@ip-of-your-fhem-server'

BenRoe commented 6 years ago

Hi hliebe, thanks for the hint. I don't have a mm running. Can someone (@Hellangel1987 @Da-ne-ezy )please test this? If it works i will add it to the description an close this issue.

Hellangel1987 commented 6 years ago

I will Test this - give me a Couple of days

Da-ne-ezy commented 6 years ago

I tried it like this, but the module doesn't even appear on my mirror. Maybe any changes on the allowed_WEB?

PatiB87 commented 6 years ago

/push This is not working for me. The widget is created on the magicmirror-webpage but it stays empty.

Aniflu commented 6 years ago

@Da-ne-ezy

I tried it like this, but the module doesn't even appear on my mirror. Maybe any changes on the allowed_WEB?

the Fix for you`r Problem might be:

Disable csrfToken

to test the module you can insert in the config 'header: 'Smarthome',' to see if the module is pop up an header if not the problem might be somwere else.

as an last option you can try attr WEB.* csrfToken none

PieBa commented 4 years ago

For me it works with host: 'username:password@ip-of-your-fhem-server' as suggested by @hliebe I needed to deactivate csrfToken as mentioned by @Aniflu

However I was not able to use the module with https: true