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

[Feature Request] Monthly Stats filter #532

Closed
Riza-Aslan opened this issue Sep 30, 2024 · 8 comments · Fixed by #540
Closed

[Feature Request] Monthly Stats filter #532

Riza-Aslan opened this issue Sep 30, 2024 · 8 comments · Fixed by #540

Comments

@Riza-Aslan
Copy link

I replaced my old Cost-Overview-Sheet with Wallos and it looks really awesome. Thank you for your hard work! But to fully replace my Google Sheet, I would need some more stats. A filtering option would be awesome, to choose only a certain month. For now, Wallos shows the average cost of a month (summary of all costs / 12). But what I need, is to chose for example the next month, to see how much of my budget will left over for this given month. A filter for every month of the year would be perfect. I'm using the scrape integration of Home Assistant to get some information from Wallos. With a filter, I could tell Home Assistant to scrape for example https://wallos/stats.php?month=9 to get the costs for september.

@ellite
Copy link
Owner

ellite commented Oct 3, 2024

Hi. This is a bit tricky to build. Because we only have the next payment date. And we have to calculate which subscriptions should be paid on a specific month based on the next payment date and on the frequency.
But I can build an endpoint for that, that would be specific to do this calculations.

@Riza-Aslan
Copy link
Author

I don't really know what this means, but it sounds good to me 😁

I would really appreciate that!

@ellite
Copy link
Owner

ellite commented Oct 3, 2024

Something like getmontlhycost.php?year=2024&month=11 and it would exclusively calculate and respond with the value.

@Riza-Aslan
Copy link
Author

Yes. This would be awesome!

@ellite ellite linked a pull request Oct 4, 2024 that will close this issue
Merged
@ellite
Copy link
Owner

ellite commented Oct 4, 2024

v2.27.0 released has now an endpoint for this.

Login, go to the new user profile page and copy your API Key
then you can make a request to https://whatever.domain/api/subscriptions/get_monthly_cost.php?month=12&year=2024&api_key=<your_api_key>

The response will look like:

{
  "success": true,
  "title": "December 2024",
  "monthly_cost": "28.82",
  "localized_monthly_cost": "€28.82",
  "currency_code": "EUR",
  "currency_symbol": "€",
  "notes": []
}

@cipriani14
Copy link

Any chance this info can be added to the Calendar view directly within Wallos?

@ellite
Copy link
Owner

ellite commented Nov 15, 2024

@cipriani14 it is now available on v2.37.1

@cipriani14
Copy link

Thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants