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] Sum Option for Subscriptions #548

Open
7eventy7 opened this issue Oct 4, 2024 · 4 comments
Open

[FEATURE REQUEST] Sum Option for Subscriptions #548

7eventy7 opened this issue Oct 4, 2024 · 4 comments

Comments

@7eventy7
Copy link

7eventy7 commented Oct 4, 2024

Overview:
This feature allows users to calculate the total cost of subscriptions based on a selected time period (monthly, yearly, etc.).

Key Features:

  1. Dynamic Sum Calculation:

    • Users can choose a time period (e.g., monthly, yearly), and the system will sum up all subscriptions from the only the selected categories accordingly.
    • Example: A yearly subscription will show its monthly cost when summed with other monthly subscriptions.
  2. Customizable Time Period:

    • Users can switch between different periods (monthly, yearly).
    • The system will convert all subscription costs to the chosen period (e.g., multiplying monthly subscriptions by 12 for yearly totals).
  3. User Interface:

    • Sum total is displayed clearly with a label (e.g., "Total xxx Cost"), and users can easily switch the summing period.

Use Case:

  • Users can see the total yearly cost of all subscriptions, even if some are billed monthly, by selecting "Yearly" in the Sum menu or visa versa.
@Riza-Aslan
Copy link

You can see the yearly costs already on the stats-page. The monthly costs are an average on this page. This is why I asked for this: #532

You can use the API to get the costs for every month of the year. I use it with the Home Assistant RESTsensor. This way I can manage my subscriptions with wallos and use the data on my dashboard (and do some calculations if i want). Maybe this helps you too.

@ellite
Copy link
Owner

ellite commented Oct 5, 2024

As I see it I could add another dropdown to the dashboard with some options.
One we can already activate on the settings, that is calculating and showing all the monthly prices. Doing the same for Yearly prices should be easy.
And then add a total at the bottom.
As for selecting ranges that would be more complicated.

@Riza-Aslan i would very much appreciate if you could share your experience with home assistant and the new api endpoint on a show and tell discussion https://github.com/ellite/Wallos/discussions/new?category=show-and-tell
I believe it might be useful for more people, myself included.

@Riza-Aslan
Copy link

Sure! I'll share what I've done when I have some time on Monday. Good to know that you are also interested on home assistant. It would be awesome if we could access all of the data over the API. My first solution was to scrape the website which also works okay, but I had to disable authentication on Wallos. Your solution with the API token and the JSON output makes everything much easier and better.

I hope your expectations are not to high, cause I'm just an IT guy. Not a Developer.

@ellite
Copy link
Owner

ellite commented Oct 5, 2024

That's perfect, thanks.
I'll create more endpoints when I have some time, now that the foundation is set, should be quite simple to add.

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

No branches or pull requests

3 participants