remcotjeerdsma / UnifiProtectCrx

Chrome app for Unifi Protect Live View
20 stars 4 forks source link

Login Credentials Not Working #2

Open cwhittaker77 opened 4 years ago

cwhittaker77 commented 4 years ago

Very excited about this app and certainly appreciate you developing it. I have updated the IP address and my login credentials but when I click the app I get to the Unfi Protect Login screen but it won't take my credentials. I've triple checked that they are correct. Any assistance would be appreciated.

aabhutta commented 4 years ago

On similar path, where/how did you get the IP address of the install, we are on info cloud key -2 plus, is this the ip being displayed on front panel?

digital195 commented 4 years ago

Hey, i changed these parts of the code to get it running on version 1.14.10 with my udm pro.

In the live-view.hmtl file change the url from your unifi protect controller. The url should be like this: cloud key gen 2: "http://192.168.1.1:7080/login?redirect=%2Fliveview" udm pro: "https://192.168.1.1/protect/login?redirect=%2Fliveview"

grafik

Next add timeouts to your inject_custom_functions.js file and update the url in the EventListener too. url: '/login?redirect=%2Fprotect%2Flogin%3Fredirect%3D%252Fliveview'

grafik (Just a snippet of the code)

Now edit the custom_functions.js to match the new selectors from protect like seen in the picture

grafik

I will also attach a zip file with the changed files. unifi-protect-1.14.10.zip