Commit Graph

52 Commits

Author SHA1 Message Date
XhmikosR
e805d0a75c api_FTL: Remove duplicate semicolon
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-18 11:14:35 +03:00
DL6ER
300d8d4b1f UTF-8 encode all strings read from the FTL interface before JSON-encoding them
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-11-02 10:30:07 +01:00
Mark Drobnak
51cc3661ff Merge pull request #830 from pi-hole/new/cacheinfo
Add DNS cache information to Settings page
2018-08-30 16:07:21 -04:00
DL6ER
053d28980f Use new variable name for new array in api_FTL.php
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-25 14:14:00 +02:00
DL6ER
c2dbefecc2 Add new api.php?getCacheInfo callback
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-16 14:29:49 +02:00
DL6ER
6fb2dab5bc Extend query log and API to be able to handle requests limited to specific forward destinations and query types
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-15 14:36:37 +02:00
Mark Drobnak
92db9400de Merge pull request #765 from pi-hole/tweak/client-names
Use new `client-names` FTL response format
2018-06-07 21:40:19 -04:00
Mcat12
357da1d15a Expose both name and IP of client
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-06 18:27:55 -04:00
Mark Drobnak
117aaa071f Remove overTimeDataForwards
The FTL API has removed the underlying command and data.

Signed-off-by: Mark Drobnak <newtoncat12@yahoo.com>
2018-06-03 23:11:21 -04:00
Mcat12
6f93f89e59 Use new client-names FTL response format
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-06-03 16:13:59 -04:00
DL6ER
b2743ed245 Fix a minor bug with api.php?getClientNames when hostnames are present more than once on the local network (maybe once IPv6, once IPv4)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-28 17:42:11 +02:00
DL6ER
5a473ecbde Add "api.php?topClientsBlocked"
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-10 15:05:46 +02:00
Walter
2c2a091b03 Changes concerning the date the gravity list was last changed. Used in the webinterface dashboard as a tooltip, and now also available in the API (both PHP and FTL). Function was moved to new file /scripts/pi-hole/php/gravity.php to keep things neat and to avoid duplicate code. 2018-04-23 20:32:38 +02:00
DL6ER
de1674e5ae Don't use resolveHostname in api.php?getAllQueries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-15 11:39:42 +02:00
DL6ER
a5635e7d3f Fix "FastCGI-stderr: PHP Notice: Undefined offset: 3" error
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-15 11:28:46 +02:00
DL6ER
cd6684a37c Remove resolveHostname() in client-names
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-15 11:26:15 +02:00
DL6ER
a1824a45d4 Improve way PHP connects to FTL
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-15 10:56:52 +02:00
DL6ER
8fffc4e89a Use host names returned by FTLDNS instead of trying to obtain them in PHP
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-11 18:31:15 +02:00
DL6ER
71a7c84cba Make second argument of resolveHostname() optional
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-04 12:32:55 +02:00
DL6ER
5e8f4b2584 Merge branch 'devel' into FTLDNS 2018-04-01 16:46:35 +02:00
DL6ER
1ec38e3a79 Don't want IPs in Query Log output
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-05 16:35:42 +01:00
DL6ER
02f14ceb05 Add name resolution capabilites (with caching) for web interface
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-02-25 09:44:01 +01:00
DL6ER
1db322b963 Show most recent 100 queries instead of queries within most recent 10 minutes
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-02-10 14:10:55 +01:00
Adam Warner
1d6875e632 Merge pull request #594 from pi-hole/tweak/API_stats_formating
Allow "domains_being_blocked" and "status" to contains non-numeric values
2017-10-31 19:39:54 +00:00
DL6ER
fd766dfdbb Merge pull request #593 from pi-hole/fix/non-local-FTL
Explicitly allow non-local FTL installations
2017-10-23 08:47:02 +02:00
DL6ER
2ade58322d Use exception for number formating in API only if the value returned by FTL is non-numeric (e.g. "N/A")
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-06 17:51:19 +02:00
DL6ER
3df3c5b29c Allow "domains_being_blocked" and "status" to contains something non-numeric
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-05 18:14:30 +02:00
DL6ER
fcf2eb663f Specify one common place for defining the IP of a non-local FTL instance. Fixes #589
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-02 12:19:24 +02:00
DL6ER
076700fc92 Add "Clients (over time)" graph (needs FTL on branch "new/clientsovertime") 2017-09-22 21:11:57 +02:00
DL6ER
874077107e Have API return floats instead of ints for the values that are percentages computed by FTL 2017-09-20 22:09:11 +02:00
DL6ER
93732f12b1 Re-add doughnut charts (#544)
* Re-add doughnut charts as this has been requested by some users

* Smaller optimizations

* Don't use rotation animation for further updates

* Apply attribute to correct graph

* Ask for unsorted list of forward destinations

* :codacy:

* Move setting to correct graph
2017-07-08 20:18:26 +02:00
DL6ER
557ebbbc7c Merge pull request #479 from pi-hole/new/audit-log
Audit log
2017-06-27 10:53:31 +02:00
DL6ER
915ec26547 Define $over_time as array. Fixes #501 2017-05-12 18:11:55 +02:00
DL6ER
f46a1c166f percentage should be a float instead of an integer 2017-05-10 21:02:02 +02:00
DL6ER
349faac048 Implemented also actions for audit log 2017-04-22 16:10:18 +02:00
DL6ER
b2a8ea7fee Add first version of Audit log 2017-04-22 01:44:26 +02:00
DL6ER
29c6c07af6 Add Query Types over Time 2017-03-28 14:51:19 +02:00
DL6ER
3ff43542f9 Require auth for API command overTimeDataForwards 2017-03-24 23:49:49 +01:00
DL6ER
93698f0c00 Fix axis to [0,1] and use unsorted list of forward destinations for the labels 2017-03-13 15:32:15 +01:00
DL6ER
46c451b3d1 New Forwarded over Time graph 2017-03-13 12:33:19 +01:00
DL6ER
fb8f0a081e Move API functions that are neither FTL nor PHP specific (enable, disable) to api.php 2017-03-01 14:05:38 +01:00
DL6ER
43b60829dc Copy disable coutdown timer and new (simplified) API token authentification from PHP API to FTL API 2017-02-28 14:49:43 +01:00
DL6ER
aacc215394 Some simplifications + center 10min interval data in the middle instead of the beginning of the corresponding interval 2017-02-27 17:20:12 +01:00
DL6ER
9471594bdf Move tailLog function into own file 2017-02-23 15:12:23 +01:00
DL6ER
874ec8c9db Implemented tailLog into FTL API 2017-02-23 15:03:53 +01:00
DL6ER
a6a4c944b0 Several optimizations to the new FTL API 2017-02-23 14:20:26 +01:00
DL6ER
bb9c669109 Adapt API versions 2017-02-23 13:17:45 +01:00
DL6ER
e3d791abb6 Add type / version 2017-02-20 12:45:56 +01:00
DL6ER
c3047f76c9 Add api.php?version 2017-02-20 11:33:24 +01:00
DL6ER
dc61eb82d4 Show summary if no arguments are passed to API 2017-02-19 19:10:49 +01:00