Unifi wired client activity5/29/2023 Return self.scan_once(s, idx=_w(s, idx). Return complexjson.loads(self.text, **kwargs)įile "/usr/local/lib/python3.8/site-packages/simplejson/_init_.py", line 525, in loadsįile "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decodeįile "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode Return client._execute(url, self._method, rest_dict, need_login=self._need_login)įile "/usr/local/lib/python3.8/site-packages/unificontrol/unifi.py", line 110, in _executeįile "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json Will this automaticall download the library? u use this library if i well understand from unificontrol import UnifiClientĪny helo here? Getting this error: bash-5.0# python3 unifi.pyįile "/usr/local/lib/python3.8/site-packages/unificontrol/metaprogram.py", line 125, in wrapperįile "/usr/local/lib/python3.8/site-packages/unificontrol/metaprogram.py", line 103, in _call_ It is an entities card, mostly based on the multiple-entity-row and the mini-graph-card: type: entities Of course the unificontrol module has many more possible sensors you can extract, so be sure to check the docs and big thanks to the Sure. Uptime = str(days)+'d '+str(hours)+'h '+str(minutes)+'m'įor i in :įinal = json.dumps( With controller outside the LAN and a simple setup at a client site 2 Unifi access points both wired to a verizon router. # supposed that you use both 2.4 and 5 ghz frequencies there should be wifi0 and wifi1, else edit accordingly Mac = '' # the mac address of your AP deviceĬlient = UnifiClient(host=host,username=username,password=password,site=site,port=port) # fill in your unifi controller credentials # I wrote a python script that pulls some information using the above mentioned module: from unificontrol import UnifiClient Note that software switches are only available if your FortiGate is in Interface mode. This is a convenient configuration for users. Netflow or sFlow is what you want for that job. Combining WiFi and wired networks with a software switch A WiFi network can be combined with a wired LAN so that WiFi and wired clients are on the same subnet. Due to the way that the Unifi controller communicates with the managed devices (TR-069-like protocol), it's a great management platform that is utterly rubbish at real-time updates. I recently found out this great python module with which you can pretty much access any info on your AP. The default polling period is every 2 minutes and yes, it is an instantaneous snapshot of the traffic at the time. I’m not really sure why the controller is behaving that way. So if I blocked wired clients then it would not track my phone. I wanted to have a Unifi dashboard, with more info such as CPU, RAM, number of connected clients etc. For example, yes, you can only track wireless clients but for some reason my Unifi controller is seeing my wifi connected cell phone as a wired client connected to my Unifi Switch. The default Unifi AP integration is great for the presence detection part of your network.
0 Comments
Leave a Reply. |