turtle/stockpile
1
11
Fork
You've already forked stockpile
8

Automatic usage interval for items #21

Open
opened 2023年11月27日 18:57:00 +01:00 by bragefuglseth · 2 comments
Contributor
Copy link

For some items (e.g. medication), it would be nice to set an interval that regularly withdraws from the amount of that item. This doesn't require any background running at all, here's how it could work:

  • For each item with this behavior, we store:
    • Its usage interval
    • The last time this interval passed
    • How much to use each time the interval passes
  • When the app is opened, it uses this information to calculate how much of each item should be removed.
  • The "last time used" value is set to the last time the interval passed (which may not be the last time the app was open!)
  • If an interval passes while Stockpile is open, it automatically handles the withdrawal.
For some items (e.g. medication), it would be nice to set an interval that regularly withdraws from the amount of that item. This doesn't require any background running at all, here's how it could work: - For each item with this behavior, we store: - Its usage interval - The last time this interval passed - How much to use each time the interval passes - When the app is opened, it uses this information to calculate how much of each item should be removed. - The "last time used" value is set to the last time the interval passed (which may not be the last time the app was open!) - If an interval passes while Stockpile is open, it automatically handles the withdrawal.

I have been wanting this feature for a long time! I think it would be a good idea.

  • For each item with this behavior, we store:
    • ...
    • How much to use each time the interval passes

I don't think the last one is needed, since this can be combined under the usage amount setting which already exists :)

But other than that, I think this concept is good. It might take a while to implement in code, especially the usage intervals, but I think this would be a great addition!

I have been wanting this feature for a long time! I think it would be a good idea. > - For each item with this behavior, we store: > - ... > - How much to use each time the interval passes I don't think the last one is needed, since this can be combined under the usage amount setting which already exists :) But other than that, I think this concept is good. It might take a while to implement in code, especially the usage intervals, but I think this would be a great addition!
turtle added this to the 0.5.0 milestone 2023年11月27日 22:56:39 +01:00

Work is being made on this in #43 :)

Work is being made on this in #43 :)
Sign in to join this conversation.
No Branch/Tag specified
main
usage_interval
adw_navigation_split_view
0.5.1
0.5.0
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
turtle/stockpile#21
Reference in a new issue
turtle/stockpile
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?