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

Use as an alternative to Magic Home Inventory? #100

Open
jose1711 opened this issue Jul 15, 2022 · 6 comments
Open

Use as an alternative to Magic Home Inventory? #100

jose1711 opened this issue Jul 15, 2022 · 6 comments
Labels
question Further information is requested

Comments

@jose1711
Copy link

I am currently using Magic Home Inventory (https://play.google.com/store/apps/details?id=net.twisterrob.inventory&gl=US) on Android smartphone to keep track of items and locations at my apartment but the application does not integrate a shared access/multiple users approach so I am looking for something else.

One thing MHI is strong at is that you can have an item encapsulated in another item at will (https://www.twisterrob.net/project/inventory/#model). There is no concept of locations and this design works pretty well for my use case. As a consequence you can have things like CR2032 => Rear bicycle light => Bicycle => Garage.

I was trying to achieve the same with PyInventory but failed. Is there any chance to modify it in a way that would be very close to this design or I should look elsewhere?

Thank you.

@jedie
Copy link
Owner

jedie commented Jul 15, 2022

This is possible: a item can have a parent item.
So you can create these items: CR2032 => Rear bicycle light => Bicycle.

And a location Garage.
Then "put" the Bicycle into the Garage by set the location on the Bicycle item to the Garage location 😉

@jose1711
Copy link
Author

Thank you @jedie I gave it a shot but PyInventory does not give me the option to set a second level item as a parent. It only shows top-level item in the parent drop-down, that means I am able to do:

Rear bicycle light => Bicycle
CR2032 => Bicycle

Am I doing something wrong?

@jedie
Copy link
Owner

jedie commented Jul 16, 2022

Yes, every item can have one one parent. But you should made a chain!
Maybe this is a other concept than magic home.

The CR2032 battery has as parent the light and this has as parent the Bicycle and this has no parent, but the location garage.

@jose1711
Copy link
Author

Exactly, I am trying to make a chain. Will try to add some pictures. This is the current situation:

obrázok

Now I want battery to become a "child" of Rear light. So I open it:
obrázok

Now I expand parent dropdown:
obrázok

And here is the problem - bicycle light cannot be selected (its entry is missing).

@jedie
Copy link
Owner

jedie commented Jul 19, 2022

Ah, sorry. You are right. I filter the parent list and exclude all "sub" entities. So a chain can't be made. Sorry, for concussion.

@jedie
Copy link
Owner

jedie commented Jul 21, 2022

I'm work on a solution, looks like:

grafik

grafik

here: #106

@jedie jedie added the question Further information is requested label Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants