ok I am ready to look into it:
could you please switch on debug in config, save
# 6, 6.1 and 14
and restart plugin
and send (karlwachs at me com) the results (plugin.log in the logs directory in indigo) !! will contain user id password etc!!
Karl
it should look like.. and a lot more, I have xxx out the uid and passwords
- Code: Select all
06 12:33:30 myLogSet setting parameters -- logFileActive= indigo; logFile= /Library/Application Support/Perceptive Automation/Indigo 2021.2/Logs/com.karlwachs.uniFiAP/plugin.log; debugLevel= [u'ConnectionCMD', u'ConnectionRET']
06 12:33:30 ... debug enabled for GW-dev:F, AP-dev:F,F,F,F,F, SW-dev:F,F,F,F,F,F,F,F,F,F,F,F,F
06 12:33:31 getunifiOSAndPort existing os>< .. ip#>192.168.1.xx< .. trying ports>[u'443', u'443', u'8443']<
06 12:33:31 getunifiOSAndPort trying port#:>/usr/bin/curl --insecure -I -s -o /dev/null -w "%{http_code}" 'https://192.168.1.xx:443'< gives ret code:200
06 12:33:31 getunifiOSAndPort found OS:unifi_os, port#:443 using ip#:192.168.1.xx
06 12:33:31 Connection: requests login url:https://192.168.1.xx:443/api/auth/login;
dataLogin:{"username": "xxx", "password": "xxx"};
loginHeaders:{'referer': '/login', 'Content-Type': 'application/json', 'Accept': 'application/json'};
06 12:33:32 Connection: requests login code:200; ret-Text:
{
"unique_id": "xxx",
"first_name": "xxx",
....