t0mer / broadlinkmanager-docker

Broadlink Manager is a python based project that allows you to contorol your broadlink devices. Discover, Leran and send command in a very easy way
Apache License 2.0
261 stars 56 forks source link

Can't access Boradlinkmanager on localhost #13

Open rward3182 opened 3 years ago

rward3182 commented 3 years ago

Hi I followed all the instructions it's running fine on docker. However I can't access it on the localhost:7020 or 0.0.0.0:7020 I am using OSX on a Mac

What am I missing? Thanks

Screen Shot 2020-10-27 at 5 58 55 pm

Attaching to broadlinkmanager

broadlinkmanager | 2020-10-27 05:41:10.640 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | * Serving Flask app "broadlinkmanager" (lazy loading)

broadlinkmanager | * Environment: production

Also tried port forwarding RW It did not work

2020-10-27 09:38:53.249 | INFO | main::515 - Broadllink Manager is up and running

WARNING: This is a development server. Do not use it in a production deployment.

Use a production WSGI server instead.

2020-10-27 09:38:53.570 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | WARNING: This is a development server. Do not use it in a production deployment.

broadlinkmanager | Use a production WSGI server instead.

broadlinkmanager | * Debug mode: on

broadlinkmanager | * Running on http://0.0.0.0:7020/ (Press CTRL+C to quit)

broadlinkmanager | * Restarting with stat

broadlinkmanager | 2020-10-27 05:41:10.950 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | * Debugger is active!

broadlinkmanager | * Debugger PIN: 113-809-217

broadlinkmanager | 2020-10-27 06:50:40.510 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | * Serving Flask app "broadlinkmanager" (lazy loading)

broadlinkmanager | * Environment: production

broadlinkmanager | WARNING: This is a development server. Do not use it in a production deployment.

broadlinkmanager | Use a production WSGI server instead.

broadlinkmanager | * Debug mode: on

broadlinkmanager | * Running on http://0.0.0.0:7020/ (Press CTRL+C to quit)

broadlinkmanager | * Restarting with stat

broadlinkmanager | 2020-10-27 06:50:40.830 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | * Debugger is active!

broadlinkmanager | * Debugger PIN: 113-809-217

rward3182 commented 3 years ago

I also tried port forwarding this did not work

Serving Flask app "broadlinkmanager" (lazy loading)

WARNING: This is a development server. Do not use it in a production deployment.

Use a production WSGI server instead.

2020-10-27 09:38:53.570 | INFO | main::515 - Broadllink Manager is up and running

bubez81 commented 3 years ago

same problem here!

bubez81 commented 3 years ago

solved: `version: "3.6" services: broadlinkmanager: image: techblog/broadlinkmanager expose:

bubez81 commented 3 years ago

but sadly: broadlinkmanager | 2020-10-29 16:22:16.981 | INFO | main:discover:444 - Searching for devices...

broadlinkmanager | 2020-10-29 16:22:21.988 | ERROR | main:discover:459 - No devices found

rward3182 commented 3 years ago

I solved this. No idea why the docker image was not working. But I just did a direct install and it works perfectly. At last I can scan RF codes!

BTW: works well on OSX. Good work

bubez81 commented 3 years ago

Sorry can I ask you how do you do a direct install on macOS?

bubez81 commented 3 years ago

ok...was easy...but I'm not a lucky guy...: `2020-11-09 12:54:55.600 | INFO | main::515 - Broadllink Manager is up and running

bubez81 commented 3 years ago

I don't know what problem is "OSError: [Errno 49] Can't assign requested address" but I know that the access problem of the docker-compose installation system is that the program needs to scan MAC addresses and the network_mode: bridge can't share MAC adresses but network_mode: host can...but with this mode we can't reach the docker...

nononolimits commented 3 years ago

I'm having the exact same problem. Can someone help?

nononolimits commented 3 years ago

I solved this. No idea why the docker image was not working. But I just did a direct install and it works perfectly. At last I can scan RF codes!

BTW: works well on OSX. Good work

What do you mean with "direct install"?

nononolimits commented 3 years ago

Was able to run broadlinkmanager.py now. localhost:7020 now works, but when scanning for devices, nothing happens and I get:

(venv) D:\broadlinkmanager>py broadlinkmanager.py

bubez81 commented 3 years ago

Hello, you are on windows right? we are on macOS....

nononolimits commented 3 years ago

Yes, windows. And tried on my Raspberry pi OS as well.

bubez81 commented 3 years ago

with the raspberry you can try this method: https://en.techblog.co.il/2020/06/24/installing-broadlinkmanager-on-raspberry-pi/

nononolimits commented 3 years ago

Yes, that's what I did. I tried the broadlinkmanager.py out on windows and on my raspberry, both had same error I mentioned (Authentication failed).

bubez81 commented 3 years ago

strange...with this method on the raspberry I had no problems at all...but I was thinking...authentication of what?? maybe with sudo? (on the raspberry obviously)

nononolimits commented 3 years ago

No, that's not it. I started py with sudo. And I had the exact same issue on windows.

Paulie-Moo commented 3 years ago

having same issue on mac

peet86 commented 2 years ago

Sadly network_mode: host is only working on linux.. docker on mac is running in a vm....