Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to mimic discontinued chronometer and exit PADD when run #431

Open
daPhipz opened this issue Feb 24, 2025 · 2 comments
Open

Comments

@daPhipz
Copy link

daPhipz commented Feb 24, 2025

I used the old chronometer as part of my MOTD when SSHing into the Pi running Pi-Hole. This gave me a quick overview about the current status and load on the Pi.

I have never heard of PADD before, and now with Pi-Hole 6 out, the old chronometer is discontinued. When installing and running PADD (v4), it seems to be running in a loop and always updating the displayed info regularly. Pressing Ctrl-C gives me my prompt back.

Is there a way to have PADD run only once, exit the program and show me my prompt again? That way, I can use it as a one-time quick look whenever I SSH into the Pi running Pi-Hole and then use my Pi in another way - as I was doing before.

@daPhipz daPhipz changed the title Provide option to mimic discontinued chronometerand exit PADD when run Provide option to mimic discontinued chronometer and exit PADD when run Feb 24, 2025
@PromoFaux
Copy link
Member

Huh - I didn't realise that was even possible with chronometer. If you're looking to display information in the MOTD, you could even use the API to grab the relevant info, without fully running PADD

@yubiuser
Copy link
Member

Currently there is no 'run-once-and-exit' option which prints everything nicely. You could use the -j option for some basic stats

./padd.sh -j
Establishing connection with FTL...
No authentication required.
{"domains_being_blocked":1003065,"dns_queries_today":32935,"ads_blocked_today":3998,"ads_percentage_today":12.1,"clients": 10}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants