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

Expose basic transaction counts through API #8629

Open
3 tasks done
GensHaze opened this issue Mar 5, 2024 · 3 comments
Open
3 tasks done

Expose basic transaction counts through API #8629

GensHaze opened this issue Mar 5, 2024 · 3 comments
Labels
feature Requests for new stuff.

Comments

@GensHaze
Copy link

GensHaze commented Mar 5, 2024

Support guidelines

Description

Hello,

I love Firefly. I have integrated it into my daily life. I was hoping to implement it into my Homepage, using a custom API widget. I've looked through the v1 and v2 endpoints, though I don't think I've spotted any existing feature similar to this.

Solution

I'd love it if Firefly could expose just basic counts of what you've transacted during any given period of time. One single API endpoint that would give you (perhaps based on any given parameters) - current week's transactions, current month transactions, year to date, any specified year... total amount of transactions recorded. Perhaps just something like... v2/transactions/counts?

My hope is to set my homepage widget like
FireFlyIII
[Transactions Recorded This Week] [Transactions Recorded This Month] [Transactions Recorded This Year] [Transactions Recorded All Time]

Similar to how I have set it up with Maloja:
image

What are alternatives?

No response

Additional context

I am hoping this is a simple addition, that would actually have tangible benefit. Whenever I see a '0' any given day, I think it would be a good reminder that I need to start recording any transactions I may have in mybacklog.

Thank you!

@JC5 JC5 added the feature Requests for new stuff. label Mar 5, 2024
@JC5 JC5 added this to the firefly-iii-v9.0.0 milestone Mar 5, 2024
Copy link
Contributor

github-actions bot commented Mar 5, 2024

Hi there!

This is an automatic reply. Share and enjoy

This issue has been marked as a feature request. The requested (new) feature will become a part of Firefly III or the data importer in due course.

If you come across this issue, please be aware there is NO need to reply with "+1" or "me too" or "I need this too" or whatever. Such comments are not helpful, and do not influence the roadmap. Your comment may be 💀 deleted. You can subscribe to this issue to get updates.

Thank you for your contributions.

@JC5
Copy link
Member

JC5 commented Mar 5, 2024

In the mean time, every API endpoint exposes a "total" that you can use.

@GensHaze
Copy link
Author

GensHaze commented Mar 5, 2024

Thank you; using this total value, I was able to come up with a, although relatively jank, working solution. I created a bash script to poll the API's (returning a single transaction to reduce load), setting the needed date range parameters through the script itself, and save these values to a JSON that I expose through a bare nginx Docker container (that I use for other things too). I'll be running a cronjob for checking every few minutes, and that's that. It won't be real time, but good enough for now!

Thanks again for your hard work.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Requests for new stuff.
Projects
Status: To do
Development

No branches or pull requests

2 participants