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

How to setup With Username and Password? #2

Open
Hellangel1987 opened this issue Dec 4, 2016 · 11 comments
Open

How to setup With Username and Password? #2

Hellangel1987 opened this issue Dec 4, 2016 · 11 comments

Comments

@Hellangel1987
Copy link

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
Copy link
Author

/push no solution yet

@BenRoe
Copy link
Owner

BenRoe commented Feb 7, 2017

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

@Da-ne-ezy
Copy link

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

@Hellangel1987
Copy link
Author

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
Copy link

hliebe commented Jan 30, 2018

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

@BenRoe
Copy link
Owner

BenRoe commented Jan 30, 2018

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
Copy link
Author

I will Test this - give me a Couple of days

@Da-ne-ezy
Copy link

Da-ne-ezy commented Jan 31, 2018

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

@PatiB87
Copy link

PatiB87 commented Mar 19, 2018

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

@Aniflu
Copy link

Aniflu commented Apr 12, 2018

@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
Copy link

PieBa commented Jan 4, 2020

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

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

7 participants