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

[Feat] Camera Storage info #4

Open
Romakita opened this issue Aug 19, 2018 · 4 comments
Open

[Feat] Camera Storage info #4

Romakita opened this issue Aug 19, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request pinned

Comments

@Romakita
Copy link
Collaborator

Romakita commented Aug 19, 2018

As a developer I want a method to get all storage info available on a Camera.

Example GPPhoto2

gphoto2 --storage-info
[Storage 0]
label=NIKON D70
basedir=/store_00010001
access=2 Read-only with delete
type=4 Removable RAM
fstype=4 Camera layout (DCIM)
totalcapacity=7822432 KB
free=7452704 KB
freeimages=697

StorageInfo interface

{
  "label": "NIKON D70",
  "basedir": "/store_00010001",
  "access": "2 Read-only with delete",
  "type": "4 Removable RAM",
  "fstype": "4 Camera layout (DCIM)",
  "totalcapacity": "7822432 KB",
  "free": "7452704 KB",
   "freeimages": 697
}

Acceptance criteria

  • Add method Camera.storageInfo(): StorageInfo[]
  • Return an array of StorageInfo
@Romakita
Copy link
Collaborator Author

Romakita commented Aug 19, 2018

Related #1

@Romakita Romakita added the enhancement New feature or request label Aug 19, 2018
@Romakita
Copy link
Collaborator Author

@Nic2012
here the feature. Can you check, if the description is right ?

@Nic2012
Copy link
Contributor

Nic2012 commented Aug 19, 2018

I think so, thats fine.
Well in my earlier apps I grep the stdout from gphoto2-cli, transformed it by jq to get finally

  "storage-info": [
    {
      "label": "NIKON D70",
      "basedir": "/store_00010001",
      "access": "Read-only with delete",
      "type": "Removable RAM",
      "fstype": "Camera layout (DCIM)",
      "totalcapacity": "7822432",
      "free": "7516544",
      "freeimages": "703"
    }
  ],

There is an annoying mixture between type number and description in some fields e.g.
"4 Removable RAM", but we developer can suppress it later when we fetch data.

@Romakita Romakita assigned Romakita, goooseman and Nic2012 and unassigned goooseman Aug 20, 2018
@Romakita Romakita changed the title [FEAT] Camera Storage info [Feat] Camera Storage info Aug 20, 2018
@stale
Copy link

stale bot commented Apr 20, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 20, 2021
@Romakita Romakita pinned this issue Apr 21, 2021
@Romakita Romakita added pinned and removed wontfix This will not be worked on labels Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

3 participants