DL6ER
8235b18854
Remove duplicated line
7 years ago
DL6ER
10bc8414b9
Move FTL querying before clearing the terminal to avoid flashing on Pi B+
7 years ago
DL6ER
4e25e0dc5c
Add missing } to JSON output
7 years ago
DL6ER
b1a9793d94
Let Chronometer query all data from FTL (no need for having the API). Fixes #1305
7 years ago
DL6ER
f1b8abf503
Merge pull request #1146 from pi-hole/tweak/chronometer_recentlyblocked
...
[FTL] Show most recently blocked domain in chronometer
7 years ago
Jacob Salmela
7a1a2dec67
update license to EUPL on core files
7 years ago
Mcat12
f8944177a0
Fix chronometer interpreting summaryRaw
8 years ago
Mcat12
58f3ff69d8
Align comment with referenced line
8 years ago
DL6ER
72d8d10e64
Show most recently blocked domain in chronometer (using FTL). Fixes #717
8 years ago
DL6ER
845d8c0e63
Ensure LC_NUMERIC=C is set when evaluating floating point number (non-English systems might expect "," as decimal separator
8 years ago
Promofaux
b4c32e47c6
Missed one!
8 years ago
Promofaux
248d8680f7
actual codacy complaints
8 years ago
Promofaux
1bda965a7c
Codacy complaints
8 years ago
Promofaux
2ee305769d
Replace all calculations with values read directly web admin API. Parse JSON using native unix tools, no additional requirements needed.
8 years ago
DL6ER
a4f58b0a22
Look for "query[" instead of "query" to avoid false-positives, like listed below
...
root@raspberrypi:/etc/.pihole# grep 'query' /var/log/pihole.log | grep -v 'query\['
Dec 22 16:29:50 dnsmasq[30801]: forwarded code.jquery.com to 208.67.222.222
Dec 22 16:29:50 dnsmasq[30801]: reply code.jquery.com is <CNAME>
Dec 22 16:29:50 dnsmasq[30801]: reply code.jquery.netdna-cdn.com is 94.31.29.54
Dec 22 16:29:50 dnsmasq[30801]: reply code.jquery.netdna-cdn.com is 23.111.11.3
Dec 22 16:29:50 dnsmasq[30801]: reply code.jquery.netdna-cdn.com is 198.232.125.113
8 years ago
DL6ER
bcf8139708
Removed cat where we don't need it
8 years ago
DL6ER
9b0390c9da
Space to Tab
8 years ago
DL6ER
e88f58c34e
Remove grpping for today's log entries, because we flush the log every day
8 years ago
Dan Schaper
925c80edd4
Catch more 1's
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Jacob Salmela
ca56ca5bd8
promo-tweak
...
Better logic introduced by @PromoFaux
8 years ago
Jacob Salmela
a0f0dff88e
replace hardcoded interface with var
...
setupVars.conf is already sourced, so we just need to replace the
hardcoded value with the variable name.
8 years ago
Adam Warner
4300759287
Fix logic. If both v6 and v4 divide by two, else dont.
8 years ago
Promofaux
d7d6d6f991
Update to use new Var name
8 years ago
Jacob Salmela
f8e9726922
source setupVars and check for the correct variable
8 years ago
Jacob Salmela
884363bd05
remove ipv6 check since it's already in setupVars
8 years ago
Marcus Hildum
6e94bf5b6d
Consistency
...
You know the drill
8 years ago
Marcus Hildum
0efda04920
Use heredocs instead of multiple calls to echo
...
There were a lot of places (like in help functions) that used multiple
echo calls instead of heredocs. Personal opinion but this seems cleaner.
8 years ago
Marcus Hildum
28eeaf201b
Standardize function declaration
...
There were no fewer than three styles of function declaration going
on in these files, so I attempted to standardize them to the typical
myfucn() {
}
style.
8 years ago
Promofaux
090fbd04af
Remove ${SUDO} usages and root checks from scripts called by `pihole` command as they should not be called directly.
8 years ago
Promofaux
b3e7619048
curly brackets all the variables!
8 years ago
Carter Maxwell
c0e1772e21
Replace toilet with echo
8 years ago
Promofaux
05e0003555
Fixes issue #453
8 years ago
nate
1a2046a7eb
Added uninstall option to `pihole` command. Minor fixes
8 years ago
nate
fee55fa642
Added gravity.sh to the list of options
8 years ago
nate
76ea1962be
Controller script, pihole.sh added
...
Syntax changes for user output to be consistent
8 years ago
nate
8ef4c12f97
Merge branch 'ScriptCleanup'
...
Conflicts:
README.md
advanced/Scripts/blacklist.sh
advanced/Scripts/whitelist.sh
automated install/basic-install.sh
gravity.sh
8 years ago
nate
0b9e78df2c
Cleaned code and added prompt for purge on uninstall
8 years ago
Morlok8k
d13ae0610e
fix for older versions of uptime, on development branch.
8 years ago
Carter Maxwell
a6877e7c13
remove trailing whitespace chronometer.sh
8 years ago
Hippyjake
21c688a8a8
add uptime -p to chrono script
8 years ago
Promofaux
4c24186911
Fixes divide by zero error.
8 years ago
Mcat12
48f9a61ff0
Updated License
9 years ago
Promofaux
af982a02af
Move call to CheckIPv6 function into CalcBlockedDomains, rather than relying on remembering to call it before you call CalcBlockedDomains.
9 years ago
Adam Warner
f665899116
Update chronometer.sh
...
weirdness
9 years ago
Adam Warner
de464e17cc
Update chronometer.sh
...
Note to self, Find&Replace>Replace All is a bad idea.
9 years ago
Adam Warner
0eed56380d
Update chronometer.sh
...
What, me? Reference the wrong file?
9 years ago
Promofaux
487c26db44
Major overhaul. Added -j option to output stats as JSON formatted string. If run with no option, then chronometer runs as normal. Fixed calculations to match those on the web dashboard.
9 years ago
Dan Schaper
cb91b8f5fa
Add copyright headers
9 years ago
Fourdee
52ef76d717
missed a few more /etc/host changes
9 years ago
Dan
024395b73b
Update chronometer.sh
...
Missed a change todaysAdsEliminated to /\/etc\/pihole\/gravity.list/
9 years ago