C4Wiz
May 31, 2018, 3:22pm
1
add the ability to check installed versions and list current version (like running pihole -v from the command prompt)
add the ability to check for updates
DL6ER
May 31, 2018, 3:24pm
2
Do you mean simply returning if there are updates available based on comparing the installed to the current versions?
C4Wiz
May 31, 2018, 4:37pm
3
yes thats exactly what i mean
This feature has been implemented and will be available in the next release.
Check this PR:
pi-hole:FTLDNS
← pi-hole:FTLDNS_UpdateCheck
opened 05:30PM - 15 Apr 18 UTC
**By submitting this pull request, I confirm the following:**
*please fill any… appropriate checkboxes, e.g: [X]*
- [x] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md), as well as this entire template.
- [x] I have made only one major change in my proposed changes.
- [x] I have commented my proposed changes within the code.
- [x] I have tested my proposed changes, and have included unit tests where possible.
- [x] I am willing to help maintain this change if there are issues with it later.
- [x] I give this submission freely and claim no ownership.
- [x] It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1)
- [x] I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
Please make sure you [Sign Off](https://github.com/pi-hole/pi-hole/wiki/How-to-signoff-your-commits.) all commits. Pi-hole enforces the [DCO](https://github.com/pi-hole/pi-hole/wiki/Contributing-to-the-project).
---
**What does this PR aim to accomplish?:**
Addresses this question brought up in Discourse:
https://discourse.pi-hole.net/t/how-to-check-for-new-versions-without-running-the-update/8270/10
**How does this PR accomplish the above?:**
Introduce new variable to the update script (`CHECK_ONLY`) which is set by running `pihole -up --check-only`
**What documentation changes (if any) are needed to support this PR?:**
None
---
* You must follow the template instructions. Failure to do so will result in your pull request being closed.
* Please respect that Pi-hole is developed by volunteers, who can only reply in their spare time.
C4Wiz
June 6, 2018, 10:02pm
6
i am talking about checking for updates via the API not the command line!
We haven't planned on updating the PHP API to provide version information, but it is planned for the upcoming API which will power the new web interface.
C4Wiz
June 7, 2018, 1:41am
8
is there a ETA on the new UI?
No official ETA, but I hope to get it at least in a beta state by the end of the year. Development is coming along, but we would like to have it have all or most of the features of the current web interface before fully releasing it.
You can see the new web interface here: GitHub - pi-hole/web: Pi-hole Web Interface for viewing stats and managing your Pi-hole
And view a demo: http://web.pi-hole.io/
1 Like
DL6ER
June 7, 2018, 5:54am
10
I actually coded this to about 90% before I got distracted. I'll see if I can finish the code and test it this week but this isn't a promise.
C4Wiz
June 7, 2018, 7:28pm
12
@DL6ER
Works great! i have implemented it into my bitbar plugin
1 Like
RamSet
Split this topic
June 20, 2018, 7:35pm
13
12 posts were split to a new topic: API parsing via Python (bitbar)