UniFi WiFi AP: download

Posted on
Sun Feb 14, 2021 10:56 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

changes in V 7.36.324 @ 2021-02-14
==================

1. added some more reports for backups, DPI ,...
2. some beautification in menus, combined things, fixed some spelling

The DPI report (menu/print & get info from ... / Print deepPaketInfo) gave me some worries, did not know how many protocols are China based, search for "protocol RenRen" in google.
I guess I need to understand what box/software is talking to China

You can see the data also online on the controller, but not in a condensed form.

this data is ~ 10 minutes after clear DPI counters
Code: Select all
== ** cat and app #s from https://ubntwiki.com/products/software/unifi-controller/api/cat_app_json **
   cat# cat Name-----------------------               rx_bytes         tx_Bytes
      3 File sharing services and tools              3,319,439        1,751,691
      4 Media streaming services                   318,115,830        7,380,264
      9 Management tools and protocols                   6,560            3,656
     10 Remote access terminals                          7,756                0
     13 Web services                                33,167,967          758,359
     18 Network protocols                               28,100           35,931
     19 Network protocols                          109,656,120        6,636,310
     20 Network protocols                            5,627,264        4,741,752
     24 Social networks                              3,047,997          125,626
    255 Unknown                                      5,310,891        2,126,799
   app# app Name-----------------------  cat#         rx_bytes         tx_Bytes #clients
      3 AIM/ICQ/iIM                        24          104,097          104,097
      5 DingTalk/Laiwang                    3           19,517           19,517        2
     10 Gadu-Gadu                           4          135,452          135,452        1
     10 Gadu-Gadu                          24        2,943,900        2,943,900
     15 RenRen                             13          158,532          158,532
     17 IPMSG                              24                0                0
     21 Lava-Lava                          10            7,756            7,756        1
     25 BeeTalk                            13        1,155,415        1,155,415        1
     38 Raidcall                           13           10,638           10,638
     41 WhatsApp                            3           49,013           49,013        1
     61 BaiduHi                             9            6,560            6,560        1
     63 ??                                 18            1,730            1,730
     66 IM+                                13          548,034          548,034
     84 ClubCooee                           3          178,944          178,944        1
     84 ClubCooee                          13          242,907          242,907        1
     94 IntraMessenger                     19      109,656,120      109,656,120       15
    106 WeChat                             18           26,370           26,370       13
    112 ??                                  4      317,980,378      317,980,378        2
    126 ??                                 13       31,036,726       31,036,726        1
    150 ??                                  3        3,071,965        3,071,965        5
    160 ??                                 20        5,148,896        5,148,896        1
    185 ??                                 20           30,529           30,529        3
    186 ??                                 20          232,679          232,679        1
    189 ??                                 20            1,122            1,122
    193 ??                                  4                0                0
    194 ??                                 20                0                0
    195 ??                                 20          214,038          214,038        1
    222 ??                                 13            7,317            7,317        1
    234 ??                                 13            8,398            8,398
  65535 ??                                255        5,310,891        5,310,891       36
There are a lot of un-named apps and protocols, but those are the numbers I could get from the unifi api wiki pages

Karl

Posted on
Mon Feb 15, 2021 10:13 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

changes in V 7.36.325 @ 2021-02-15
==================

1. added option in config to overwrite controller port number
normal action is to autodetect the port# [443, 8443]
it will still check if connection ok
2. fixed error on config (only for new installs)
3. fixed error in testServerIfOK (ipnumber not found)
4. fixed error in SensorDevice (nameMAC not found)


Karl

Posted on
Tue Mar 02, 2021 11:20 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

changes in V 7.37.341 @ 2021-03-02
==================

this is a major rewrite of queue management and threads.. should give a much better performance.


1. added option to ALSO use unifi controller db info for UP --> down
enable in config for all/per-device/ non unifi cleint devices
if per-device: edit unifi client device in indigo and set to on/off
it is doing an https get request to /stat/alluser and checks for last_seen
if internal lastUp is expired it will check if last seen is later and will overwrite ie extending the expiration timer
2. fixed some spelling and removed options for read xx every yy secs, all set to 60 / 40 now fixed
3. made several options fixed = removed from config
4. tuned debug statements for dict/ message reads
5. fixed memory leak in getmessages
6. added debug statement for unifi controller bad json object return
6. added timeout =(3.,10.) to http -requests
7. manage debug logs in case of failure for ssh and http
8. added forced restart every xx hours for listener as option in config / advanced
9. re-wrote queue management and threads to receive and consume messages. # of listener restarts is down significantly
significant improvemnet of performance


Karl

Posted on
Mon Mar 08, 2021 8:36 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

coming soon: unifi protect cameras integration

will have camera device states:
- events start/stop time, event length
- event type motion, smart/ door ring
- event score 0 ... xxx
then it will/ can copy the thumbnail & heat map to a dedicated directory on the indigo server

and as before
- get a snapshot
- set mic on/off
- set ir on/off/auto, ir level
- speaker (for doorbell)
etc

will have a test version out by tomorrow

and all runs in python2

should get a protect door bell this week. should also be integrated


any one wants to beta test? send me an email karlwachs at me com

Karl

Posted on
Tue Mar 09, 2021 2:03 pm
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: uniFi WiFi AP: download

I can test it (I have 4 G3 Flex), but before I need to have the whole plugin running :|

Posted on
Wed Mar 10, 2021 10:07 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

changes in V 7.38.344 @ 2021-03-10
==================
1. added support for unifi protect cameras
- get cameras from unif systems and create indigo devices
- the plugin will listen to events, create dev states for start / stop / delta time
get thumbnails jpegs and or heatmap jpegs
enable / disable / configure in camera device edit
- get snap shots through menu or actions
- set parameters of cameras in menu and actions
- added debug for protect in config
==> to enable: set camera to protect in config (just above debug)
and set repeat frequencies ...
all camears connected / adopted by protect will be cretaed in the folder unifi_created.
==> to use:
1. trigger on any change camera xx dev/states["lastEventStart"] ==> new movement at camera xx
2. by setting the path to teh thumbnail in config thumbnail of the events are copiued there as
cameraname_snapshot.jpeg

2. added option to switch off queries to infi controller when you have osx13.x and lower and unifi controller v 6.x


this is a beta version, should work, but might still have some issues

==> you need MAC OS 10.14 or higher for this to work


Karl

Posted on
Thu Mar 11, 2021 10:38 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

Code: Select all
changes in V 7.38.346 @ 2021-03-11
================== 
1. added support for unifi protect cameras (this requires mac os 10.14 or higher)
   - get cameras from unifi systems and create indigo devices
   - the plugin will listen to events, create dev states for start time / end time/ time length of event
     get thumbnails jpegs and or heatmap jpegs
        enable / disable / configure thumbnails in camera device edit
     events are also setting variables:
        Unifi_Camera_Event_Date  date string of last event; eg "2021-03-11 22:33:26"
        Unifi_Camera_with_Event  device name of camera of last event; eg "Camera_Reserve-UVC G3  Flex"
        Unifi_Camera_Event_pathtoThumbnail  path to last event thumbnail; eg "/Users/karlwachs/indigo/protect/Camera_Reserve-UVC G3  Flex_snapshot.jpeg"

   - get snap shots through menu or actions at any time, with selectable resolution
   - set parameters of cameras for IR-LED, status-LED, speaker, mic, motion trigger etc in menu and actions
   - added debug option for protect in config
   - the dev/state "smartDetect" is blank or "vehicle" or "person" if the smart detect option is enabled to detect objects for events

 ==> to enable: set camera to protect in config (just above debug)
                and set repeat frequencies ...
     all camears connected / adopted by protect will be cretaed in the folder unifi_created.

==> how to use / setup:
    1. enable protect in config (bottom, above debug section)
       select "protect"
       set repeat query for device state checks and event tracking
       sel path for thumbnails
    2. Then trigger on any change camera xx dev/states["eventStart"] ==> new movement at camera xx
       or on variable Unifi_Camera_Event_Date
       the path to the thumbnail is in dev/state "eventJpeg" and in variable "Unifi_Camera_Event_pathtoThumbnail"
       eg: "/Users/youruserid/Camera_living window G3 Flex_snapshot.jpeg"
       the thumbnail are only availabe at the end of teh event (dev/states["eventEnd"] is changed to !=-1)
    3. Get snapshots at anytime: setup action with in unifi action "CAMERAS get Snapshot" then execute  at your pleasure
       or use menu/cameras/snaphot for testing or onetime pictures

2. added option to switch off queries to infi controller when you have osx13.x and lower and unifi controller v 6.x


Karl

Posted on
Fri Mar 12, 2021 9:59 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

Changes in V 7.38.347 @ 2021-03-12
now supports protect doorbell
Code: Select all
1. smaller fixes for protect devices
   - handle expections
   - handle double devices  eg user has duplicated a device, a devices was unmanaged and managed hence the cam-id changes, ..
   - and more exceptions like these

2. now supports protect doorbell
   a door press is indicated as :
   eventType = "ring" instead of "motion"
   rest is the same eg status = "event", eb=vent start end and length are the same as for other events
   ==> as events can come in paralell there can be a motion event starts, the ring event starts and ends before the motion event ends
       then the thumbnails will be updated in short sequence and the ring info will be overwritten
       so the eventType = "ring" will only be visible for a short period of time
3. missing:
  reporting on cameras

Karl

Posted on
Sat Mar 13, 2021 12:08 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

changes in V 7.38.349 @ 2021-03-13
==================
1. added camera report menu item in Camera ....
2. fixed camId not found (in exception handling)
fixed dev states not updated continuously


Karl

Posted on
Sun Mar 14, 2021 5:23 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

Code: Select all
changes in V 7.38.351 @ 2021-03-14
================== 
1. fixed some exception handling errors
2. now handles overlapping events better eg
   doorbell has motion event and then a doorbell rung event before the motion event ends
   smart detected person or vehicle: it will cretae several events for teh same detection.
     right now the plugin will now only use the smart detect parts not the overall pic.
     still thinkout that one. there are several evnst coming within << 1 sec for teh same camera
     in general all would trigger an event, the question is which should be used for the thumbnail
     right now it will pick the vehilce / person
   it will now show motion/ring/vehicle/person in the status field instead of "event"
   The normal state is "CONNECTED"
3. handling of orphan events in the plugin that do not create and end event.
   those would keep the status at eg motion for ever or until when the next event occures
4. added some more columns to the camera report

Karl

Posted on
Fri Mar 19, 2021 12:27 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: uniFi WiFi AP: download

Code: Select all
changes in V 7.38.353@ 2021-03-19
================== 
1. changed expect script for getting dicts from AP, switch UDMpro
   better timing, should result in much fewer restarts
2. changed log level for restarts, now only every 3rd times level is warning, 6th is error
 rest is  info / debug  in plugin.log file, == less red in indigo log file

Karl

Posted on
Sun Mar 21, 2021 1:22 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V 7.38.355@ 2021-03-21
==================
1. changed expect script for getting dicts from AP, switch UDMpro
better timing, should result in much fewer restarts
changed timing of listener starts, so taht hey do not run all at the same time
2. changed log level for listener restarts, now only every 3rd time level is warning 6th is error
rest is info / debug in plugin.log file


Karl

Posted on
Tue Mar 30, 2021 3:42 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V 7.38.356@ 2021-03-30
==================
1. IMPORTTANT FIX
lastRead state was never updated
also new cameras were not added.
the bug was added when I added the door bell
dict["lastRing"]/1000 does not work if value is None (not a doorbell camera)
and the exception handling excluded anything with "None" in its text (that is the error condition when the plugin restarts)
so the error message never showed
The event tracking was ok

Karl

Posted on
Sat Apr 03, 2021 12:03 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: UniFi WiFi AP: download

changes in V7.39.361@ 2021-04-02
==================
1. fixed the site id name handling , if not default
2. removed old logging method
3. added log statement for sitename pick in plugin config
4. added message to most menu items for feedback on success/ failure of commands requested
5. and some other smaller items eg filling out default path names for images etc in menus

Karl

Posted on
Thu Apr 15, 2021 11:51 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

UniFi WiFi AP: download

changes in V7.39.364@ 2021-04-12
==================
1. changed http connect setup for hosted unifi controller type
port# = 8443
site name = default
os = std
... hosted controller behave differently from cloud controller or UDM
they use - even under v 6 - old path statements and login

2. set default properties in plugin config for new props.
this is a limitation in indigo. Indigo does not set default values of new parameters in pluginConfig.xml in new releases.

this version now uses kDefaultPluginPrefs = {...} in the python code do do it.
Not initializing properties caused errors in save plugin config eg
float of "" is not valid.

Who is online

Users browsing this forum: No registered users and 3 guests

cron