Closed rolandbowl closed 5 years ago
I've been woefully bad about updating this project and need to work on the few bugs that have been reported. I think you'll currently run into #3 if you attempt this right now, but I think you should be able to make this work if you set up an SSH key between your pi & your pfsense box then update the sample ~/.bashrc script mentioned in the quick start section of the README to something like this:
if [ "$TERM" == "linux" ] ; then
while :
do
ssh <host or ip of pfsense box> "/home/pi/git/phad/phad -s 10"
done
fi
That would make your pi ssh into the pfsense box & run pad, causing the output to display on the pi's display. phad is simply generating ANSI text that the pi displays. So ssh'ing into the remote box running pi-hole and invoking phad should work just as if it was running locally on your pi.
Thanks I'll try this tonight. If I wanted to manipulate and add more 'variables' that would pull more data in addition to what is being blocked, ie interface data, clients, openvpn users, Suricata alerts, blocks, package updates.... how or where would i look further for that? Have you though about interfacing with Zabbix at all? (I'm new to Python so i have very little knowledge).
How can I manipulate this to pull and display data from another program like Zabbix instead of pi-hole? I am not running pi-hole anymore since upgrading to pfsense.
Well at the highest level this is just a Python script that reads data from a known source then renders the results using the Jinja2 template library, which is a well known templating language for Python.
You would basically want to replace the function query_pihole
and the various get_
functions it calls to gather data from Zabbix instead of the pi-hole API, then pass those results to template.render
, and edit the jinja2 templates to display your Zabbix data instead of the pi-hole data.
As I don't run pfsense I have no plans on trying to try to support this myself, so I'm going to close this feature request. However if anybody does wish to submit a PR for this sort of thing I'll gladly take a look.
Is there a fork or a way to have this fantastic display of data on my former pi-hole with pitft display, but ssh into my pfsense box and pull information and monitor data to this ? I use to use pi-hole, but then moved to pfsense and it accomplishes what I want it to do and more, but i want to use my pi as a vnc server and at the same time, allow it to display stats of my network in the same format & scheme as PADD or more specifically PHAD as I like the customization and additional detail/cycling screens. Thanks in advance.