photo-stats

statistics processor for the terminal
git clone https://git.clttr.info/photo-stats.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit daad70ee97f8a7f1a65236e389d24231ff443099
parent e4cb3843f21e958adca73f52a760e83ed110e1be
Author: René Wagner <rwa@clttr.info>
Date:   Wed, 12 Apr 2023 09:53:19 +0200

final adjustments for 1.2

Diffstat:
DPKGBUILD | 19-------------------
MREADME.md | 1-
Mphosta-examples.7.scd | 11++++++++---
3 files changed, 8 insertions(+), 23 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD @@ -1,19 +0,0 @@ -# Maintainer: René Wagner < rwagner at rw-net dot de > - -pkgname=photo-stats -pkgver=1.1 -pkgrel=1 -pkgdesc='photo stats for your terminal' -arch=('x86_64' 'i686' 'aarch64') -depends=('perl-image-exiftool' 'sqlite3' 'perl-text-simpletable-autowidth' 'perl-file-homedir' 'perl-dbd-sqlite') -license=('BSD') -url='https://src.clttr.info/rwa/photo-stats' -provides=('photo-stats') -options=(!strip) -source=('phosta') -sha256sums=('SKIP') - -package() { - mkdir -p "${pkgdir}/usr/bin" - install -Dm755 phosta "${pkgdir}/usr/bin/" -} diff --git a/README.md b/README.md @@ -104,7 +104,6 @@ To run the script, open a shell and invoke `phosta`. Additionally the following perl modules need to be installed: -- Cwd - File::HomeDir - File::Spec::Functions - Perl::DBD::SQLite diff --git a/phosta-examples.7.scd b/phosta-examples.7.scd @@ -15,17 +15,22 @@ phosta -E jpg,jpeg,tiff -D ~/Documents/stats.db -p ~/Pictures ``` ## QUERY DATA -- show number of pictures taken with a specific camera body in 2019 grouped by month, sorted by newest month first +- show image count by _model_ in 2019 grouped by month, sorted by newest month first ``` phosta -s model -g month -t 20190101-20121231 -o month,count ``` -- show top 10 lenses used the most +- show image count by _model_ for _make_ FUJIFILM grouped by year, ordered by year & count descending +``` +phosta -s model -f maker=FUJIFILM -g year -o year,count +``` + +- show top 10 image count by _lens_ used the most ``` phosta -n 10 -s lens -o count ``` -- show camera models where the maker field does not contain the term "ricoh" +- show image count by camera models where the _maker_ field does not contain the term "ricoh" ``` phosta -s model -f maker!=ricoh ```