uniFi-WiFI-AP: discussions

Posted on
Thu Nov 02, 2017 4:13 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi-WiFI-AP: discussions

see v .66 that should fix it and config should be nicer now

As I have everything enabled.. I see all the fields ..


Karl

Posted on
Thu Nov 02, 2017 4:29 pm
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: uniFi-WiFI-AP: discussions

Config panel is still not right. You're hiding the checkboxes for the neighbor node info behind ipSWON0. If it's hidden at all, it should be behind the first AP since it's the APs that will give you neighbor info.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Nov 02, 2017 5:01 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi-WiFI-AP: discussions

one more time.. v .67

but the location for neighbors is correct.. it does not require a restart .. and yes it only works with the APs...


Karl
and thanks for being persistent .. after 80 hours in a row on this one , I don't see bugs any ore..

Posted on
Thu Nov 02, 2017 6:16 pm
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: uniFi-WiFI-AP: discussions

Config panel seems right now.

I notice that you create devices for the APs but not the USG.

My first UniFi switch arrives tomorrow. I'll test more with it.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Nov 02, 2017 7:49 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi-WiFI-AP: discussions

here is how devices get created:

1. In config set IP#, enable, etc for AP, GW, SW ...
2. plugin starts SSH to unifi devices (AP, GW,SW) and start receiving dumps of db (DICT) and lines from /var/log/messages .
3. When DICTs and messages get to the plugin, it loops through DICTs, checks if a device MAC # is new, if yes: create new device. This is done for several device types: GW, AP, SW and UNIFI clients (regular network devices)
So if the GW is properly defined (correct IP and enabled and correct PROMPT) the ssh to the GW should be successful and you should see dicts and messages coming in.
If not: ip # is wrong, not enabled, userid/password is wrong (but this is the same for everything), or bug.

could YOU enable debug Dict and log for lines like this:
Code: Select all
20:46:06 DC-----     -ipNumber: 192.168.1.1  apNumb: GW  uType: GWdict  unifiDeviceType: GW  {u'hostname': u'GW', u'ip': u'71.128.0.84', u'config_network_wan2': {u'dns2': u'208.67.222.222', u'd....


if you see them then the plugin is getting data from the GW and should create the GW devices..
if not ..


Karl

BTW:
GW= UGA=USG=router

Posted on
Wed Nov 08, 2017 4:18 pm
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: uniFi-WiFI-AP: discussions

Hey, the new version seems to handle devices being in new folders it didnt expect, but I moved my variables to a new unifi folder and the plugin recreated new ones, and so the old ones, referenced in my triggers needed deleting and the triggers repointing to the new ones. Not end of the world, but thought I would let you know in case it can be resolved to help anyone else.

Posted on
Wed Nov 08, 2017 4:49 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi-WiFI-AP: discussions

Yes I changed the names to replace - with_ signs as I fühl in some circumstance does not like - in names states etc.

You can set the folder names in config and I will post a new version that allows the to set the first part of the variables names to be changed ( eg unifi_count ... could start then start with abc... )



Sent from my iPhone using Tapatalk

Posted on
Sun Feb 25, 2018 1:59 pm
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: uniFi-WiFI-AP: discussions

Karl,

Getting the following error:

"in Line '2751' has error='global name 'xType' is not defined'"

Suggestions?

JP

Posted on
Sun Feb 25, 2018 10:59 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi-WiFI-AP: discussions

v 7.11.95 @ https://www.indigodomo.com/pluginstore/73/ should fix this

Karl

Posted on
Mon Feb 26, 2018 9:08 pm
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: uniFi-WiFI-AP: discussions

It worked. Thank you!

JP

Posted on
Fri May 18, 2018 10:18 am
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: uniFi-WiFI-AP: discussions

Karl,

On the latest version, getting every 10 sec:

uniFiAP Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Suggestions?

JP

Posted on
Fri May 18, 2018 12:56 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi-WiFI-AP: discussions

roquej wrote:
Karl,

On the latest version, getting every 10 sec:

uniFiAP Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Suggestions?

JP
is there an error message before?
Ie stop the plugin and then start.
Need THE FIRST ERROR
Karl


Sent from my iPhone using Tapatalk

Posted on
Fri May 18, 2018 1:02 pm
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: uniFi-WiFI-AP: discussions

Karl,

Entire sequence in log:

uniFiAP stopping plugin due to: ::::: new devices :::::
Reloading plugin "uniFiAP 7.15.110"
Stopping plugin "uniFiAP 7.15.110" (pid 70769)
uniFiAP Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Stopped plugin "uniFiAP 7.15.110"
Starting plugin "uniFiAP 7.15.110" (pid 89318)
uniFiAP setting parameters for indigo version: >>7<<
Started plugin "uniFiAP 7.15.110"
uniFiAP initializing ... variables
uniFiAP logfile handling to : /Users/house/indigo/unifi/UniFi.log
uniFiAP com.karlwachs.uniFiAP
uniFiAP /Users/house/indigo/unifi/UniFi.log
SQL Logger deleting table variable_history_267716736
SQL Logger creating table variable_history_30336776 for "Unifi_With_Status_Change"
utilities versionCheck for com.karlwachs.utilities installed: 1.14.12
utilities A new version of the plugin (v7.15.110) is available at: https://www.indigodomo.com/pluginstore/75/
uniFiAP start runConcurrentThread, initializing variables ..

Noticed is asking me to load vv7.15.110, but that is the version loaded.

JP

Posted on
Fri May 18, 2018 3:51 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi-WiFI-AP: discussions

the plugin store directory is wrong .. the latest version is there twice: once in indigo utilities and once in unifi.. will need Matt/Jay to remove that one.. Don't know how it got there .. :oops:

But that part is just FYI


I do not see where it throwing the error after the start
>>>uniFiAP Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)<<<

thats what I need every from start to THAT error

Karl

Posted on
Fri May 18, 2018 4:02 pm
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: uniFi-WiFI-AP: discussions

Karl,

Not sure what you need me to do. I disabled and then restarted the plugin. This is the log entries:

May 18, 2018 at 5:57:55 PM
Disabling plugin "uniFiAP 7.15.110"
Stopping plugin "uniFiAP 7.15.110" (pid 38510)
uniFiAP initialized
Stopped plugin "uniFiAP 7.15.110"
Enabling plugin "uniFiAP 7.15.110"
Starting plugin "uniFiAP 7.15.110" (pid 40620)
uniFiAP setting parameters for indigo version: >>7<<
Started plugin "uniFiAP 7.15.110"
uniFiAP initializing ... variables
uniFiAP logfile handling to : /Users/house/indigo/unifi/UniFi.log
uniFiAP com.karlwachs.uniFiAP
uniFiAP /Users/house/indigo/unifi/UniFi.log
SQL Logger deleting table variable_history_98697137
SQL Logger creating table variable_history_1365910375 for "Unifi_With_Status_Change"
uniFiAP start runConcurrentThread, initializing variables ..

May 18, 2018 at 5:59:01 PM
uniFiAP initialized

May 18, 2018 at 6:00:02 PM
uniFiAP stopping plugin due to: ::::: new devices :::::
Reloading plugin "uniFiAP 7.15.110"
Stopping plugin "uniFiAP 7.15.110" (pid 40620)
uniFiAP Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Stopped plugin "uniFiAP 7.15.110"
Starting plugin "uniFiAP 7.15.110" (pid 44608)
uniFiAP setting parameters for indigo version: >>7<<
Started plugin "uniFiAP 7.15.110"
uniFiAP initializing ... variables
uniFiAP logfile handling to : /Users/house/indigo/unifi/UniFi.log
uniFiAP com.karlwachs.uniFiAP
uniFiAP /Users/house/indigo/unifi/UniFi.log
SQL Logger deleting table variable_history_1365910375
SQL Logger creating table variable_history_844719142 for "Unifi_With_Status_Change"
uniFiAP start runConcurrentThread, initializing variables ..

What else?

JP

Who is online

Users browsing this forum: No registered users and 17 guests