Art-of-WiFi / UniFi-API-browser

Tool to browse data exposed by Ubiquiti's UniFi Controller API
MIT License
1.1k stars 150 forks source link

24hr usage #101

Closed hphd70 closed 1 year ago

hphd70 commented 1 year ago

is there a way to get the 24hr usage of a client as it is visible under "client devices" of the unifi controller webinterface? thanks a lot for this great tool!

malle-pietje commented 1 year ago

Yes, use this method: https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php#L722

malle-pietje commented 1 year ago

Or use one of the stat_*_user() methods depending on your requirements.