Skip to content

Commit fbade73

Browse files
committed
UniFi API browser 2.0.9
- executed composer update to update packages - upgraded PHP API client to version 1.1.52 - minor changes - added max. tx/rx-rates attributes to fetch for the gateway stats
1 parent bb6fa34 commit fbade73

40 files changed

+327
-270
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ You will find examples and detailed instructions there.
1111
Please keep the following in mind:
1212

1313
- the API browser tool doesn't support all available data collections/API endpoints, see the list below of those that are currently supported
14-
- currently, versions 4.x.x and 5.x.x of the UniFi Controller software are supported (version 5.12.35 has been confirmed to work) as well as UniFi OS-based controllers (version 5.12.59 has been confirmed to work)
15-
- when accessing UniFi OS-based controllers (e.g. UDM PRO) through this tool, please read the remarks below regarding UniFi OS support
14+
- currently, versions 4.x.x and 5.x.x of the UniFi Controller software are supported (version 5.12.66 has been confirmed to work) as well as UbiOS-based controllers (version 5.12.59 has been confirmed to work)
15+
- when accessing UbiOS-based controllers (e.g. UDM PRO) through this tool, please read the remarks below regarding UbiOS support
1616
- there is still work to be done to add/improve functionality and usability of this tool so suggestions/comments are welcome. Please use the GitHub [issue](https://github.com/Art-of-WiFi/UniFi-API-browser/issues) list or the Ubiquiti Community forums (https://community.ubnt.com/t5/UniFi-Wireless/UniFi-API-browser-tool-released/m-p/1392651) to share your ideas/questions.
1717
- please read the Security Notice below before installing this tool!
1818

@@ -130,9 +130,9 @@ Alternatively you may choose to download the zip file and unzip it in your direc
130130
- after following these steps, you can open the tool in your browser (assuming you installed it in the root folder of your web server as suggested above) by going to this url: `http(s)://<server IP address>/UniFi-API-browser/`
131131

132132

133-
### UniFi OS support
133+
### UbiOS support
134134

135-
Support for UniFi OS-based controllers (UniFi Dream Machine Pro) has been added with version 2.0.7. When adding the details for a UniFi OS device to the `config/config.php` file, please make sure not to add a port suffix or trailing slashes to the URL.
135+
Support for UbiOS-based controllers (UniFi Dream Machine Pro) has been added with version 2.0.7. When adding the details for a UbiOS device to the `config/config.php` file, please make sure not to add a port suffix or trailing slashes to the URL.
136136

137137

138138
### Extending the dropdown menu
@@ -148,7 +148,7 @@ $collections = array_merge($collections, [
148148
'options' => [
149149
[
150150
'type' => 'collection', // either collection or divider
151-
'label' => 'hourly site stats past 24 hours', // string that is dosplayed in the dropdown menu
151+
'label' => 'hourly site stats past 24 hours', // string that is displayed in the dropdown menu
152152
'method' => 'stat_hourly_site', // the method/function in the API client class that is called
153153
'params' => [(time() - (24 * 60 *60)) * 1000, time() * 1000], // an array containing the parameters that are passed to the method/function
154154
'key' => 'custom_0' // unique key for this menu option, may be required for future versions

ajax/fetch_about_modal_metrics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@
5454
* output the results with correct JSON formatting
5555
*/
5656
header('Content-Type: application/json; charset=utf-8');
57-
echo (json_encode($results));
57+
echo (json_encode($results));

ajax/fetch_collection.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
'lan-tx_dropped',
5050
'wan-tx_bytes',
5151
'wan-rx_bytes',
52+
'max_rx_bytes-r',
53+
'max_tx_bytes-r',
5254
'wan2-tx_bytes',
5355
'wan2-rx_bytes',
5456
'latency_min',
@@ -196,8 +198,8 @@
196198
$load_perc = (($time_after_load - $time_after_login) / $time_total) * 100;
197199
$remain_perc = 100 - $login_perc - $load_perc;
198200

199-
$results['timings']['login'] = $time_after_login;
200-
$results['timings']['load'] = $time_after_load;
201+
$results['timings']['login'] = $time_after_login;
202+
$results['timings']['load'] = $time_after_load;
201203
$results['timings']['login_perc'] = $login_perc;
202204
$results['timings']['load_perc'] = $load_perc;
203205
}

ajax/fetch_sites.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@
141141
header('Content-Type: application/json; charset=utf-8');
142142
echo (json_encode($results));
143143

144-
$_SESSION['memory_used'] = round(memory_get_peak_usage(false) / 1024 / 1024, 2) . 'M';
144+
$_SESSION['memory_used'] = round(memory_get_peak_usage(false) / 1024 / 1024, 2) . 'M';

ajax/show_api_debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@
7777
}
7878
} else {
7979
echo 'ignore';
80-
}
80+
}

ajax/update_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@
5656
* output the results with correct JSON formatting
5757
*/
5858
header('Content-Type: application/json; charset=utf-8');
59-
echo (json_encode($results));
59+
echo (json_encode($results));

ajax/update_theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@
5353
* output the results with correct JSON formatting
5454
*/
5555
header('Content-Type: application/json; charset=utf-8');
56-
echo (json_encode($results));
56+
echo (json_encode($results));

collections.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,4 +469,4 @@
469469
],
470470
],
471471
],
472-
];
472+
];

common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* with this package in the file LICENSE.md
88
*
99
*/
10-
define('TOOL_VERSION', '2.0.8');
10+
define('TOOL_VERSION', '2.0.9');
1111

1212
/**
1313
* gather some basic information for the About modal

composer.lock

Lines changed: 17 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)