sterrenb / flutterhole

A third party Android application for the Pi-Hole® dashboard.
https://play.google.com/store/apps/details?id=sterrenburg.github.flutterhole
MIT License
400 stars 27 forks source link

Display Pi-hole statistics (Temp, Load, Memory usage) #91

Closed ricktendo closed 4 years ago

ricktendo commented 4 years ago

Would it be possible to add the ability to display the Pihole statistics (Temp, Load, Memory usage) in the app

image

sterrenb commented 4 years ago

Hello @ricktendo 👋 - Thanks for opening an issue!

Great idea. Would fit in nicely with the existing status icon.

For now I believe the API does not expose this data. I tried looking for clues in the network manager on http://pi.hole/admin/ to no avail.

martijnb92 commented 4 years ago

That data is indeed not available in the API, however it should be pretty easy to extract it from the HTML with some regular expressions. For example the temperature: /<a id="temperature">.*?p:(.*?)</ Load: /Detected (\d{1,2}) c.*?Load:(.*?)</

sterrenb commented 4 years ago

That data is indeed not available in the API, however it should be pretty easy to extract it from the HTML with some regular expressions. For example the temperature: /<a id="temperature">.*?p:(.*?)</ Load: /Detected (\d{1,2}) c.*?Load:(.*?)</

Great idea, I hadn't thought of that. Will try it out!

martijnb92 commented 4 years ago

Mooi gedaan, ziet er goed uit.