MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.85k stars 495 forks source link

Pi-hole web-interface not showing stats #187

Closed fairyfeller closed 8 years ago

fairyfeller commented 8 years ago

Made a clean fresh install of DietPi (v 108) with Pi-hole on Orange Pi 2 Mini (runs and works flawlessly). Seems like pi-hole working (i mean blocking ads), but there's some elements missing in web-interface and no stats.. screenshot 2016-02-04 15 16 38

Fourdee commented 8 years ago

@fairyfeller Looks like they moved the logfile parsing code out of index.php to another shell script: https://github.com/pi-hole/AdminLTE/blob/master/index.php#L2 https://github.com/pi-hole/pi-hole/blob/master/advanced/Scripts/chronometer.sh

Run the following:

wget https://raw.githubusercontent.com/pi-hole/pi-hole/master/advanced/Scripts/chronometer.sh -O /usr/local/bin/chronometer.sh
chmod +x /usr/local/bin/chronometer.sh

Then refresh the webpage (ctrl+f5).

Fourdee commented 8 years ago

And BC (an additional package) is now required for PiHole to work out the percentage. https://github.com/pi-hole/pi-hole/blob/master/advanced/Scripts/chronometer.sh#L55

apt-get install bc

Then refresh the webpage (ctrl+f5).

Fourdee commented 8 years ago

untitled

fairyfeller commented 8 years ago

Yep, after getting new chronometer.sh and BC - it started to show some stats.. Still missing some menus on the left side as Update, Whitelist, and Reboot

Fourdee commented 8 years ago

Resolved for v109. Will also be applied as a patch during update.

PiHole on DietPi will now be installed from a separate/stable fork of the project. https://github.com/Fourdee/pi-hole https://github.com/Fourdee/AdminLTE

This will allow us to merge/update the PiHole project in a testing environment, before being rolled out to DietPi users.

Fourdee commented 8 years ago

@fairyfeller

Yep, after getting new chronometer.sh and BC - it started to show some stats.. Still missing some menus on the left side as Update, Whitelist, and Reboot

Will take a look.

Updates for PiHole are rolled out as patches with dietpi-update.

Fourdee commented 8 years ago

@fairyfeller I cant see any references to blacklist/whitelist/reboot in the sourcecode of the webpage: https://github.com/Fourdee/AdminLTE/blob/master/index.php

Are you sure this has been implemented by Pi-Hole?

fairyfeller commented 8 years ago

@Fourdee , i expected something like this http://jacobsalmela.com/pi-hole-2-0-web-interface-dashboard/ Thought it's already released :) Then found this https://github.com/pi-hole/AdminLTE/commit/5eaf1c0392cf32c00fcbcf6b4afa1bd7bf0c9e74

Fourdee commented 8 years ago

Ah, good find. So it did exist but was removed.

As this resolves all outstanding issues, i'll close this ticket. If you experience any further issues or questions, please reopen.